Repository navigation
Sonny: keep the approver fresh, steps only the person can take, /status alerts - #622
Merged
Merged
Conversation
…us alerts - Every Sonny start keeps approver-auto again on its own binary and build, with the judge it already has, so an upgrade restarts it like the lookout and the tool host. /status names a companion that keeps restarting. - ask takes no options and a command: an action card with the line to run (a click copies it) that always waits; the lead hears the line too. run_in_pane sends commands that need the person's keyboard there. - The skill index warns of a skill with no description or one that never says when to use it, shown muted in /status; Sonny's own skills say when. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGE4GZVbkdvr7v4jtbh
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: b723951875
ℹ️ 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".
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGE4GZVbkdvr7v4jtbh
lydakis
pushed a commit
that referenced
this pull request
Nov 1, 2026
The shell description keeps #621's day-long background cap and adds the note's sentence after "collect its result later with wait.". Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHSmyxToLa26Je2pfo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Four items from the Sonny feedback triage, approved for Monday's release:
start_companionsrefreshed the lookout and tool host on every connect, butapprover-autoonly when a window opened in auto. After a daemon restart with no auto window, an old command (a removed Homebrew Cellar path, say) restarted forever and nothing showed it.askrequired options and told agents a question with nothing to choose goes in the reply. A task's reply goes to its lead, so the person only heard through a relay.run_in_paneoffered float "for a sign-in", but nothing marked the agent as waiting on the person.What changes, and where
Companions (
sonny/src/main.rs)start_companionsends withkeep_approver(client, None). If anapprover-autois kept, it is kept again with this Sonny's binary,["approver"], theAGENT_MODELit already has andSONNY_BUILD. So an in-place upgrade restarts it like the other two.serve_autois nowkeep_approver(client, Some(model)), so a new one is judged by the window's model and one already kept keeps its first judge, as its doc already said./statusasks the daemon forcompanionson each read. It names one withrestarts > 0that is down now (waiting for its next start) or has been up less than a minute, the daemon's own healthy mark. The line is a red✗, then how it exits (exits 1,could not start,killed by signal 9) and the count, with its log path muted under it. Formatting is instatus::companion_alerts.Steps only the person can take (
sonny/src/asks.rs,served.rs,agents/task.md)options,recommendedandreasonare no longer required, and there is a newcommand("the exact line for them to paste into their own terminal"). The description's last sentence changes from "A question with nothing to choose between goes in your reply instead." to say that a step only the person can take is an ask with no options andcommand, and it waits.servedrefuses options and a command together, and also neither (typedinvalid_arguments). An ask with a command always waits, and its result tells the agent to do nothing that needs it until the person says how it went.Run this in your own terminal; a click copies it., then the line at the text's own weight, andWaits for you to run it[; a reminder at HH:MM].A click on the line copies it (term::copy, as/copydoes). The composer hint readsAnswer "…": say how it went · esc write instead.needs youin its lead's footer and/status(same path as any open ask). The lookout's note to the lead now saysput a step only they can take, which they run and answer in shop.fix:and quotes the line.ask.postedevents carrycommand(documented inlookout/activity.rsFIELDS).calls.rsshows it under "Asked you".run_in_panedescription:float … for a moment (a sign-in, a quick look)→float … for a quick look. A command that needs the person's own keyboard (a sign-in, a password or passphrase prompt, ssh -t) sits unnoticed in a pane: ask them with ask and its command instead…task.md: "Put a decision only the person can make to them with the ask tool…" → "Put a decision only the person can make, or a step only they can take, to them with the ask tool…". It still fits its 4096-byte budget: "such as shop.fix" became "(shop.fix)", "such as an answer" became "like an answer", and ", and their answer" became "; their answer".Skill check (
client/src/policy.rs,sonny/src/status.rs)Entrygainswarning: Option<&'static str>. For skills,index()setsno descriptionorits description never says when to use it. The check looks for a word such as when, whenever, use, if, before, after, while or during, per agentskills.io ("what the skill does and when to use it"). The skill is still listed, as before. Newpolicy::skills(workspace)andpolicy::skill_warning./statusshows one muted alert under the lookout's line:2 skills to fix, agents may not know when to read them, thenname: whatfor each. It covers the lead's folder and~/.agents/skills.sonny/tests/shipped_skills_say_when.rskeeps it so. A person's edited copy is never overwritten, as before.Why not just follow Codex: Codex skips a skill with bad front matter and reports it. We warn and keep it listed, since a skill that loads with a weak description is better than one that disappears. Codex has no action card; its questions belong to a live turn. Ours outlive the turn, so the card and the wait follow the ask rules that already exist.
Design pass
?still means needs you. Red✗marks only the companion that is actually broken. The skill alert and the "Run this" row are muted. The command keeps the text's own weight, as a code line in a reply does. With NO_COLOR the✗mark and the weights carry it./statuskeeps its order: heading, lookout, then what is wrong, then agents.Screenshots (real app, scripted model, Flexoki dark)
Action card:

/statusalerts:Light versions are in the project files (
agent-notes/action-card/).Tests
cargo test -p sonny -p agent-client: all pass (sonny 903 unit tests plus integration tests).cargo clippy --workspace --all-targets -D warningsandcargo fmt --checkare clean. New tests:every_start_keeps_the_approver_again_on_this_binary_with_its_judge,the_approver_is_kept_again_with_its_own_judge_and_this_builda_companion_that_keeps_restarting_is_named_one_that_recovered_is_not,skills_to_fix_are_one_muted_alert_naming_eacha_step_only_the_person_can_take_is_an_ask_with_its_command_and_no_options,the_card_shows_the_line_to_run_where_a_click_copies_it,an_ask_has_options_or_a_command_never_both_nor_neitherthe_skill_index_warns_of_a_description_missing_or_never_saying_when,every_shipped_skill_says_when_to_use_itNo daemon change: Sonny and the client only.