From c7abc56b0ced91cd65baf2af718c4e2c9b03803e Mon Sep 17 00:00:00 2001 From: Aditya Mitra <61635505+uinstinct@users.noreply.github.com> Date: Fri, 18 Jul 2025 21:03:38 +0530 Subject: [PATCH 1/5] fix: allow prompts starting with `/` (#6704) fix: allow prompts starting with / --- .../mainInput/TipTapEditor/extensions/SlashCommand.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/src/components/mainInput/TipTapEditor/extensions/SlashCommand.ts b/gui/src/components/mainInput/TipTapEditor/extensions/SlashCommand.ts index 2673c81bd..3502bb9df 100644 --- a/gui/src/components/mainInput/TipTapEditor/extensions/SlashCommand.ts +++ b/gui/src/components/mainInput/TipTapEditor/extensions/SlashCommand.ts @@ -15,6 +15,9 @@ export const SlashCommand = Node.create({ addOptions() { return { suggestion: { + allow: ({ editor }) => + // the first character is "/". we want to avoid slash commands when there is a space after it + editor.getText().at(1) !== " ", char: "/", pluginKey: new PluginKey(this.name), startOfLine: true, From 46b644850bd9c885dc36a34fc3ef28cc0e6de837 Mon Sep 17 00:00:00 2001 From: Aditya Mitra <61635505+uinstinct@users.noreply.github.com> Date: Fri, 18 Jul 2025 21:16:30 +0530 Subject: [PATCH 2/5] fix: remove reject edit diff functionality on cmd backspace (#6703) --- gui/src/pages/gui/Chat.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 4a34b9db6..990e699a5 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -3,7 +3,7 @@ import { ChatBubbleOvalLeftIcon, } from "@heroicons/react/24/outline"; import { Editor, JSONContent } from "@tiptap/react"; -import { InputModifiers, ChatHistoryItem } from "core"; +import { ChatHistoryItem, InputModifiers } from "core"; import { renderChatMessage } from "core/util/messageContent"; import { useCallback, @@ -138,7 +138,6 @@ export function Chat() { !e.shiftKey ) { void dispatch(cancelStream()); - if (isInEdit) ideMessenger.post("rejectDiff", {}); } }; window.addEventListener("keydown", listener); From 1fa0579760b5d668c9d4c39f42b77d1d8bcc3673 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 18 Jul 2025 09:00:03 -0700 Subject: [PATCH 3/5] ci: don't try to push to main --- packages/shared-release.config.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/shared-release.config.js b/packages/shared-release.config.js index a587ebbd0..8063d6937 100644 --- a/packages/shared-release.config.js +++ b/packages/shared-release.config.js @@ -21,14 +21,8 @@ export default function createReleaseConfig(packageName) { "@semantic-release/release-notes-generator", "@semantic-release/changelog", "@semantic-release/npm", - [ - "@semantic-release/git", - { - assets: ["CHANGELOG.md", "package.json"], - message: `chore(release): @continuedev/${packageName}@\${nextRelease.version} [skip ci]`, - }, - ], + // Removed @semantic-release/git plugin to avoid pushing to main "@semantic-release/github", ], }; -} +} \ No newline at end of file From d61be0377d7330989629deb215140c8275a83105 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 18 Jul 2025 18:10:21 +0200 Subject: [PATCH 4/5] fix: dangling messages cleanup behavior (#6707) --- gui/src/redux/slices/sessionSlice.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index 14aa35f8c..805c3a5a7 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -289,6 +289,7 @@ export const sessionSlice = createSlice({ if (state.history.length < 2) { return; } + const lastUserOrToolIdx = findLastIndex( state.history, (item) => item.message.role === "tool" || item.message.role === "user", @@ -315,7 +316,14 @@ export const sessionSlice = createSlice({ } if (validAssistantMessageIdx === -1) { - state.history = state.history.slice(0, lastUserOrToolIdx + 1); + const lastMsg = state.history[lastUserOrToolIdx]; + const lastRole = lastMsg.message.role as "user" | "tool"; + if (lastRole === "user") { + state.mainEditorContentTrigger = lastMsg.editorState; + state.history = state.history.slice(0, lastUserOrToolIdx); + } else { + state.history = state.history.slice(0, lastUserOrToolIdx + 1); + } } else { state.history = state.history.slice(0, validAssistantMessageIdx + 1); } From 450202f10159d41fbff23cf5fe097b80f1cb0058 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 18 Jul 2025 19:20:13 +0200 Subject: [PATCH 5/5] fix prettier --- packages/shared-release.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared-release.config.js b/packages/shared-release.config.js index 8063d6937..49373804c 100644 --- a/packages/shared-release.config.js +++ b/packages/shared-release.config.js @@ -25,4 +25,4 @@ export default function createReleaseConfig(packageName) { "@semantic-release/github", ], }; -} \ No newline at end of file +}