Skip to content

Sonny: ask puts a decision with reasons where it was asked - #245

Merged
lydakis merged 5 commits into
mainfrom
claude/project-thread-jcfuvq
Oct 28, 2026
Merged

lydakis merged 5 commits into
mainfrom
claude/project-thread-jcfuvq

Conversation

@lydakis

@lydakis lydakis commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

What changes

The ask tool is a decision card now. It takes:

  • question
  • why: what the answer decides, and the background the person needs
  • options: 2 to 4, each with a label and an explanation of what picking it means
  • recommended: the option's number, counting from 1
  • reason: why that option is recommended

The 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: QUESTION plus the answer). The lead's design-first rule now says to put the firm pick to the person with ask.

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:

Open 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 dim answering "…" row instead of the raw You 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:

asked

After quitting and reopening Sonny, the question is still open (read back from the replayed history), and typing 1 answers it:

answered

The same decision in the full-screen view (/fullscreen, now on main):

fullscreen

Tests

  • cargo test -p sonny --bin sonny: 231 passed (after merging main).
  • cargo clippy -p sonny --all-targets: clean.
  • The two sandfs tests in sonny/tests/task.rs fail in this container because it has no fusermount. 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

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

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T05:08:46.805778Z 2f77fdd New commits
🔒 Security Review ✅ Completed 2026-10-28T05:10:18.308384Z 2f77fdd New commits
ℹ️ 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.

lydakis commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 2f994d9ea8

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

lydakis commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 2f994d9ea8

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 2f994d9ea8

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

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

lydakis commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@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: 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".

Comment thread sonny/src/main.rs Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 512c9840a4

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

lydakis commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

The rust job failed on html::tests::a_page_draws_and_its_blank_end_is_cut with "Chrome took longer than 15s". This PR doesn't touch sonny/src/html.rs or anything it calls, and the same job passed on the previous head (512c984) with these Sonny changes. The new commit is only a README merge from main. So this is headless Chrome on the runner timing out, and there's no fix to port. I'm re-running the failed job once.


Generated by Claude Code

lydakis commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

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 rust job. I'm keeping it watched.


Generated by Claude Code

@lydakis
lydakis merged commit 7be173d into main Oct 28, 2026
4 of 5 checks passed
@lydakis lydakis mentioned this pull request Oct 28, 2026
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