style: bun run fix

This commit is contained in:
roboomp
2026-06-28 16:42:50 +00:00
parent 404a43e02b
commit 7c8b77deee
2 changed files with 5 additions and 4 deletions
@@ -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: [],
@@ -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("");