| 1 | {"type": "transcript_start", "provider": "opencode", "protocol": "opencode2-http.sse", "version": "2.0.18", "scenario": "opencode2_interrupt", "metadata": {"source": "opencode2-spike/recordings/interrupt.ndjson", "capturedAt": "2026-09-28", "nativeSessionId": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "description": "A real OpenCode 2.0.18 session recorded at the HTTP and SSE boundary by the spike recorder. T3's per-turn instructions entry (answered 204, as 2.0.18 does) is written before the thread's first turn."}} |
| 2 | {"type": "expect_outbound", "label": "event.subscribe", "frame": {"type": "event.subscribe"}} |
| 3 | {"type": "expect_outbound", "label": "model.list", "frame": {"type": "model.list", "input": {"location[directory]": "<any>"}}} |
| 4 | {"type": "emit_inbound", "label": "model.list.response", "frame": {"type": "sdk.response", "operation": "model.list", "data": {"location": {"directory": "<work>"}, "data": [{"id": "space-bunny-free", "modelID": "space-bunny-free", "providerID": "opencode", "name": "Space Bunny Free", "compatibility": {"reasoningField": "reasoning_content"}, "package": "@opencode/ai/providers/openai-compatible", "settings": {"apiKey": "public", "baseURL": "https://opencode.ai/zen/v1", "provider": "opencode"}, "capabilities": {"tools": true, "input": ["text", "image", "video"], "output": ["text"]}, "variants": [{"id": "low", "settings": {"reasoningEffort": "low"}}, {"id": "medium", "settings": {"reasoningEffort": "medium"}}, {"id": "high", "settings": {"reasoningEffort": "high"}}, {"id": "xhigh", "settings": {"reasoningEffort": "xhigh"}}, {"id": "max", "settings": {"reasoningEffort": "max"}}], "time": {"released": 1790121600000}, "cost": [{"input": 0, "output": 0, "cache": {"read": 0, "write": 0}}], "status": "active", "enabled": true, "limit": {"context": 1048576, "input": 524288, "output": 524288}}, {"id": "big-pickle", "modelID": "big-pickle", "providerID": "opencode", "family": "big-pickle", "name": "Big Pickle", "compatibility": {"reasoningField": "reasoning_content"}, "package": "@opencode/ai/providers/openai-compatible", "settings": {"apiKey": "public", "baseURL": "https://opencode.ai/zen/v1", "provider": "opencode"}, "capabilities": {"tools": true, "input": ["text"], "output": ["text"]}, "variants": [], "time": {"released": 1760659200000}, "cost": [{"input": 0, "output": 0, "cache": {"read": 0, "write": 0}}], "status": "active", "enabled": true, "limit": {"context": 200000, "input": 160000, "output": 32000}}]}}} |
| 5 | {"type": "emit_inbound", "label": "server.connected", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb737dbd001VzvgLDSnWZmKmp", "type": "server.connected", "data": {}}}} |
| 6 | {"type": "expect_outbound", "label": "session.create", "frame": {"type": "session.create", "input": "<any>"}} |
| 7 | {"type": "emit_inbound", "label": "session.create.response", "frame": {"type": "sdk.response", "operation": "session.create", "data": {"data": {"id": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "projectID": "global", "model": {"id": "big-pickle", "providerID": "opencode", "variant": "default"}, "cost": 0, "tokens": {"input": 0, "output": 0, "reasoning": 0, "cache": {"read": 0, "write": 0}}, "time": {"created": 1790656609743, "updated": 1790656609743}, "title": "spike interrupt", "location": {"directory": "<work>"}}}}} |
| 8 | {"type": "emit_inbound", "label": "session.created", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb737dcf001Bcj0k2QTAM0Kvj", "created": 1790656609743, "type": "session.created", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "slug": "gentle-cabin", "version": "2.0.18", "projectID": "global", "location": {"directory": "<work>"}, "subpath": "", "title": "spike interrupt", "model": {"id": "big-pickle", "providerID": "opencode"}}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 0, "version": 1}}}} |
| 9 | {"type": "expect_outbound", "label": "session.instructions.entry.put", "frame": {"type": "session.instructions.entry.put", "input": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "key": "t3-code", "value": "<any>"}}} |
| 10 | {"type": "emit_inbound", "label": "session.instructions.entry.put.response", "frame": {"type": "sdk.response", "operation": "session.instructions.entry.put", "data": null}} |
| 11 | {"type": "expect_outbound", "label": "session.prompt", "frame": {"type": "session.prompt", "input": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "text": "<any>"}}} |
| 12 | {"type": "emit_inbound", "label": "session.prompt.response", "frame": {"type": "sdk.response", "operation": "session.prompt", "data": {"data": {"id": "msg_0eb737de3001m3HJF1mWJrpc0l", "sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "time": {"created": 1790656609769}, "type": "user", "payload": {"text": "Run the shell command `sleep 60 && echo LATE` with the bash tool, then reply DONE."}, "delivery": "steer"}}}} |
| 13 | {"type": "emit_inbound", "label": "session.inbox.enqueued", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb737de9001N9VhyJRu4KRiDv", "created": 1790656609769, "type": "session.inbox.enqueued", "location": {"directory": "<work>"}, "data": {"inboxID": "msg_0eb737de3001m3HJF1mWJrpc0l", "sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "item": {"type": "user", "payload": {"text": "Run the shell command `sleep 60 && echo LATE` with the bash tool, then reply DONE."}, "delivery": "steer"}}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 1, "version": 1}}}} |
| 14 | {"type": "emit_inbound", "label": "session.execution.started", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb737dee001ZuAVZxlTiA7c0q", "created": 1790656609774, "type": "session.execution.started", "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH"}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 2, "version": 1}}}} |
| 15 | {"type": "emit_inbound", "label": "session.instructions.updated", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb737e07001fxasLhcGBUnjTn", "created": 1790656609799, "metadata": {"instructions": {"initial": true}}, "type": "session.instructions.updated", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "delta": {"core/environment": "88f327784ee8236f77386494957829084cfea17bd5045c9657e7a0157e297b52", "core/date": "bf08b8486572ab3eef677a3c9ee12468e411ae41a8f4d2fb6cf02a6ca73f1986", "core/codemode": "616a7ad8b8e40e8a71eab238dfbbe9eaf0f4a9e6fdad853226d075bfe602e1e6", "core/skill-guidance": "0d001919496102654717308c72635523bf7c3cd99c81e058cc79f2947104f9a5"}}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 3, "version": 2}}}} |
| 16 | {"type": "emit_inbound", "label": "session.inbox.delivered", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb737e0e001zOVQWTib5evpnt", "created": 1790656609806, "type": "session.inbox.delivered", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "inboxID": "msg_0eb737de3001m3HJF1mWJrpc0l"}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 4, "version": 1}}}} |
| 17 | {"type": "emit_inbound", "label": "session.step.started", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7392d8001Mb6P9mUDAqzdcK", "created": 1790656615128, "type": "session.step.started", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "agent": "build", "model": {"id": "big-pickle", "providerID": "opencode", "variant": "default"}, "assistantMessageID": "msg_0eb737e1a001oFX6xYltb810rB", "snapshot": "99482b54df6361365fa0ed7363ccf07edaa7fc93", "started": 1790656609845}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 5, "version": 1}}}} |
| 18 | {"type": "emit_inbound", "label": "session.text.started", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7392df001Hhopzs7fProqK8", "created": 1790656615135, "type": "session.text.started", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "assistantMessageID": "msg_0eb737e1a001oFX6xYltb810rB", "ordinal": 0}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 6, "version": 1}}}} |
| 19 | {"type": "emit_inbound", "label": "session.text.delta", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb739348001XY34oXJ8rQZr90", "created": 1790656615240, "type": "session.text.delta", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "assistantMessageID": "msg_0eb737e1a001oFX6xYltb810rB", "ordinal": 0, "delta": "I'll run that now"}}}} |
| 20 | {"type": "emit_inbound", "label": "session.text.delta.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb73943100113RElcMOYeb4iX", "created": 1790656615473, "type": "session.text.delta", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "assistantMessageID": "msg_0eb737e1a001oFX6xYltb810rB", "ordinal": 0, "delta": "."}}}} |
| 21 | {"type": "emit_inbound", "label": "session.tool.input.started", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb739432001ZjlIdIWwJBPzGR", "created": 1790656615474, "type": "session.tool.input.started", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "assistantMessageID": "msg_0eb737e1a001oFX6xYltb810rB", "id": "call_function_1swk4r27uraj_1", "name": "shell"}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 7, "version": 1}}}} |
| 22 | {"type": "emit_inbound", "label": "session.tool.input.ended", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb739464001q1x8uivfkNg2Oe", "created": 1790656615524, "type": "session.tool.input.ended", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "assistantMessageID": "msg_0eb737e1a001oFX6xYltb810rB", "id": "call_function_1swk4r27uraj_1", "text": "{\"command\": \"sleep 60 && echo LATE\", \"timeout\": 90000}"}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 8, "version": 1}}}} |
| 23 | {"type": "emit_inbound", "label": "session.tool.called", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb739469001e9W3tarUt9Y2oN", "created": 1790656615529, "type": "session.tool.called", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "assistantMessageID": "msg_0eb737e1a001oFX6xYltb810rB", "id": "call_function_1swk4r27uraj_1", "input": {"command": "sleep 60 && echo LATE", "timeout": 90000}, "executed": false}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 9, "version": 1}}}} |
| 24 | {"type": "emit_inbound", "label": "session.text.ended", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb73946e001RTVpUhMUPMWgG9", "created": 1790656615534, "type": "session.text.ended", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "assistantMessageID": "msg_0eb737e1a001oFX6xYltb810rB", "ordinal": 0, "text": "I'll run that now."}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 10, "version": 1}}}} |
| 25 | {"type": "emit_inbound", "label": "session.step.streamed", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb7394730017IaLf37di2Kvhq", "created": 1790656615539, "type": "session.step.streamed", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "assistantMessageID": "msg_0eb737e1a001oFX6xYltb810rB"}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 11, "version": 1}}}} |
| 26 | {"type": "emit_inbound", "label": "shell.created", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb73947f00101SkoJKHKPbjnG", "created": 1790656615551, "type": "shell.created", "location": {"directory": "<work>"}, "data": {"info": {"id": "sh_0eb73947c001P1Uf57ZhQytZgd", "status": "running", "command": "sleep 60 && echo LATE", "cwd": "<work>", "shell": "/bin/bash", "file": "<spike>/xdg-data/opencode/shell/global/sh_0eb73947c001P1Uf57ZhQytZgd.out", "metadata": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH"}, "time": {"started": 1790656615548}}}}}} |
| 27 | {"type": "emit_inbound", "label": "session.tool.progress", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb739480001xmZEQ2fMQ8ijwb", "created": 1790656615552, "type": "session.tool.progress", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "assistantMessageID": "msg_0eb737e1a001oFX6xYltb810rB", "id": "call_function_1swk4r27uraj_1", "metadata": {"shellID": "sh_0eb73947c001P1Uf57ZhQytZgd"}}}}} |
| 28 | {"type": "expect_outbound", "label": "session.interrupt", "frame": {"type": "session.interrupt", "input": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH"}}} |
| 29 | {"type": "emit_inbound", "label": "session.interrupt.response", "frame": {"type": "sdk.response", "operation": "session.interrupt", "data": {"interrupted": true}}} |
| 30 | {"type": "emit_inbound", "label": "shell.deleted", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb739a65001hovknjExaKp2Pa", "created": 1790656617061, "type": "shell.deleted", "location": {"directory": "<work>"}, "data": {"id": "sh_0eb73947c001P1Uf57ZhQytZgd"}}}} |
| 31 | {"type": "emit_inbound", "label": "session.tool.failed", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb739a67001CAYtMibREOcIVU", "created": 1790656617063, "type": "session.tool.failed", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "assistantMessageID": "msg_0eb737e1a001oFX6xYltb810rB", "id": "call_function_1swk4r27uraj_1", "error": {"type": "aborted", "message": "Tool execution interrupted"}, "metadata": {"shellID": "sh_0eb73947c001P1Uf57ZhQytZgd"}, "executed": false}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 12, "version": 2}}}} |
| 32 | {"type": "emit_inbound", "label": "shell.exited", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb739a76001gLJM0X8oOYS91E", "created": 1790656617078, "type": "shell.exited", "location": {"directory": "<work>"}, "data": {"id": "sh_0eb73947c001P1Uf57ZhQytZgd", "status": "exited"}}}} |
| 33 | {"type": "emit_inbound", "label": "session.step.failed", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb739a80001oP9Vi3qmDblnTE", "created": 1790656617088, "type": "session.step.failed", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "assistantMessageID": "msg_0eb737e1a001oFX6xYltb810rB", "error": {"type": "aborted", "message": "Step interrupted"}, "rawFinish": "tool_calls", "cost": 0, "tokens": {"input": 8762, "output": 47, "reasoning": 0, "cache": {"read": 486, "write": 0}}, "snapshot": "99482b54df6361365fa0ed7363ccf07edaa7fc93", "files": []}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 13, "version": 1}}}} |
| 34 | {"type": "emit_inbound", "label": "session.usage.updated", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb739a88001DgMUWPTkTPH9Wr", "created": 1790656617096, "type": "session.usage.updated", "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "cost": 0, "tokens": {"input": 8762, "output": 47, "reasoning": 0, "cache": {"read": 486, "write": 0}}}}}} |
| 35 | {"type": "emit_inbound", "label": "session.execution.interrupted", "frame": {"type": "sdk.event", "event": {"id": "evt_0eb739a8a001WpmfQsDSGLFO9H", "created": 1790656617098, "type": "session.execution.interrupted", "data": {"sessionID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "reason": "user"}, "durable": {"aggregateID": "ses_f148c8240ffegmJ5ZhqhyYOcSH", "seq": 14, "version": 1}}}} |
| 36 | {"type": "runtime_exit", "status": "success"} |