Merge branch 'main' of https://github.com/continuedev/continue into dallin/pruning-updates

This commit is contained in:
Dallin Romney 2025-07-18 19:19:59 +02:00
commit 08f8e96b88
4 changed files with 15 additions and 11 deletions

View file

@ -15,6 +15,9 @@ export const SlashCommand = Node.create<SlashCommandOptions>({
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,

View file

@ -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,
@ -136,7 +136,6 @@ export function Chat() {
!e.shiftKey
) {
void dispatch(cancelStream());
if (isInEdit) ideMessenger.post("rejectDiff", {});
}
};
window.addEventListener("keydown", listener);

View file

@ -291,6 +291,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",
@ -317,7 +318,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);
}

View file

@ -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",
],
};
}
}