Skip to content

Sonny: a task opens a tab only when asked - #773

Merged
lydakis merged 4 commits into
mainfrom
claude/project-thread-hwr495
Nov 7, 2026
Merged

lydakis merged 4 commits into
mainfrom
claude/project-thread-hwr495

Conversation

@lydakis

@lydakis lydakis commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

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

  • No tab on a turn. A task's accepted turn (and a reconnect) no longer opens a window (Fleet::show in sonny/src/main.rs).
  • A tab opens when asked:
    • by its starter: start_task gets tab ("A tab of its own, for a task the person will want to watch or talk to, asked or not.");
    • by an agent with show_agent, as before;
    • by the person: go_to (a click on a /status row or a name, Ctrl+T) now opens a task's tab when it has none;
    • by the task coming to need the person: needs_window opens 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).
  • A tab asked for stays once its result is taken; resolving or removing the task still closes it.
  • [sonny] task_tabs = "asked" | "every", in /config. every keeps the old behaviour (every task opens and closes as before). Read as the config file changes, beside task_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).
  • README (layout section, settings table) and the FEATURES row are updated.

No daemon change, no protocol or schema bump.

Tests

  • New 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_you now runs with task_tabs = "every".
  • Config parse test for 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 /config row.

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
@lydakis lydakis self-assigned this Nov 7, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T05:23:55.190476Z d727db8 New commits
🔒 Security Review ✅ Completed 2026-11-07T03:36:03.769903Z 0cc6078 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread sonny/src/served.rs Resolved
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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread sonny/src/main.rs Resolved

lydakis commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

CI on d1f2ffb: runtime failed one daemon test, tests.test_elision test_a_paced_summary_beside_a_call_is_planned_again_at_a_later_boundary (timed out waiting for turn_paced). This PR changes only Sonny and client config, nothing on the daemon's pacing path. On the PR head's release build the test passed 3 times alone and 2 more times under load beside test_trigger, test_turn_compaction and test_lookout, and main's runs are green. So I read it as a timing-sensitive daemon test, not a failure this change causes. No fix for that test exists yet. I merged main into the branch (needed anyway after #761, the declared-tools budget test passes), so CI runs again on d727db8.


Generated by Claude Code

@lydakis
lydakis merged commit 9680ca5 into main Nov 7, 2026
5 checks passed
@lydakis
lydakis deleted the claude/project-thread-hwr495 branch November 7, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants