Repository navigation
feat: merge live Remote Control task events into the agent tree - #388
Conversation
The tracker folds `task_started`, `task_progress`, `task_updated`, `task_notification` and `background_tasks_changed` events from the worker's batches and the client read stream into a per-session book, bounded and kept in memory only. `agentTrees.show` merges that book into the tree read from disk by `task_id` or `tool_use_id`: disk fields are kept, a matched node gains its provenance and the stream's state with its observation time, and tasks that belong to the session but name no disk agent are listed separately. The disk tree stays the authoritative source for every session.
|
@codex review |
|
@codex security review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
The door's Remote Control tracker now keeps the background tasks and subagents its sessions report, and
agentTrees.showmerges them into the tree read from disk.A live task joins a disk agent by
task_idortool_use_id. The merged node keeps every disk field and gains its provenance and the stream's state with when the door observed it; tasks that belong to the session (byoutput_file) but name no disk agent are listed asliveOnly. The stream is never the only source, so a session the door has not observed returns the disk tree with every node markeddisk.The event shapes and the merge rules are in docs/rc-agent-events.md.
Closes #364