Changesets · Branches · Tags · Compare
| Changeset | e83380757453b40405f3c00adca8b45048e81cdf5362f2a53db6ca2e06b701de |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-07-18 19:19 +02:00 |
| Committer | Dallin Romney <dallinromney@gmail.com> · 2025-07-18 19:19 +02:00 |
| Parents | cc830390981b, 74850c9d62af |
4 files changed
modified gui/src/components/mainInput/TipTapEditor/extensions/SlashCommand.ts +3 −0
| @@ -15,6 +15,9 @@ | ||
| 15 | 15 | addOptions() { |
| 16 | 16 | return { |
| 17 | 17 | suggestion: { |
| 18 | + allow: ({ editor }) => | |
| 19 | + // the first character is "/". we want to avoid slash commands when there is a space after it | |
| 20 | + editor.getText().at(1) !== " ", | |
| 18 | 21 | char: "/", |
| 19 | 22 | pluginKey: new PluginKey(this.name), |
| 20 | 23 | startOfLine: true, |
modified gui/src/pages/gui/Chat.tsx +1 −2
| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | ChatBubbleOvalLeftIcon, |
| 4 | 4 | } from "@heroicons/react/24/outline"; |
| 5 | 5 | import { Editor, JSONContent } from "@tiptap/react"; |
| 6 | -import { InputModifiers, ChatHistoryItem } from "core"; | |
| 6 | +import { ChatHistoryItem, InputModifiers } from "core"; | |
| 7 | 7 | import { renderChatMessage } from "core/util/messageContent"; |
| 8 | 8 | import { |
| 9 | 9 | useCallback, |
| @@ -136,7 +136,6 @@ | ||
| 136 | 136 | !e.shiftKey |
| 137 | 137 | ) { |
| 138 | 138 | void dispatch(cancelStream()); |
| 139 | - if (isInEdit) ideMessenger.post("rejectDiff", {}); | |
| 140 | 139 | } |
| 141 | 140 | }; |
| 142 | 141 | window.addEventListener("keydown", listener); |
modified gui/src/redux/slices/sessionSlice.ts +9 −1
| @@ -291,6 +291,7 @@ | ||
| 291 | 291 | if (state.history.length < 2) { |
| 292 | 292 | return; |
| 293 | 293 | } |
| 294 | + | |
| 294 | 295 | const lastUserOrToolIdx = findLastIndex( |
| 295 | 296 | state.history, |
| 296 | 297 | (item) => item.message.role === "tool" || item.message.role === "user", |
| @@ -317,7 +318,14 @@ | ||
| 317 | 318 | } |
| 318 | 319 | |
| 319 | 320 | if (validAssistantMessageIdx === -1) { |
| 320 | - state.history = state.history.slice(0, lastUserOrToolIdx + 1); | |
| 321 | + const lastMsg = state.history[lastUserOrToolIdx]; | |
| 322 | + const lastRole = lastMsg.message.role as "user" | "tool"; | |
| 323 | + if (lastRole === "user") { | |
| 324 | + state.mainEditorContentTrigger = lastMsg.editorState; | |
| 325 | + state.history = state.history.slice(0, lastUserOrToolIdx); | |
| 326 | + } else { | |
| 327 | + state.history = state.history.slice(0, lastUserOrToolIdx + 1); | |
| 328 | + } | |
| 321 | 329 | } else { |
| 322 | 330 | state.history = state.history.slice(0, validAssistantMessageIdx + 1); |
| 323 | 331 | } |
modified packages/shared-release.config.js +2 −8
| @@ -21,14 +21,8 @@ | ||
| 21 | 21 | "@semantic-release/release-notes-generator", |
| 22 | 22 | "@semantic-release/changelog", |
| 23 | 23 | "@semantic-release/npm", |
| 24 | - [ | |
| 25 | - "@semantic-release/git", | |
| 26 | - { | |
| 27 | - assets: ["CHANGELOG.md", "package.json"], | |
| 28 | - message: `chore(release): @continuedev/${packageName}@\${nextRelease.version} [skip ci]`, | |
| 29 | - }, | |
| 30 | - ], | |
| 24 | + // Removed @semantic-release/git plugin to avoid pushing to main | |
| 31 | 25 | "@semantic-release/github", |
| 32 | 26 | ], |
| 33 | 27 | }; |
| 34 | -} | |
| 28 | +} | |
| No newline at the end of the file |