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:
parent
edc05f3715
commit
f021d8cafa
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ export async function showInterviewRound(
|
|||
}
|
||||
|
||||
function saveEditorToState() {
|
||||
states[currentIdx].notes = getEditor().getText().trim();
|
||||
states[currentIdx].notes = getEditor().getExpandedText().trim();
|
||||
}
|
||||
|
||||
function loadStateToEditor() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue