Recall Terminal mode always blocks the first meeting question: "could not verify the edited input line"
What happened
With Recall running in Terminal/dev mode (recallDevMode: true) and a custom interactive agent configured (Claude Code CLI, via [assistant] agent), clicking "Discuss with Agent" on a meeting and then typing a question reliably (every time, not intermittently) produces:
For privacy, Minutes could not verify the edited input line. Press Ctrl-U, retype the command or question, and submit again; no meeting context was read.
Meeting context never gets loaded on the first attempt.
Workaround that confirms the cause
Pressing Ctrl-U then retyping the same question with plain keystrokes only (no arrow keys, no Tab) and pressing Enter goes through immediately. So the corruption isn't caused by anything the user does while composing the question — it happens once, before the real question is even typed, and a reset clears it for good.
Root cause
tauri/src/index.html, recallTerminal.onData → updateRecallTerminalInputDraft (~line 14858):
function updateRecallTerminalInputDraft(data) {
const csiSequences = data.match(/\x1b\[[0-9;?]*[ -/]*[@-~]/g) || [];
if (csiSequences.some((sequence) => sequence !== '\x1b[200~' && sequence !== '\x1b[201~')) {
recallTerminalInputReliable = false;
}
...
} else if (char < ' ' && char !== '\n') {
recallTerminalInputReliable = false;
}
...
}
and forwardRecallTerminalInput (~line 14905):
if (pendingRecallTerminalMeetingPath && question && !recallTerminalInputReliable) {
setRecallProviderNotice(
'For privacy, Minutes could not verify the edited input line. ...',
'error'
);
return;
}
This treats any byte on recallTerminal.onData that isn't plain printable text, backspace, or a bracketed-paste marker as evidence the user's line was tampered with. But onData doesn't only fire for literal keystrokes — xterm.js also auto-replies to terminal capability queries the child process sends (cursor position reports, terminal-size queries, etc.), and those auto-replies are delivered through the very same onData callback, indistinguishable at this layer from something the user typed.
Claude Code's interactive CLI (an Ink/React TUI) performs exactly this kind of terminal query when it starts up in a PTY. That startup handshake arrives on onData before the user has typed a single character, poisons recallTerminalInputReliable to false, and the flag then stays poisoned (nothing clears it except Ctrl-C/Ctrl-U) through the user's entire first question — even though the user's own keystrokes were completely unedited plain text.
This makes the privacy check fire unconditionally on the first message of every "Discuss with Agent" session when the configured agent is a full-screen TUI that queries the terminal at startup, regardless of how carefully the user types.
Suggested fix
Don't penalize control/escape bytes that arrive before the user has typed any real content. e.g. only set recallTerminalInputReliable = false when recallTerminalInputDraft is already non-empty (or more generally, track "bytes received since the PTY was spawned but before first printable keystroke" separately from "bytes received while composing a real answer"), since pre-input terminal handshake noise carries no risk of having silently edited a question that doesn't exist yet.
(Version: v0.25.6, current latest release.)
Correction and a more serious follow-up finding, after more testing with the reporter:
The "clean retype" workaround I described above does not actually work — a plain retype after Ctrl-U still gets blocked with the same error. The only thing that suppresses the error is pressing Ctrl-U then Ctrl-Y (kill-line, then yank it back) before Enter.
Tracing why, in tauri/src/index.html:
- Ctrl-U (
\x15) resets the JS-side shadow copyrecallTerminalInputDraft = ''andrecallTerminalInputReliable = true(~line 14872-14875). - Ctrl-Y (
\x19) is not one of the recognized control keys (backspace/Ctrl-C/Ctrl-U/Ctrl-W), so it falls into the generic branch and setsrecallTerminalInputReliable = falseagain (~line 14882-14883) — but it does not append anything torecallTerminalInputDraft. The realclaudeprocess (which implements readline-style kill/yank in its own input widget) restores the actual killed text in its own buffer and later submits it — but Minutes' JS-side shadow copy of "what was typed" stays empty. - At Enter,
question = recallTerminalInputDraft.trim()is an empty string. Both gating checks inforwardRecallTerminalInput— the reliability-error check and the call tocmd_prepare_recall_terminal_meetingthat actually loads the meeting file into the agent's context — are short-circuited byquestionbeing falsy (~line 14904-14913). Enter is still forwarded to the real PTY, so the agent receives and answers the real question — butcmd_prepare_recall_terminal_meetingis never invoked, andpendingRecallTerminalMeetingPathis never cleared.
Net effect: this "workaround" doesn't satisfy the privacy check, it accidentally bypasses it by emptying the tracked line so the gate never runs at all. The user sees a normal-looking answer with no error, but the meeting's content was very likely never loaded into the agent's context for that turn (and pendingRecallTerminalMeetingPath staying set means subsequent turns in the same session may keep skipping it too, until some message happens to satisfy question && reliable at the same time). This looks like a silent failure of the exact privacy control the whole mechanism exists to enforce, which seems more important to fix than the original blocking-UX issue.
Might be worth gating on the real PTY-side buffer state rather than a JS-side shadow copy that can desync from it this easily — or at minimum, treat "reliable but empty question" at Enter as inconclusive rather than as "nothing to check," and refuse to clear pendingRecallTerminalMeetingPath (or to submit at all) instead of silently forwarding Enter through in that state.
Thank you for testing past the apparent workaround and posting the correction. I confirmed both failure modes in the current code. Terminal capability replies can poison the JavaScript shadow line before the user types, and Ctrl-U plus Ctrl-Y can leave the real PTY line populated while Minutes believes it is empty.
The reassuring part is that this path does not expose the meeting unexpectedly. It fails closed by skipping the meeting read. The unacceptable part is that it can still forward the question and produce a normal-looking answer without the promised meeting context. That is a silent correctness failure in a privacy-sensitive gate.
We will fix this fail closed: while meeting context is pending, an empty or uncertain shadow line must never be treated as permission to forward Return. The fix also needs adversarial tests for startup terminal replies, Ctrl-U, Ctrl-Y, cursor editing, slash commands, and the first real question. Your follow-up materially changed the right acceptance criteria. Thank you.