Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
fix(chat): show prompts typed while a turn was running
Paul Robertson813a00bd7721
diff --git a/src/core/chat-fixtures.test.ts b/src/core/chat-fixtures.test.tsindex 3c33a9560..10c6584dc 100644--- a/src/core/chat-fixtures.test.ts+++ b/src/core/chat-fixtures.test.ts@@ -520,6 +520,35 @@ function pastedContent(): string {])}+// ── Prompts queued while a turn was running ──────────────────────────────────────────────────────+// Shapes measured on claude 2.1.281–2.1.285: a prompt typed mid-turn is never a `user` record; it+// reaches the model at the next tool boundary as a `queued_command` attachment. Only a typed prompt+// is shown; task notifications and peer / coordinator messages queue the same way and stay hidden.+const queued = (attachment: Rec): Rec => ({ type: 'attachment', attachment: { type: 'queued_command', ...attachment } })+function queuedPrompts(): string {+ return jsonl([+ { ...user('Run the tests, then summarise.'), ...HUMAN },+ { type: 'queue-operation', operation: 'enqueue', content: 'Also check the lint.' },+ assistant([toolUse('toolu_q1', 'Bash', { command: 'npm test' })]),+ { type: 'queue-operation', operation: 'remove', content: 'Also check the lint.' },+ toolResult('toolu_q1', 'all passed'),+ queued({ prompt: 'Also check the lint.', commandMode: 'prompt', origin: { kind: 'human' }, humanTurn: true }),+ // No origin (a typed prompt from a build that did not record one), and an array prompt.+ queued({ prompt: 'and the types', commandMode: 'prompt' }),+ queued({ prompt: [{ type: 'image', source: { type: 'base64', media_type: 'image/png', data: 'iVBORw0KGgo=' } }, text('this one')], commandMode: 'prompt', origin: { kind: 'human' } }),+ // A paste inside a queued prompt renders as it does in a typed one.+ queued({ prompt: 'log:\n<pasted_content id="0b1e">\nE1\nE2\n</pasted_content id="0b1e">', commandMode: 'prompt', origin: { kind: 'human' } }),+ // Not the user typing: all hidden.+ queued({ prompt: '<task-notification>\n<summary>Build finished</summary>\n</task-notification>', commandMode: 'task-notification' }),+ queued({ prompt: '<agent-message from="a1">done</agent-message>', commandMode: 'prompt', isMeta: true, origin: { kind: 'peer' } }),+ queued({ prompt: 'continue', isMeta: true, origin: { kind: 'coordinator' } }),+ queued({ prompt: 'x', commandMode: 'prompt', origin: { kind: 'task-notification' } }),+ queued({ prompt: ' ', commandMode: 'prompt', origin: { kind: 'human' } }),+ { type: 'attachment', attachment: { type: 'hook_success', prompt: 'not queued', commandMode: 'prompt' } },+ assistant([text('Tests pass, lint is clean, types check.')])+ ])+}+// ── Held permission requests + the answers tried against them ────────────────────────────────────const pendingPayload = (tool_name: string, tool_input: unknown, permission_mode = 'default'): string =>JSON.stringify(@@ -632,7 +661,8 @@ const INPUTS: Record<string, string> = {'bash-mode.jsonl': bashMode(),'meta-turns.jsonl': metaTurns(),'system-records.jsonl': systemRecords(),- 'pasted-content.jsonl': pastedContent()+ 'pasted-content.jsonl': pastedContent(),+ 'queued-prompts.jsonl': queuedPrompts()}// ── Plumbing ─────────────────────────────────────────────────────────────────────────────────────diff --git a/src/core/transcript-reader.test.ts b/src/core/transcript-reader.test.tsindex acbddcabc..04cc98491 100644--- a/src/core/transcript-reader.test.ts+++ b/src/core/transcript-reader.test.ts@@ -1165,3 +1165,93 @@ describe('command args are capped like tool args', () => {})})})++describe('prompts queued while a turn was running', () => {+ // Shapes from real claude 2.1.281–2.1.285 transcripts: a prompt sent mid-turn is recorded only as+ // queue-operation rows plus a `queued_command` attachment, delivered between a tool result and+ // the final reply of the SAME turn.+ const queued = (attachment: object): string => JSON.stringify({ type: 'attachment', attachment })+ const typed = (prompt: unknown): string =>+ queued({ type: 'queued_command', prompt, commandMode: 'prompt', origin: { kind: 'human' }, humanTurn: true })+ const rows = [+ JSON.stringify({ type: 'user', message: { role: 'user', content: 'Run sleep 8, then say done sleeping' } }),+ JSON.stringify({ type: 'queue-operation', operation: 'enqueue', content: 'What is 2+2?' }),+ JSON.stringify({ type: 'assistant', message: { role: 'assistant', content: [{ type: 'tool_use', id: 't1', name: 'Bash', input: { command: 'sleep 8' } }] } }),+ JSON.stringify({ type: 'queue-operation', operation: 'remove', content: 'What is 2+2?' }),+ JSON.stringify({ type: 'user', message: { role: 'user', content: [{ type: 'tool_result', tool_use_id: 't1', content: '' }] } }),+ typed('What is 2+2?'),+ JSON.stringify({ type: 'assistant', message: { role: 'assistant', content: [{ type: 'text', text: 'done sleeping\n\n4' }] } })+ ]++ it('shows a typed queued prompt as a user message, where it was delivered', () => {+ const messages = parseChatMessages(rows)++ expect(messages.map((m) => [m.role, m.parts[0]])).toEqual([+ ['user', { kind: 'text', text: 'Run sleep 8, then say done sleeping' }],+ ['assistant', { kind: 'tool', name: 'Bash', arg: 'sleep 8' }],+ ['user', { kind: 'text', text: 'What is 2+2?' }],+ ['assistant', { kind: 'text', text: 'done sleeping\n\n4' }]+ ])+ })++ it('keys a queued prompt by its line in a paged read, like any other message', () => {+ const file = Buffer.from(rows.map((r) => r + '\n').join(''))+ const queuedAt = file.indexOf('{"type":"attachment"')++ const r = parseChatWindow(file, 0)++ const message = r.messages.find((m) => m.role === 'user' && m.parts[0]?.kind === 'text' && m.parts[0].text === 'What is 2+2?')+ expect(message?.key).toBe(queuedAt)+ })++ it('accepts a prompt with no origin, and keeps the text blocks of an array prompt', () => {+ const noOrigin = queued({ type: 'queued_command', prompt: 'older build', commandMode: 'prompt' })+ const blocks = typed([{ type: 'image' }, { type: 'text', text: 'look at this' }, { type: 'text', text: 'and this' }])++ const messages = parseChatMessages([noOrigin, blocks])++ expect(messages).toEqual([+ { role: 'user', parts: [{ kind: 'text', text: 'older build' }] },+ { role: 'user', parts: [{ kind: 'text', text: 'look at this\nand this' }] }+ ])+ })++ it('hides queued attachments that are not the user typing', () => {+ const notification = queued({+ type: 'queued_command',+ prompt: '<task-notification>\n<summary>done</summary>\n</task-notification>',+ commandMode: 'task-notification'+ })+ const peer = queued({+ type: 'queued_command',+ prompt: '<agent-message from="a1">hi</agent-message>',+ commandMode: 'prompt',+ isMeta: true,+ origin: { kind: 'peer' }+ })+ const coordinator = queued({ type: 'queued_command', prompt: 'continue', isMeta: true, origin: { kind: 'coordinator' } })+ const nonHumanOrigin = queued({ type: 'queued_command', prompt: 'x', commandMode: 'prompt', origin: { kind: 'task-notification' } })+ const empty = typed(' ')+ const otherAttachment = queued({ type: 'hook_success', prompt: 'nope', commandMode: 'prompt' })++ const messages = parseChatMessages([notification, peer, coordinator, nonHumanOrigin, empty, otherAttachment])++ expect(messages).toEqual([])+ })++ it('renders a paste inside a queued prompt the way it renders one in a typed prompt', () => {+ const row = typed('see\n<pasted_content id="ab12">\none\ntwo\n</pasted_content id="ab12">')++ const [message] = parseChatMessages([row])++ expect(message?.parts[0]).toEqual({ kind: 'text', text: 'see\n\n```\none\ntwo\n```\n' })+ })++ it('indexes a typed queued prompt for the find bar, and nothing else queued', () => {+ const notification = queued({ type: 'queued_command', prompt: '<task-notification/>', commandMode: 'task-notification' })++ const lines = parseTranscriptLines([typed('What is 2+2?'), notification].join('\n'))++ expect(lines).toEqual([{ role: 'user', text: 'What is 2+2?' }])+ })+})diff --git a/src/core/transcript-reader.ts b/src/core/transcript-reader.tsindex bb2677113..8a7f8a98e 100644--- a/src/core/transcript-reader.ts+++ b/src/core/transcript-reader.ts@@ -136,6 +136,38 @@ export function isHiddenMetaRecord(o: {return o.type === 'user' && o.isMeta === true && o.promptSource == null && o.origin == null && o.turnOrigin == null}+/**+ * A prompt the user submitted while a turn was running. Claude Code never records it as a `user`+ * record: it hands it to the model at the next tool boundary of the SAME turn, as an `attachment`+ * record of type `queued_command` (measured, 2.1.281–2.1.285), so the chat view lost it. Most+ * queued attachments are NOT the user's words: on the machine this was measured on, 105 of 482 were+ * typed prompts; the rest were task notifications (`commandMode:"task-notification"`) and peer or+ * coordinator messages (`isMeta`). Those stay hidden, as before. A typed prompt is+ * `commandMode:"prompt"`, not `isMeta`, with an `origin` that is absent or `human`. Returns its+ * text (a string prompt, or the text blocks of an array prompt joined by `\n`), else null.+ */+export function queuedHumanPrompt(o: { type?: unknown; attachment?: unknown }): string | null {+ if (o.type !== 'attachment' || !o.attachment || typeof o.attachment !== 'object') return null+ const a = o.attachment as { type?: unknown; commandMode?: unknown; isMeta?: unknown; origin?: unknown; prompt?: unknown }+ if (a.type !== 'queued_command' || a.commandMode !== 'prompt' || a.isMeta === true) return null+ const origin = originKind(a.origin)+ if (a.origin != null && origin !== 'human') return null+ const text =+ typeof a.prompt === 'string'+ ? a.prompt+ : Array.isArray(a.prompt)+ ? a.prompt+ .map((b: unknown) =>+ b && typeof b === 'object' && (b as { type?: unknown }).type === 'text' && typeof (b as { text?: unknown }).text === 'string'+ ? (b as { text: string }).text+ : ''+ )+ .filter((t) => t !== '')+ .join('\n')+ : ''+ return text.trim() === '' ? null : text+}+export function classifyLocalCommand(content: string): LocalCommandRecord | null {const tags = tagSequence(content)if (!tags) return null@@ -388,6 +420,9 @@ function linesFrom(raw: string, opts?: ChatParseOptions): TranscriptLine[] {const s = summarizeResult(cmd.text)if (s) out.push({ role: 'tool', text: s })} else out.push({ role: 'user', text: userTextOf(content, opts) })+ } else {+ const queued = queuedHumanPrompt(o)+ if (queued !== null) out.push({ role: 'user', text: userTextOf(queued, opts) })}return out}@@ -600,6 +635,11 @@ function parseChatRecords(} else {push({ role: 'user', parts: [{ kind: 'text', text: userTextOf(content, opts) }] }, offset)}+ } else {+ // A prompt typed while a turn was running (see `queuedHumanPrompt`), in the place the model+ // received it.+ const queued = queuedHumanPrompt(o)+ if (queued !== null) push({ role: 'user', parts: [{ kind: 'text', text: userTextOf(queued, opts) }] }, offset)}}const out: ChatRecordsOut = { messages, unmatched }diff --git a/src/shared/chat-fixtures/README.md b/src/shared/chat-fixtures/README.mdindex a5df30bd5..1563b9102 100644--- a/src/shared/chat-fixtures/README.md+++ b/src/shared/chat-fixtures/README.md@@ -87,6 +87,7 @@ the production paging, not a second implementation of it.| `meta-turns` | `isMeta` rule 1: a peer hand-back (`promptSource` + `origin.kind:"peer"` + `turnOrigin`), a scheduled wakeup (`turnOrigin:"scheduled"` + `scheduledTaskId`), an auto-continuation (`origin.kind:"auto-continuation"`), a `promptSource`-only, an `origin`-only and a `turnOrigin`-only record (the last two with no `promptSource`, so each field is pinned on its own) are all KEPT; the caveat and a skill body (none of the three fields) are skipped. Three of the kept records then render as system chips (see **System-injected records**): BOTH `origin.kind:"peer"` records — the hand-back and the `origin`-only one — as `Agent message`, and the auto-continuation as `System`; the others stay user messages. || `system-records` | Every rule of **System-injected records**: a full agent completion (nested `<usage>`, a result over three lines), a status + summary completion, a monitor `<event>`, a summary alone (the `notified` result), a repeated `<task-id>` with a summary over the 200-unit cap, a whole element with no `origin`, the same whole element sent by a human (`origin.kind:"human"`, and `promptSource:"typed"` with no `origin`; both stay user messages), two malformed notifications (unknown tags only; plain prose), a message that only MENTIONS the element (stays a user message), a subagent `<agent-message>` hand-back with its frame lines, a `<cross-session-message>` (its `from-name` is the arg), a report over the 16384-unit cap, a peer record with no element, an auto-continuation and a multi-line coordinator prompt. || `pasted-content` | **Pasted content**: a span between typed lines, backtick runs inside (a five-backtick fence) and the same id twice, an array text part beside an image, a pasted `<task-notification>` (stays the user's paste), a close tag with a different id inside a span (content), an empty paste, a same-id open nested inside a span (the span ends at the FIRST close), text that is not the CLI's grammar (no id, an upper-case or three- or five-digit id, a missing newline after the open or before the close: all left as typed) and an unclosed span (left as typed). |+| `queued-prompts` | **Queued prompts**: a typed prompt queued mid-turn (between a tool result and the reply), one with no `origin`, an array prompt with an image (its text block only), a paste inside one (fenced, as in a typed prompt), and six attachments that stay hidden: a task notification, a peer message (`isMeta`), a coordinator message, a non-human `origin`, a blank prompt and a non-`queued_command` attachment. |Decision cases: plan `restore` / `acceptEdits` / `manual` / `revise` (the revise text is trimmed),question single / multi (labels joined with `, `) / free text (trimmed), and three refusals: a@@ -249,6 +250,25 @@ The find-bar index applies the same transform to the user lines it emits. Titlesrecent-conversations list and the transcript index read with `expandPastes:false`, so a prompt thatstarts with a paste still starts with `<` (and is skipped as a title), and no title carries a fence.+## Queued prompts (the Swift port must replicate this exactly)++A prompt the user submits while a turn is running is never a `user` record. Claude Code hands it to+the model at the next tool boundary of the SAME turn as an `attachment` record whose+`attachment.type` is `queued_command` (measured on 2.1.281–2.1.285). Most queued attachments are not+the user typing: task notifications and peer or coordinator messages queue the same way. An+attachment record becomes ONE user message, at its own line (`key` = its offset, `at` = its+`timestamp`), only when all of these hold (`queuedHumanPrompt`, `src/core/transcript-reader.ts`):++1. `attachment.type` is `queued_command` and `attachment.commandMode` is `"prompt"`;+2. `attachment.isMeta` is not `true`;+3. `attachment.origin` is absent/`null`, or an object whose `kind` is `"human"`;+4. its text is not empty after trimming. The text is `attachment.prompt` when it is a string; when+ it is an array, the `text` of each element whose `type` is `text` and whose `text` is a string,+ non-empty ones joined by `\n`; otherwise empty.++The text then goes through `expandPastedContent` like any other user text (see **Pasted content**),+and the find-bar index emits the same user line. Every other attachment yields nothing.+## Renderer rules that follow from these records (desktop; iOS notes)- **Turn grouping** (`assistantTurnEnds`, `src/renderer/lib/chatThread.ts`): a message that is andiff --git a/src/shared/chat-fixtures/expected/queued-prompts.pages.json b/src/shared/chat-fixtures/expected/queued-prompts.pages.jsonnew file mode 100644index 000000000..6fe8954ad--- /dev/null+++ b/src/shared/chat-fixtures/expected/queued-prompts.pages.json@@ -0,0 +1,97 @@+[+ {+ "before": null,+ "maxBytes": 262144,+ "grownMaxBytes": 262144,+ "start": 0,+ "parse": {+ "messages": [+ {+ "role": "user",+ "parts": [+ {+ "kind": "text",+ "text": "Run the tests, then summarise."+ }+ ],+ "at": 1790362800000,+ "key": 0+ },+ {+ "role": "assistant",+ "parts": [+ {+ "kind": "tool",+ "name": "Bash",+ "arg": "npm test",+ "id": "toolu_q1",+ "result": "all passed"+ }+ ],+ "at": 1790362802000,+ "key": 625+ },+ {+ "role": "user",+ "parts": [+ {+ "kind": "text",+ "text": "Also check the lint."+ }+ ],+ "at": 1790362805000,+ "key": 1674+ },+ {+ "role": "user",+ "parts": [+ {+ "kind": "text",+ "text": "and the types"+ }+ ],+ "at": 1790362806000,+ "key": 2027+ },+ {+ "role": "user",+ "parts": [+ {+ "kind": "text",+ "text": "this one"+ }+ ],+ "at": 1790362807000,+ "key": 2330+ },+ {+ "role": "user",+ "parts": [+ {+ "kind": "text",+ "text": "log:\n\n```\nE1\nE2\n```\n"+ }+ ],+ "at": 1790362808000,+ "key": 2770+ },+ {+ "role": "assistant",+ "parts": [+ {+ "kind": "text",+ "text": "Tests pass, lint is clean, types check."+ }+ ],+ "at": 1790362815000,+ "key": 5179+ }+ ],+ "olderCursor": null,+ "unmatchedResults": [],+ "model": "claude-opus-5-5",+ "effort": "high",+ "noCompleteLine": false+ }+ }+]diff --git a/src/shared/chat-fixtures/inputs/queued-prompts.jsonl b/src/shared/chat-fixtures/inputs/queued-prompts.jsonlnew file mode 100644index 000000000..c97789871--- /dev/null+++ b/src/shared/chat-fixtures/inputs/queued-prompts.jsonl@@ -0,0 +1,16 @@+{"type":"user","message":{"role":"user","content":"Run the tests, then summarise."},"promptSource":"typed","origin":{"kind":"human"},"turnOrigin":"human","isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000000","timestamp":"2026-09-25T19:00:00.000Z"}+{"type":"queue-operation","operation":"enqueue","content":"Also check the lint.","isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000001","timestamp":"2026-09-25T19:00:01.000Z"}+{"type":"assistant","effort":"high","message":{"id":"msg_synthetic","type":"message","role":"assistant","model":"claude-opus-5-5","content":[{"type":"tool_use","id":"toolu_q1","name":"Bash","input":{"command":"npm test"}}],"stop_reason":null},"isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000002","timestamp":"2026-09-25T19:00:02.000Z"}+{"type":"queue-operation","operation":"remove","content":"Also check the lint.","isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000003","timestamp":"2026-09-25T19:00:03.000Z"}+{"type":"user","message":{"role":"user","content":[{"type":"tool_result","tool_use_id":"toolu_q1","content":"all passed","is_error":false}]},"isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000004","timestamp":"2026-09-25T19:00:04.000Z"}+{"type":"attachment","attachment":{"type":"queued_command","prompt":"Also check the lint.","commandMode":"prompt","origin":{"kind":"human"},"humanTurn":true},"isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000005","timestamp":"2026-09-25T19:00:05.000Z"}+{"type":"attachment","attachment":{"type":"queued_command","prompt":"and the types","commandMode":"prompt"},"isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000006","timestamp":"2026-09-25T19:00:06.000Z"}+{"type":"attachment","attachment":{"type":"queued_command","prompt":[{"type":"image","source":{"type":"base64","media_type":"image/png","data":"iVBORw0KGgo="}},{"type":"text","text":"this one"}],"commandMode":"prompt","origin":{"kind":"human"}},"isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000007","timestamp":"2026-09-25T19:00:07.000Z"}+{"type":"attachment","attachment":{"type":"queued_command","prompt":"log:\n<pasted_content id=\"0b1e\">\nE1\nE2\n</pasted_content id=\"0b1e\">","commandMode":"prompt","origin":{"kind":"human"}},"isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000008","timestamp":"2026-09-25T19:00:08.000Z"}+{"type":"attachment","attachment":{"type":"queued_command","prompt":"<task-notification>\n<summary>Build finished</summary>\n</task-notification>","commandMode":"task-notification"},"isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000009","timestamp":"2026-09-25T19:00:09.000Z"}+{"type":"attachment","attachment":{"type":"queued_command","prompt":"<agent-message from=\"a1\">done</agent-message>","commandMode":"prompt","isMeta":true,"origin":{"kind":"peer"}},"isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000010","timestamp":"2026-09-25T19:00:10.000Z"}+{"type":"attachment","attachment":{"type":"queued_command","prompt":"continue","isMeta":true,"origin":{"kind":"coordinator"}},"isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000011","timestamp":"2026-09-25T19:00:11.000Z"}+{"type":"attachment","attachment":{"type":"queued_command","prompt":"x","commandMode":"prompt","origin":{"kind":"task-notification"}},"isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000012","timestamp":"2026-09-25T19:00:12.000Z"}+{"type":"attachment","attachment":{"type":"queued_command","prompt":" ","commandMode":"prompt","origin":{"kind":"human"}},"isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000013","timestamp":"2026-09-25T19:00:13.000Z"}+{"type":"attachment","attachment":{"type":"hook_success","prompt":"not queued","commandMode":"prompt"},"isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000014","timestamp":"2026-09-25T19:00:14.000Z"}+{"type":"assistant","effort":"high","message":{"id":"msg_synthetic","type":"message","role":"assistant","model":"claude-opus-5-5","content":[{"type":"text","text":"Tests pass, lint is clean, types check."}],"stop_reason":null},"isSidechain":false,"sessionId":"5f0c2a9e-3b7d-4e61-9a24-7c1d8e0f4b32","cwd":"/srv/demo","version":"2.1.290","uuid":"00000000-0000-4000-8000-000000000015","timestamp":"2026-09-25T19:00:15.000Z"}