Skip to content

Sonny: the welcome heads every lead's history, as Claude Code's does - #320

Merged
lydakis merged 10 commits into
mainfrom
claude/project-thread-rn5fyq
Oct 29, 2026
Merged

lydakis merged 10 commits into
mainfrom
claude/project-thread-rn5fyq

Conversation

@lydakis

@lydakis lydakis commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Sonny's portrait from #253 used to show only on the screen where a lead was just made, and after the very first time it was a small icon. A reopened lead showed nothing above its history. George asked for it to work the way Claude Code's does: always at the top of the history, so scrolling all the way up shows it.

Now

  • The large portrait is the first thing in every lead's transcript.
  • On open, it sits above the history when the newest page already reaches the start of the conversation.
  • In a longer conversation it shows once scrolling up has loaded back to the first message. It's never placed on top of a page that has older messages before it.
  • A redraw, such as after a resize, draws it again at the current width and with the lead's current model.
  • A side chat has no portrait.
  • The small icon and the ~/.agent/sonny/welcomed marker are gone. George picked keeping only the big one.
  • Also removed: two stray .png.html screenshot pages that Sonny: a first run that sets itself up and says hello, and a Linux install script #253 committed by mistake.

A reopened lead: the portrait above its two messages

A 110-turn conversation scrolled back to its start: the portrait above the first message

Testing

  • Tried live in tmux in full screen with an empty HOME and the synthetic Responses endpoint (bench/synthetic_model.py):
    • A new lead opens on the portrait.
    • After two messages and a quit, reopening shows the portrait above them.
    • After 110 more turns through agent run, reopening starts on the newest page with no portrait. PageUp loads older pages until the first message, and the portrait is above it.
  • cargo test -p sonny --bins passes (319). cargo clippy -p sonny --all-targets -D warnings and cargo fmt --check are clean.

claude added 10 commits October 28, 2026 01:25
- With no provider anywhere, sonny in a terminal asks for one (a ChatGPT
  plan, an Anthropic, OpenAI or OpenRouter key, or Bedrock with an AWS
  profile) and keeps it in ~/.agent/env, instead of failing. The CLI now
  names that failure provider_required, so Sonny reads the code, not text.
- With no model, Sonny lists what the providers offer and keeps the pick as
  AGENT_MODEL in ~/.agent/env, instead of failing with model_required.
- AGENT_MODEL (and the lookout's keys) count from ~/.agent/env as well as
  the shell, with the file first, as the daemon and approver see it.
- The first start writes ~/.agent/models when there is none, and `agent
  stats` starts a daemon on a fresh install like `start` does.
- install.sh fetches the latest Linux release tarball, checks its sha256,
  and links ~/.local/bin/sonny, for machines without Homebrew.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L
First-run setup keeps settings where #251 put them, as Codex does: the
provider, the default model and the suggested lead and task efforts go
in ~/.agent/config.toml (top-level provider and model, [sonny]
lead_effort and task_effort), and only keys and AWS_PROFILE in
~/.agent/env. agent_client::config::set writes keys line by line so the
person's comments stay. The daemon takes the config's provider after
AGENT_PROVIDER, and a new bot the config's model after AGENT_MODEL.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L
…itHub CLI is signed in

The .sha256 comes from the same release as the tarball, so it only guards
the download. With gh signed in, the installer also verifies the
provenance the release workflow attests, as publish-homebrew does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L
The portrait was drawn only over a lead just made, and a small icon
after the first; a reopened lead showed none. Now the portrait is the
first thing in every lead's transcript: above the history when the
newest page reaches the conversation's start, and once scrolling up has
loaded back to it otherwise. A side chat has none. The icon and the
~/.agent/sonny/welcomed marker go, and the two stray screenshot pages
from #253 with them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGH8qUQFR4a1z8DWu4L
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 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-29T01:05:26.503947Z e5dc01e PR opened
🔒 Security Review ✅ Completed 2026-10-29T01:07:01.903254Z e5dc01e PR opened
ℹ️ 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
lydakis merged commit 4c0e671 into main Oct 29, 2026
3 checks passed
@lydakis lydakis mentioned this pull request Oct 29, 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