Repository navigation
Sonny: an agent's command or window can float over its window, in Rex - #523
Conversation
…ft is small Every Rex, Herdr and cmux call Sonny makes waited on its CLI with no limit, from the lead's screen loop: a host that stopped answering froze Sonny. They now go through mux::output, which stops the CLI after 10 s. Herdr's ratio is the first pane's share and a swap keeps the shares in place, so a small split above or to the left came out at 65%. It now asks for 0.35 when it swaps. Usage text and comments name cmux beside Rex and Herdr. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
…e screen A lead's tasks were laid out by blocking multiplexer CLI calls made inside the screen loop: about seven per task start, two or three per state change, and /status re-read places every two seconds. Each Rex call measures about 27 ms, so typing stalled for ~200 ms whenever a task started. mux::Worker owns the Layout on a thread of its own. Jobs run in order; a window naming that a later one follows is skipped; places are read in the background and /status reads the kept copy. What a job has to say comes back to the screen loop on a channel. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
# Conflicts: # sonny/FEATURES.md # sonny/src/mux.rs
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
…then The layout listed every block before each thing it did: a task start listed three times, every state change of any task once more, and /status re-read places every two seconds. Now the home's blocks and places are kept, and read again only once the host's events say something changed, or Sonny changed it itself. A host's events say that something changed, not what: the home is read again whole, as Herdr's and cmux's event docs ask of a client that keeps their state. - Rex: `rex events -s SESSION --json`; terminal and focus events move no block. - Herdr: `events.subscribe` on HERDR_SOCKET_PATH, which Herdr sets in its panes; its CLI has no stream. An error (events_lost) ends the watch. - cmux: `cmux events` for workspace, pane and surface; its heartbeats end the command once Sonny is gone. With no stream, or once it ends, the home is read once per batch of work. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
…ession_destroyed ends the stream Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
…ns off the worker A read that fails is no longer cached as an empty home while the news stream is up, and a host slow to take the subscription no longer holds up the layout worker. Herdr's and cmux's feature rows record the change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
… worked Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
When the project's lead ran out of Rex, Herdr and cmux, an agent's run_in_pane or show_agent opened a Rex session (or else a Herdr or cmux workspace) that no one watched, and agents got the Rex skill. Now a call goes only where the lead laid the project out, where its lead is, or where the project it was asked from is; otherwise it says nothing opened would be seen. Out of every multiplexer, agents get no layout skill. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
Another project's Sonny still in its multiplexer keeps the skill it installed; this one only installs none. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGFK4LP1UZB6mt7eV3i
run_in_pane and show_agent take split "float": for something the person deals with once and closes (a sign-in, a quick look). Rex floats a block only in its own window, so it is split beside its anchor, then floated with session.float_block over the middle of the window, taking neither focus nor the active window. Where a multiplexer cannot float (Herdr's popup is plugin-only and modal, cmux's canvas is a whole-workspace mode), it is split on the right. Only Rex's skill mentions it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT
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. |
|
The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b136eae823
ℹ️ 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".
…s it beside (#533) * Sonny: host calls give up after 10 s; Herdr's small split above or left is small Every Rex, Herdr and cmux call Sonny makes waited on its CLI with no limit, from the lead's screen loop: a host that stopped answering froze Sonny. They now go through mux::output, which stops the CLI after 10 s. Herdr's ratio is the first pane's share and a swap keeps the shares in place, so a small split above or to the left came out at 65%. It now asks for 0.35 when it swaps. Usage text and comments name cmux beside Rex and Herdr. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * FEATURES: host call limit and Herdr split (#489) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Sonny: the layout runs on its own thread, so no host call holds up the screen A lead's tasks were laid out by blocking multiplexer CLI calls made inside the screen loop: about seven per task start, two or three per state change, and /status re-read places every two seconds. Each Rex call measures about 27 ms, so typing stalled for ~200 ms whenever a task started. mux::Worker owns the Layout on a thread of its own. Jobs run in order; a window naming that a later one follows is skipped; places are read in the background and /status reads the kept copy. What a job has to say comes back to the screen loop on a channel. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * FEATURES: layout worker row (#492) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Sonny: hosts say what changed, so the layout reads a home again only then The layout listed every block before each thing it did: a task start listed three times, every state change of any task once more, and /status re-read places every two seconds. Now the home's blocks and places are kept, and read again only once the host's events say something changed, or Sonny changed it itself. A host's events say that something changed, not what: the home is read again whole, as Herdr's and cmux's event docs ask of a client that keeps their state. - Rex: `rex events -s SESSION --json`; terminal and focus events move no block. - Herdr: `events.subscribe` on HERDR_SOCKET_PATH, which Herdr sets in its panes; its CLI has no stream. An error (events_lost) ends the watch. - cmux: `cmux events` for workspace, pane and surface; its heartbeats end the command once Sonny is gone. With no stream, or once it ends, the home is read once per batch of work. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Rex news, as checked on 0.1.0 preview.24: ownership moves no block, session_destroyed ends the stream Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * FEATURES: hosts' news row Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * FEATURES: #493 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Sonny: a failed home read is tried again, not kept; a host's news opens off the worker A read that fails is no longer cached as an empty home while the news stream is up, and a host slow to take the subscription no longer holds up the layout worker. Herdr's and cmux's feature rows record the change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Sonny: a close or rename reads the home again rather than guessing it worked Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Sonny: out of every multiplexer, an agent's window opens nowhere unseen When the project's lead ran out of Rex, Herdr and cmux, an agent's run_in_pane or show_agent opened a Rex session (or else a Herdr or cmux workspace) that no one watched, and agents got the Rex skill. Now a call goes only where the lead laid the project out, where its lead is, or where the project it was asked from is; otherwise it says nothing opened would be seen. Out of every multiplexer, agents get no layout skill. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * README: out of every multiplexer, nothing is opened unseen Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * FEATURES: #500 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Sonny: out of every multiplexer, layout skills are left as they are Another project's Sonny still in its multiplexer keeps the skill it installed; this one only installs none. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Sonny: an agent's command or window can float over its window, in Rex run_in_pane and show_agent take split "float": for something the person deals with once and closes (a sign-in, a quick look). Rex floats a block only in its own window, so it is split beside its anchor, then floated with session.float_block over the middle of the window, taking neither focus nor the active window. Where a multiplexer cannot float (Herdr's popup is plugin-only and modal, cmux's canvas is a whole-workspace mode), it is split on the right. Only Rex's skill mentions it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * README: float, a split over the agent's window in Rex Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * FEATURES: #523 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Sonny: an agent's name in the side pane goes to its own tab, as Ctrl+T does Where the lead's tasks are laid out in Rex, Herdr or cmux, clicking a task's name in the side pane's title, or Ctrl+T, brings its own tab into view there: Rex makes its window the session's active one, Herdr focuses its tab, cmux its surface. The ↗ beside the name still opens it in the main view. Out of a multiplexer the name is only a name and the hint leaves Ctrl+T out. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Sonny: a laid out agent's name keeps its room, its tab key going first Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Sonny: a click on an agent's name goes to its tab, a right click beside; agent_opens swaps them An agent laid out in Rex, Herdr or cmux is worked with in its own tab, so a click on its name, its roster row or its /status row goes there; a right click opens the look beside the conversation. [sonny] agent_opens = "beside" swaps the two. An agent with no tab opens beside either way. The pane's title draws a laid out agent's name in the agents' blue, as any agent's name that opens it is drawn. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Sonny: /config counts agent_opens Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * README: the pane's title, laid out and not Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * FEATURES: a click on an agent's name goes to its tab Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * FEATURES: #533 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Sonny: a task's window goes to an agent's tab too, its project's layout found off the screen Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Sonny: the lead looks for a clicked agent's tab on the layout worker, not in its last read Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT * Sonny: the ungated run in the gate test isn't timed on 300 ms another test's script can take Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGEWm1MS4yiwexivszT --------- Co-authored-by: Claude <[email protected]>
What
run_in_paneandshow_agentnow accept a fifthsplitvalue,float. It's meant for things the person looks at once and then closes, such as a sign-in or a quick look at some output.floatfalls back to a right split there (theBackend::floatdefault).Changes:
mux::SPLITSreplacesSIDESas the one list of valid values. The tool descriptions inserved.rsand Sonny's ownshowandrun_in_panevalidation both read from it.Layout::placeandLayout::splitsendfloattoBackend::float.rex-windowsskill mentionsfloatfor something the person deals with once.Finding 9 of the multiplexer audit (floating windows: Rex first).
Checks
cargo clippy -p sonny --all-targets -D warningsandcargo test -p sonnypass locally. The new testa_command_floats_over_its_owners_windowruns against a fakerexbinary.