Commit Graph

3 Commits

Author SHA1 Message Date
alan 64e51ee751 Claude tasks: stop listing finished subagent/foreground calls as running
The host counted any tool_result containing "running in background with ID"
as a launch acknowledgement, so a subagent's foreground `sed` of
fake-claude.py (or translate.go) became a background task that never ends.
A subagent's background command whose completion notification preceded its
launch result was also revived. Both stayed "Running" in the chat for days.

- claudehost: only a Bash/Agent/Task call's own first-line acknowledgement
  starts a task; finished ids are never revived by late acks/progress;
  background_tasks_changed (the CLI's running set) ends unlisted tasks;
  tool output no longer counts as a task notification.
- claude: same strict acknowledgement; background_tasks_changed settles
  tracked tasks; on reattach, host tasks without a native id are checked
  against the main and subagent transcripts, so phantoms from hosts still
  running the old build disappear.
- Fake CLI "subagent" turn and regression tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 00:27:50 +00:00
alan f3a39a5e33 Retain native task identity across partial progress notifications 2026-11-07 16:23:49 +00:00
alan 5061cd5da4 Keep native Claude background tasks alive across detached sessions 2026-11-07 16:22:16 +00:00