Elffuss BraidHub

kikocis/continue public

Merge branch 'main' of https://github.com/continuedev/continue into dallin/pruning-updates
Changesete83380757453b40405f3c00adca8b45048e81cdf5362f2a53db6ca2e06b701de
AuthorDallin Romney <dallinromney@gmail.com> · 2025-07-18 19:19 +02:00
CommitterDallin Romney <dallinromney@gmail.com> · 2025-07-18 19:19 +02:00
Parentscc830390981b, 74850c9d62af

Browse the files at this changeset

4 files changed

modified gui/src/components/mainInput/TipTapEditor/extensions/SlashCommand.ts +3 −0
@@ -15,6 +15,9 @@
1515 addOptions() {
1616 return {
1717 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) !== " ",
1821 char: "/",
1922 pluginKey: new PluginKey(this.name),
2023 startOfLine: true,
modified gui/src/pages/gui/Chat.tsx +1 −2
@@ -3,7 +3,7 @@
33 ChatBubbleOvalLeftIcon,
44 } from "@heroicons/react/24/outline";
55 import { Editor, JSONContent } from "@tiptap/react";
6-import { InputModifiers, ChatHistoryItem } from "core";
6+import { ChatHistoryItem, InputModifiers } from "core";
77 import { renderChatMessage } from "core/util/messageContent";
88 import {
99 useCallback,
@@ -136,7 +136,6 @@
136136 !e.shiftKey
137137 ) {
138138 void dispatch(cancelStream());
139- if (isInEdit) ideMessenger.post("rejectDiff", {});
140139 }
141140 };
142141 window.addEventListener("keydown", listener);
modified gui/src/redux/slices/sessionSlice.ts +9 −1
@@ -291,6 +291,7 @@
291291 if (state.history.length < 2) {
292292 return;
293293 }
294+
294295 const lastUserOrToolIdx = findLastIndex(
295296 state.history,
296297 (item) => item.message.role === "tool" || item.message.role === "user",
@@ -317,7 +318,14 @@
317318 }
318319
319320 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+ }
321329 } else {
322330 state.history = state.history.slice(0, validAssistantMessageIdx + 1);
323331 }
modified packages/shared-release.config.js +2 −8
@@ -21,14 +21,8 @@
2121 "@semantic-release/release-notes-generator",
2222 "@semantic-release/changelog",
2323 "@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
3125 "@semantic-release/github",
3226 ],
3327 };
34-}
28+}
No newline at the end of the file