Repository navigation
Sonny: a task opens a tab only when asked - #773
Conversation
A tab for every task had become unbearable: reviewers and a lead's own helpers filled the tab bar, and leads were asked to close them again and again. Now a task's turn opens no tab. One opens when its starter asks (`start_task`'s `tab`, for a task the person will want to watch or talk to, asked or not), an agent shows it, the person goes to it from /status or a name, or it comes to need them. A tab asked for stays once its result is taken. `[sonny] task_tabs = "every"` (in /config) keeps the old behaviour: every task's window opens as its turn starts and closes once taken. The show_agent text is tightened so the lead's declared tools stay within their half of the declared-tools budget. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGGnfYAvt4yrAts3bXy
Codex Review Summary: ✅ CompletedThis 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: 0cc6078c0c
ℹ️ 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".
A start_task tab now goes through the same placement as any task's window: past [sonny] task_windows it closes the lead's least recently used task tab, never one the person has not looked at nor one that holds its place, and with only those in the way it waits for the person. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGGnfYAvt4yrAts3bXy
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 19090a9022
ℹ️ 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".
… lead reads it Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGGnfYAvt4yrAts3bXy
|
CI on d1f2ffb: Generated by Claude Code |
Why
Opening a tab for every task had become unbearable: reviewers and a lead's own helper tasks filled the tab bar, and the person kept asking leads to close them. Leads now decide which tasks the person will want to see.
What changes
Fleet::showinsonny/src/main.rs).start_taskgetstab("A tab of its own, for a task the person will want to watch or talk to, asked or not.");show_agent, as before;go_to(a click on a/statusrow or a name, Ctrl+T) now opens a task's tab when it has none;needs_windowopens its tab, not only one set aside for room (keeps the Sonny: a task set aside for room opens its window once it needs you #639 rule).[sonny] task_tabs = "asked" | "every", in/config.everykeeps the old behaviour (every task opens and closes as before). Read as the config file changes, besidetask_windows.show_agent's description loses "Every agent you start gets a tab of its own when its turn starts" and is tightened, so the lead's declared tools stay within half the declared-tools budget (now exactly at 32,768 bytes; it was 4 bytes under before this PR).No daemon change, no protocol or schema bump.
Tests
a_task_opens_a_tab_only_once_it_needs_you_or_you_go_to_it: two tasks' turns open no tab; one held for an approval opens its tab; going to the other opens its tab.a_task_set_aside_for_room_says_so_and_opens_once_it_needs_younow runs withtask_tabs = "every".task_tabs.cargo test -p sonny --bins(1104 passed),cargo test -p agent-client, clippy-D warnings, fmt.Not run live in a multiplexer: the cloud has no Rex, Herdr or cmux. No screenshots, since nothing is drawn differently apart from the new
/configrow.