chore: rewrite changelogs + fix stale tests

This commit is contained in:
can1357
2026-08-03 15:32:19 +02:00
parent 6ca4d0a753
commit 4ddc2d2cd4
9 changed files with 74 additions and 65 deletions
@@ -36,6 +36,7 @@ type FakeEditor = {
setText(text: string): void;
getText(): string;
addToHistory(text: string): void;
clearDraft(historyText?: string): void;
setActionKeys(action: string, keys: string[]): void;
setCustomKeyHandler(key: string, handler: () => void): void;
clearCustomKeyHandlers(): void;
@@ -61,6 +62,12 @@ function createContext(sessionOverride?: InteractiveModeContext["session"]) {
return editorText;
},
addToHistory,
clearDraft(historyText?: string) {
if (historyText !== undefined) addToHistory(historyText);
editorText = "";
this.pendingImages = [];
this.pendingImageLinks = [];
},
setActionKeys: vi.fn(),
setCustomKeyHandler: vi.fn(),
clearCustomKeyHandlers: vi.fn(),