fix: use getExpandedText() to preserve large paste content in notes (#169)

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.
This commit is contained in:
deseltrus 2026-03-13 15:01:14 +01:00 committed by GitHub
parent edc05f3715
commit f021d8cafa

View file

@ -235,7 +235,7 @@ export async function showInterviewRound(
}
function saveEditorToState() {
states[currentIdx].notes = getEditor().getText().trim();
states[currentIdx].notes = getEditor().getExpandedText().trim();
}
function loadStateToEditor() {