Files
deepseek-harness/snapshots/sdk/command-attachments/session.v4.jsonl
T
LogosVeritas dc311ba744 feat(sdk): route content blocks through native commands
Reuse the existing run input for command images and ordinary queue/steer delivery.
Align Unicode command separators, bound goal observation, preserve plan input encoding,
and handle explicitly expected Windows cancellation disconnects in runtime tests.
2026-10-26 12:23:58 +08:00

36 lines
7.1 KiB
JSON

{"type":"session","version":4,"id":"{{session:1}}","createdAt":1785097381464,"cwd":"{{cwd}}","isSeeded":false,"delegationDepth":0}
{"type":"permission/preset","data":{"preset":"workspace-write"}}
{"type":"sandbox/mode","data":{"mode":"workspace-write"}}
{"type":"approval/policy","data":{"policy":"ask"}}
{"type":"command/run","data":{"commandId":"{{command:1}}","name":"plan","args":" Reply SDK_COMMAND_IMAGE_OK without tools.","source":{"kind":"user"}}}
{"type":"plan/mode","data":{"active":true}}
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"inserted":[{"content":[{"type":"image","attachment":{"attachmentId":"sha256:b1ff9c8ea3a780bad09b346c423d2d0e46815926879b18e841d928376a946640","mediaType":"image/png","width":1,"height":1,"bytes":69}},{"type":"text","text":"Reply SDK_COMMAND_IMAGE_OK without tools."}],"source":{"kind":"user"},"role":"user","id":"{{message:1}}"}]}}
{"type":"turn/start","data":{"turn":1}}
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"removedCount":1,"inserted":[]}}
{"type":"command/done","data":{"commandId":"{{command:1}}","kind":"success","text":"Plan mode on. Use /plan off to leave."}}
{"type":"step/start","data":{"turn":1,"step":1}}
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt"},"id":"{{message:2}}"}},"surfaceOp":"append"}
{"type":"user/message","data":{"content":[{"type":"image","attachment":{"attachmentId":"sha256:b1ff9c8ea3a780bad09b346c423d2d0e46815926879b18e841d928376a946640","mediaType":"image/png","width":1,"height":1,"bytes":69}},{"type":"text","text":"Reply SDK_COMMAND_IMAGE_OK without tools."}],"source":{"kind":"user"},"role":"user","id":"{{message:1}}"},"surfaceOp":"append"}
{"type":"user/message","data":{"content":[{"type":"text","text":"Current runtime context. This snapshot supersedes earlier runtime-context snapshots.\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: workspace-write. Any available operation enforced by the DSH file sandbox may modify files under the session workspace: \"{{cwd}}\". Some platform temporary areas may also be writable.\n\nApproval prompts are enabled in this session: operations that require approval may ask through the configured answerers; without an available answerer, the request fails closed."}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: workspace-write. Any available operation enforced by the DSH file sandbox may modify files under the session workspace: \"{{cwd}}\". Some platform temporary areas may also be writable."},{"name":"approval:policy","text":"Approval prompts are enabled in this session: operations that require approval may ask through the configured answerers; without an available answerer, the request fails closed."}]},"role":"user","id":"{{message:3}}"},"surfaceOp":"append"}
{"type":"user/message","data":{"content":[{"type":"text","text":"Time sampled while preparing turn 1, step 1: 2026-10-16T00:00:00+00:00[UTC]\nBrowser time zone for this request: unavailable. Ask the user to clarify otherwise-unqualified dates and times.\nElapsed since the preceding model-visible message: unavailable."}],"source":{"kind":"time-context","form":"snapshot","sections":[{"name":"time-context","text":"Time sampled while preparing turn 1, step 1: 2026-10-16T00:00:00+00:00[UTC]\nBrowser time zone for this request: unavailable. Ask the user to clarify otherwise-unqualified dates and times.\nElapsed since the preceding model-visible message: unavailable."}]},"role":"user","id":"{{message:4}}"},"surfaceOp":"append"}
{"type":"request/header","data":{"header":{"config":{"provider":"snapshot-command-images","model":"deepseek-flash"},"tools":"{{tools}}"},"reason":"initial"}}
{"type":"request/context","data":{"provider":"snapshot-command-images","model":"deepseek-flash"}}
{"type":"session/title","data":{"title":"Reply SDK_COMMAND_IMAGE_OK without tools","messageSeqs":[11],"source":{"kind":"fallback"}}}
{"type":"assistant/message","data":{"turn":1,"step":1,"message":{"role":"assistant","content":[{"type":"text","text":"SDK_COMMAND_IMAGE_OK"}],"source":{"kind":"model","provider":"snapshot-command-images","model":"deepseek-flash","replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"deepseek-flash"},"blocks":[{"type":"text"}]}},"id":"{{message:5}}"},"usage":{"inputTokens":10000,"outputTokens":32,"totalTokens":10032},"stream":[{"type":"chunk","time":1792108800000,"chunk":{"type":"block-start","index":0,"blockType":"text"}},{"type":"text-chunks","time0":1792108800000,"index":0,"dt":[],"texts":["SDK_COMMAND_IMAGE_OK"]},{"type":"chunk","time":1792108800000,"chunk":{"type":"block-end","index":0,"block":{"type":"text","text":"SDK_COMMAND_IMAGE_OK"}}},{"type":"chunk","time":1792108800000,"chunk":{"type":"usage","usage":{"inputTokens":10000,"outputTokens":32,"totalTokens":10032}}},{"type":"chunk","time":1792108800000,"chunk":{"type":"finish","reason":{"kind":"stop"},"replayState":{"response":{"kind":"deepseek-messages","version":1,"model":"deepseek-flash"},"blocks":[{"type":"text"}]}}}]},"surfaceOp":"append"}
{"type":"step/end","data":{"turn":1,"step":1}}
{"type":"turn/end","data":{"turn":1,"reason":{"kind":"completed"}}}
{"type":"command/run","data":{"commandId":"{{command:2}}","name":"plan","args":" off","source":{"kind":"user"}}}
{"type":"command/done","data":{"commandId":"{{command:2}}","kind":"error","text":"Attachments cannot accompany /plan off."}}
{"type":"command/run","data":{"commandId":"{{command:3}}","name":"compact","args":"","source":{"kind":"user"}}}
{"type":"command/done","data":{"commandId":"{{command:3}}","kind":"error","text":"/compact does not accept attachments"}}
{"type":"command/run","data":{"commandId":"{{command:4}}","name":"permission","args":" read-only","source":{"kind":"user"}}}
{"type":"command/done","data":{"commandId":"{{command:4}}","kind":"error","text":"/permission does not accept attachments"}}
{"type":"command/run","data":{"commandId":"{{command:5}}","name":"goal","args":"","source":{"kind":"user"}}}
{"type":"command/done","data":{"commandId":"{{command:5}}","kind":"error","text":"Attachments only accompany a goal objective: /goal <objective> or /goal edit <objective>."}}
{"type":"command/run","data":{"commandId":"{{command:6}}","name":"goal","args":" pause","source":{"kind":"user"}}}
{"type":"command/done","data":{"commandId":"{{command:6}}","kind":"error","text":"Attachments only accompany a goal objective: /goal <objective> or /goal edit <objective>."}}
{"type":"command/run","data":{"commandId":"{{command:7}}","name":"goal","args":" resume","source":{"kind":"user"}}}
{"type":"command/done","data":{"commandId":"{{command:7}}","kind":"error","text":"Attachments only accompany a goal objective: /goal <objective> or /goal edit <objective>."}}
{"type":"command/run","data":{"commandId":"{{command:8}}","name":"goal","args":" clear","source":{"kind":"user"}}}
{"type":"command/done","data":{"commandId":"{{command:8}}","kind":"error","text":"Attachments only accompany a goal objective: /goal <objective> or /goal edit <objective>."}}