From f021d8cafa27bd7c222ec57ca7875c5ba488f34d Mon Sep 17 00:00:00 2001 From: deseltrus <101901449+deseltrus@users.noreply.github.com> Date: Fri, 13 Mar 2026 15:01:14 +0100 Subject: [PATCH] fix: use getExpandedText() to preserve large paste content in notes (#169) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit interview-ui.ts saveEditorToState() was calling getText() which returns paste markers like '[paste #1 2033 chars]' for content >1000 chars or >10 lines. The actual pasted content was stored in the Editor's paste map but never expanded back. This silently discards user input in ask_user_questions notes — any substantive response (voice transcripts, detailed explanations, extended enrichments) that exceeds the paste threshold gets replaced with a marker string. The LLM receives '[paste #1 N chars]' instead of the user's actual words. Fix: getText() → getExpandedText() — the Editor already has the method that expands paste markers to their stored content. One-line change. --- src/resources/extensions/shared/interview-ui.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/extensions/shared/interview-ui.ts b/src/resources/extensions/shared/interview-ui.ts index 3cb84c243..260ac5938 100644 --- a/src/resources/extensions/shared/interview-ui.ts +++ b/src/resources/extensions/shared/interview-ui.ts @@ -235,7 +235,7 @@ export async function showInterviewRound( } function saveEditorToState() { - states[currentIdx].notes = getEditor().getText().trim(); + states[currentIdx].notes = getEditor().getExpandedText().trim(); } function loadStateToEditor() {