Repository navigation
Sonny: keep the person's settings when it changes a lead - #149
Merged
Merged
Conversation
Protocol 14. configure replaces what a bot's client chose when it made it: its instructions, a model of the same family with an optional effort, and a root bot's gate (approve: [] alone removes it; a bot another bot made keeps the gates it descends from). It is refused while a turn runs or waits parked, answers which fields changed, and tells followers with a live configured event. ready.providers now names the efforts each binding's family takes, and the client keeps it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
The app's project file helpers and its ~/.agent/env reader move to agent-client, so a terminal client composes a lead the app's way. Finding a folder's project now stops at its repository's top, and the home folder's project applies to home itself only, so a repo under home is never claimed by it. The coordinator lists only its own project's agents when it names or finds a task. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
Sonny opens a folder's lead in a Codex-style TUI, lays each task out as a Rex window, and offers /model, /approvals, /status, /sound, /copy, /open and /quit. Agents get a rex-windows skill, and an errand skill when Errand is installed; Errand runs are drawn as calls, and detached jobs open in their own Rex window. Pictures come in a follow-up. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
In a terminal that speaks the Kitty graphics protocol (Rex, Kitty, Ghostty), Sonny draws a reply's SVG, Mermaid (through Pele), math (through MathJax) and HTML pages as pictures, and agents get a pictures skill saying so. Elsewhere they stay text. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
Each release also builds a universal sonny, packs it with the app's signed agent daemon as sonny-X.Y.Z.tar.gz, and renders Formula/sonny.rb; publish-homebrew validates and pushes the formula beside the Agent cask, under the same tag. A formula's download is not quarantined, so sonny needs no signing. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
A steer restarts the demo script within a turn, and a turn keys its calls by id, so each request now names its calls afresh. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
…-thread-45hlbm-pictures
…ect-thread-45hlbm-homebrew
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
…ect-thread-45hlbm-homebrew
Clearing the thinking binding makes the next request strip thinking written under the old instructions. The docs now say a client-made fork's gates can be replaced too, since that client could make an ungated bot anyway. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
…ject-thread-45hlbm-client
…t-thread-45hlbm-sonny
…-thread-45hlbm-pictures
…ect-thread-45hlbm-homebrew
…nect - History and live results read Anthropic tool_use/tool_result blocks as calls and outputs, so Claude bots' calls show with their output. - A history read the daemon cut at its byte limit asks for the rest. - Calls still running when Sonny attaches finish live. - After a reconnect the fleet reads the project's bots again, opening tasks that started meanwhile and marking stopped ones idle. - An Errand listing that runs past three seconds is killed. - A new lead takes the project file's model and effort first. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
A tool_started event carries a 2 KiB preview of a call's arguments, so a truncated one is read from the bot's items. The bot is inspected after the replay is skipped, so a turn that ended meanwhile is not shown as running. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
…-thread-45hlbm-pictures
- CSS variables are filled in inside tags only, so a Mermaid label that reads var(--x) stays as written. - Image ids keep a 16-bit count, so pictures still in scrollback keep theirs for the first 65,535. - A fence a reply never closed shows its lines as code when the reply ends, instead of vanishing. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
…ect-thread-45hlbm-homebrew
…figure A turn that ran before configure moved the bot keeps the model and effort it ran at, in its record and as the cache the next turn takes as held. A keyed creation keeps a fingerprint of the instructions it was sent with, so a resend still matches after they are replaced. Schema 49. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
…t-thread-45hlbm-sonny
…ject-thread-45hlbm-client
…-thread-45hlbm-pictures
…ect-thread-45hlbm-homebrew
Sonny now replaces a lead's instructions on attach only when it saw a client compose what they hold (a fingerprint per bot in ~/.agent/sonny/instructions.json); instructions set any other way are kept, with /instructions to take the folder's again. The Rex note leaves the instructions for the rex-windows skill, so they read the same in any client. /model writes the lead's model and effort to .agents/project.toml when the folder has one, editing only those lines, and the global remembered model is gone. A pick made while a turn runs shows in the footer and applies when idle; one that another client overtakes is dropped. 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. |
A failed edit, write or read shows its error instead of the change it asked for. A call denied before it started is read from the bot's items and shown as denied. Sonny opened anywhere in a project attaches to the lead working in the project's folder, makes it there when missing, and refuses a same-named lead working elsewhere. Reconnecting pages back to the last node drawn and matches results to calls kept from before. The next page of approvals shows once the first is answered. An unclosed $( and a backslash before a non-ASCII character no longer crash the renderer. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
…-thread-45hlbm-pictures
…ect-thread-45hlbm-settings
The daemon outlives Sonny and gives agents its own path as AGENT_BIN. Started from the versioned keg, that path is gone after an upgrade and brew cleanup. The formula's sonny wrapper now names the opt path. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
…ect-thread-45hlbm-settings
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
…ect-thread-45hlbm-settings
- A hunk range that doesn't start with - or + is read as line 1 rather than sliced mid-character. - While /status holds the screen, the newest 5,000 transcript lines wait for it and a note says how many earlier ones went by. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
…-thread-45hlbm-pictures
…ect-thread-45hlbm-homebrew
…ect-thread-45hlbm-settings
- A call waiting on the person is written above the status row in full, every line of its command, before y can allow it. - Bots Sonny makes get the default compaction instructions, as the CLI's and the app's do, so long conversations can compact. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
…ect-thread-45hlbm-settings
…-thread-45hlbm-pictures
…ect-thread-45hlbm-homebrew
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 47aea0520b
ℹ️ 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 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
…, unclosed fences A call listed with cut arguments is shown whole, read from the node that planned it; when that read fails, y is refused and n denies it. Errand runs are keyed by bot and call, since call ids repeat across bots. Transcript lines go into scrollback in chunks a u16 row count holds. A fence or $$ block still open when a reply ends shows as code instead of vanishing. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
…-thread-45hlbm-pictures # Conflicts: # sonny/src/main.rs # sonny/src/transcript.rs
…ect-thread-45hlbm-homebrew
…ect-thread-45hlbm-settings
…ject-thread-45hlbm-client
…t-thread-45hlbm-sonny
…-thread-45hlbm-pictures
…ect-thread-45hlbm-homebrew
…ect-thread-45hlbm-settings
lydakis
changed the base branch from
claude/project-thread-45hlbm-homebrew
to
main
October 26, 2026 02:33
# Conflicts: # Cargo.lock # client/src/project.rs # sonny/Cargo.toml # sonny/README.md # sonny/src/main.rs # sonny/src/project.rs
This was referenced Oct 26, 2026
Merged
Merged
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.
Stacked on #148. This fixes the three ways Sonny could quietly overwrite something the person set.
Instructions. When Sonny opens a lead, it now refreshes the lead's instructions only if it saw a client compose what the lead holds now. It keeps one fingerprint file per lead in
~/.agent/sonny/instructions/<bot_id>. If the instructions were set any other way (configurefrom another client, or before Sonny ever saw the lead), Sonny keeps them and shows a note. The new/instructionscommand takes the folder's instructions again. The Rex note is gone from the instructions, since therex-windowsskill already says the same thing. So a lead's instructions read the same inside Rex and out, and no longer flip each time.Model.
/modelnow writes the lead'smodelandreasoninginto.agents/project.tomlwhen the folder has that file. Only those two lines change. Before the edited file replaces the original, Sonny parses it and checks it names what was picked. The global "last model Sonny ran on" (~/.agent/sonny/model) is gone. A new folder's lead takes--model, then the project file, the role,AGENT_MODEL, and finally the newest agent's model.Picks while a turn runs. A
/modelor/approvalspick made mid-turn now shows in the footer as→ MODEL EFFORT when idle(or· MODE approvals when idle) until it applies. If aconfiguredevent from another client changes the same setting first, Sonny drops the pick and says so, instead of laying it over the other client's change.Checked by hand against a protocol 14 daemon:
/instructionsrestores the folder's instructions./modelrewroteproject.tomland kept the comment./approvalspick made mid-turn shows in the footer and applies when the turn ends.cargo test -p sonnypasses, including tests for the file edit and for quoted keys.🤖 Generated with Claude Code