Repository navigation
Sonny: close a task's Rex window once its result is taken - #158
Conversation
A task's turn that completed, returned by a wait in the project (the wait tool's handles or an `agent wait` command), closes the task's window, so finished work does not crowd the tabs. A failed, stopped or waiting task stays open; a wait that returned before the turn ended timed out and closes nothing; a task given more work opens again. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e3a2852e38
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Which turns a wait took is read from what it printed once it ends (the wait tool's result, or `agent wait` lines in a command's output), not from its arguments: a wait that timed out, or never ran, closes nothing, and arguments cut short in the event no longer matter. Reconciling after a reconnect forgets the endings it cannot have seen. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
|
@codex review Generated by Claude Code |
# Conflicts: # sonny/src/calls.rs
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3754e8516c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Finished tasks no longer crowd the Rex tabs.
What "done" means. A task's window closes when both of these hold:
waittool on its handle, anagent wait turn:…command, or a task waiting on a task it started.An ended turn on its own is not enough: the lead hasn't checked it yet, so the window stays until the result is taken. These stay open:
Giving the task more work opens its window again, through the existing
accepted→ show path. The lead's own window never closes. Asking the lead to show a task, or runningsonny --bot NAME, still opens it.This is Rex only for now. The same hook moves into the shared multiplexer layer when Herdr and Tern arrive.
Demo.
SONNY_DEMO_WAIT=1 python3 sonny/demo/model.py PORTmakes the demo lead wait on its task and report, so the task's window can be seen closing.Checks
cargo fmt --all --check,cargo clippy -p sonny --all-targets -- -D warnings,cargo test -p sonny, includinga_wait_names_the_turns_it_takes.