--- id: multi-user/the-terminal-replays-terminal-queries-which title: "The terminal replays terminal QUERIES, which get typed into the shell" theme: multi-user status: open created: 2026-08-20 date_source: assumed order: 3 --- **The terminal replays terminal QUERIES, which get typed into the shell.** `sidecar/pty/sessions.mjs` replays the whole scrollback on attach; query sequences in the buffer get re-asked, xterm.js answers, and the answers arrive as keystrokes. Visible to a member daily. Fix is to strip query sequences in `appendBuffer`, so a replay reproduces output and never re-issues requests.