Artifact 1687f6654b8498274d8c260a7f3d847a846654d3586c4191158686b117e46d60:
- File
test/pic/streams/bash_hold.want
— 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: 306) [annotate] [blame] [check-ins using] [more...]
result: ok id: msg_01 model: claude-opus-5-5 stop: tool_use usage: {"input_tokens":25,"output_tokens":40} error: - content: [{"type":"tool_use","id":"toolu_hold","name":"bash","input":{"command":"touch started; i=0; while [ ! -e release ] && [ $i -lt 1200 ]; do sleep 0.05; i=$((i+1)); done; echo held"}}]