Repository navigation
Sonny: ask puts a decision with reasons where it was asked - #245
Conversation
The ask tool now takes the question, why it is asked, two to four options each with what picking it means, and the recommended option with its reason, like a decision card. Its description points agents at forks in the road and architectural choices, and has them go on with the recommended option while the person decides when that can be undone. Sonny draws the decision in the conversation where it was asked, in both views, instead of pinning it above the composer under "Needs you". The composer's hint names the open question and its keys, and the person's answer shows under the question it answers. Open questions are read only from the history Sonny replays, so the per-bot file of older ones (~/.agent/sonny/asks) goes: a question older than the replay is not on screen to answer by number anyway. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGCsE1WN9TdyUidfWq7
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. |
…-jcfuvq # Conflicts: # sonny/src/main.rs
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGCsE1WN9TdyUidfWq7
|
@codex review Generated by Claude Code |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
@codex review Generated by Claude Code |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
…-jcfuvq # Conflicts: # sonny/README.md # sonny/src/asks.rs # sonny/src/main.rs
|
@codex review Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 512c9840a4
ℹ️ 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".
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
…-jcfuvq # Conflicts: # sonny/README.md
|
The Generated by Claude Code |
|
Correction: I couldn't re-run it, because the integration got a 403 on rerun-failed-jobs. The PR needs a human to re-run the Generated by Claude Code |
What changes
The
asktool is a decision card now. It takes:questionwhy: what the answer decides, and the background the person needsoptions: 2 to 4, each with alabeland anexplanationof what picking it meansrecommended: the option's number, counting from 1reason: why that option is recommendedThe tool description aims it at forks in the road, architectural choices, and steps that can't be undone. It tells the agent not to wait for the answer: go on with the recommended option if it can be undone, or end the turn. The answer still comes back as the person's next message (
You asked: QUESTIONplus the answer). The lead's design-first rule now says to put the firm pick to the person withask.The question is drawn inline, where it was asked, in both views. The question is bold with a yellow
?, and the why is under it. Options are numbered, each with its explanation underneath, and the recommended one is marked. The reason comes last. It is ordinary committed history, so it looks the same in the inline view and in the full-screen view from #235.Removed:
~/.agent/sonny/asks/), with the code that loaded it, wrote it, and merged it into the replayOpen questions are now read only from the 200 history items Sonny replays. A question older than that isn't on screen, so you couldn't pick its options by number anyway.
Composer: while a question is open, the composer starts with a yellow
?, and its hint names the question and how to answer:Answer "…": 1–3 or your own words · Esc to chat. Esc still sets the question aside so you can send a message of your own. Your answer is drawn under a dimanswering "…"row instead of the rawYou asked:text.Screenshots
These come from a live run of the release build against a real daemon, with a scripted Responses endpoint standing in for the model.
The lead asks, then carries on with the recommended option while the person decides:
After quitting and reopening Sonny, the question is still open (read back from the replayed history), and typing
1answers it:The same decision in the full-screen view (
/fullscreen, now on main):Tests
cargo test -p sonny --bin sonny: 231 passed (after merging main).cargo clippy -p sonny --all-targets: clean.sonny/tests/task.rsfail in this container because it has nofusermount. This diff doesn't touch them.The task-states thread is switching its needs-you count from the asks file to the bot's history, so nothing else reads the file.
🤖 Generated with Claude Code