Artifact b3ceaeecae09d96ac5f035134ae48175efd7732fa51a35d40f6946587b7a9f86:
- File
test/pic/streams/bash_hold.sse
— part of check-in
[af92ae84b2]
at
2026-11-19 22:04:56
on branch steering
— Durable steering and follow-ups, as Pi's
With --json --commands, a running pic reads Pi's RPC command lines on stdin (steer, follow_up, clear_queue, abort, set_steering_mode, set_follow_up_mode) wherever it already waits, and answers as Pi does. Each accepted message is journaled (pic_queued, journal version 8) before it is acknowledged. Steering becomes a user entry after the turn's tool results, before the next model call (and after a compaction); follow-ups become the next request when the answer is recorded, in the same transaction. Messages belong to the request that accepted them; on a failure or an abort they are marked returned and listed in a queue_returned event, never run later. pic check verifies each delivered entry against its queued row. Bash commands get /dev/null on stdin, as in Pi. (user: dmestas, size: 888) [annotate] [blame] [check-ins using] [more...]
event: message_start data: {"type":"message_start","message":{"id":"msg_01","type":"message","role":"assistant","model":"claude-opus-5-5","content":[],"stop_reason":null,"usage":{"input_tokens":25,"output_tokens":1}}} event: content_block_start data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_hold","name":"bash","input":{}}} event: content_block_delta data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"command\": \"touch started; i=0; while [ ! -e release ] && [ $i -lt 1200 ]; do sleep 0.05; i=$((i+1)); done; echo held\"}"}} event: content_block_stop data: {"type":"content_block_stop","index":0} event: message_delta data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"output_tokens":40}} event: message_stop data: {"type":"message_stop"}