fix(activity): a step waiting on its own command says what is running, and is not redone as stalled (#69) #71
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/running-tool-69"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #69.
On soundcheck#32 an
openspec.applyagent rannpx vitest run … 2>&1 | tail -12for several minutes. The spine counted "silent for …" the whole time, and nothing said what was running. A shell command writes no event while it runs, and silence was measured from the last event, even though opencode records the call asrunning, with its command and start time.The same cause could kill a long command. The stall watchdog redoes, and rolls back, an agent step silent for 480 s. It exempted steps waiting on a subagent or on the operator, but not steps waiting on their own tool call.
What changes
running_tool_callfinds the newest tool call opencode has started and not finished. While it runs in a busy session the step isn't silent, and the digest carriesrunning_tool,running_targetandrunning_for_s, timed from the call's own start.Running npx vitest run src/lib/… · 3m 12s. The tooltip has the whole command line, how long it has run, and the step's own time.tailused to show a dot and nothing moving).TOOL_CALL_CEILING_S(20 minutes). opencode times shell calls out itself, so a call stillrunningpast that is a wedge, and the redo applies as before.Verification
./tools/test.sh: fast lane passed, with 1,782 backend, 416 UI unit and 67 browser tests. New tests:e2e/running-tool.spec.ts, which checks the spine in a real browser against a fixture step three minutes into a command.test_silence_escalates_and_names_the_last_toolasserted the old behaviour (arunningbash read as silent). It now uses a completed call.run-spine,agent-delegationandagent-transcripteach gain a requirement.🤖 Generated with Claude Code