diff --git a/packages/coding-agent/test/input-controller-followup-paste-expansion.test.ts b/packages/coding-agent/test/input-controller-followup-paste-expansion.test.ts index a0c8c50c9..f71ef9340 100644 --- a/packages/coding-agent/test/input-controller-followup-paste-expansion.test.ts +++ b/packages/coding-agent/test/input-controller-followup-paste-expansion.test.ts @@ -28,8 +28,7 @@ describe("InputController.handleFollowUp paste-marker expansion", () => { editorText = text; }, getText: () => editorText, - getExpandedText: () => - editorText.replace(/\[Paste #1(?:, (?:\+\d+ lines|\d+ chars))?\]/g, expanded), + getExpandedText: () => editorText.replace(/\[Paste #1(?:, (?:\+\d+ lines|\d+ chars))?\]/g, expanded), addToHistory: vi.fn(), pendingImages: [], pendingImageLinks: [], @@ -76,8 +75,7 @@ describe("InputController.handleFollowUp paste-marker expansion", () => { editorText = text; }, getText: () => editorText, - getExpandedText: () => - editorText.replace(/\[Paste #2(?:, (?:\+\d+ lines|\d+ chars))?\]/g, expanded), + getExpandedText: () => editorText.replace(/\[Paste #2(?:, (?:\+\d+ lines|\d+ chars))?\]/g, expanded), addToHistory: vi.fn(), pendingImages: [], pendingImageLinks: [], diff --git a/packages/coding-agent/test/input-controller-skill-queue.test.ts b/packages/coding-agent/test/input-controller-skill-queue.test.ts index 6f351c719..5c1cd711c 100644 --- a/packages/coding-agent/test/input-controller-skill-queue.test.ts +++ b/packages/coding-agent/test/input-controller-skill-queue.test.ts @@ -624,6 +624,9 @@ function createStubInteractiveModeContextForUiHelpers(session: AgentSession) { getText() { return editorText; }, + getExpandedText() { + return editorText; + }, clearDraft(historyText?: string) { if (historyText !== undefined) this.addToHistory(historyText); this.setText("");