Skip to content

Sonny: full screen only, buttons, folds, quiet agent messages, tasks in the pane, pane keys and a little color - #326

Merged
lydakis merged 36 commits into
mainfrom
claude/project-thread-agdr75
Oct 29, 2026
Merged

lydakis merged 36 commits into
mainfrom
claude/project-thread-agdr75

Conversation

@lydakis

@lydakis lydakis commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

What changes

Full screen only. The inline mode and /fullscreen are gone. /status, /background, /side and /mcp always open in the pane.

Quieter signals

  • A message waiting to go with the next call shows as a small 📎 in the footer (📎 2 for two), instead of a loud line.
  • A turn that ends with empty_completion ends quietly, with no failure shown. The fleet and the roster count it as done.
  • Reactions sit under the message they answer, the bot's and yours, including on older replies.

Buttons (links prefixed sonny:, never underlined or written as OSC 8)

  • Calls of one kind in a row fold into one row: • Saved to memory a, b and c ▸. A click opens or folds them.
  • The options of a question the agent asks are buttons. A click answers with that option.
  • Agent-to-agent messages are one dim row: a message from another bot (↳ calc.neg: Heads up… ▸), or the lead's task updates. A click opens the whole message, read again from history; only its first line is kept.

Tasks the lead starts show as a roster where they were started. Each task has a live state (starting, working, needs you, done, failed), read from its running turn (a steered message doesn't count as one) every few seconds, with every task re-read every 30 seconds. A click on a task opens its own Sonny in the pane, where you can watch it and talk to it, as with a side chat. That Sonny keeps the task's own model and leaves the host's Herdr/cmux tab alone (new unlisted --embedded flag). George compared it against a prototype with a box per task and picked the roster.

Pane keys (Rex and other multiplexers take Shift+Tab, so Sonny binds none):

  • Esc closes the pane, as before.
  • Ctrl+[ / Ctrl+] go back and forward through what the pane showed, as a browser does. Back from the first page closes the pane, and Ctrl+] reopens the last pane closed, Esc's included (with its /status or /background). Both work from the conversation too. A program in the pane keeps them. Ctrl+[ is told apart from Esc only with the kitty keyboard protocol (Sonny composer: Shift-Enter starts a line; mouse selection to type over or delete #297); otherwise it is Esc.
  • Ctrl+\ (Ctrl+4 without the protocol) moves the keys between the conversation and the pane. Tab still does it when nothing is typed.

Color. Only the terminal's 16 colors, so themes set the shades, and each color means one thing: magenta is you (›), blue is the agents (task names, who sent a message, the lead in the footer, a reply's headings), green is what worked (a call's dot, the git branch), yellow needs you, red failed, and cyan is code and work under way. The context count in the footer turns from green to yellow at 100k tokens and to red at 200k. George looked at a bolder variant and took only the headings and the context count from it.

Memory stays bounded: folds, rosters and quiet messages let go of their data once their rows leave the conversation, and rosters that left are no longer polled.

Infra: screen::Tag/Mark, push_marked, put_under, replace_tagged, and a new started.rs.

Screenshots

Three tasks started together with their live states, a message from a task, and the task updates as one row:

roster

A click on neg opens the task in the pane (note ctrl+\ chat):

task in pane

Memory saves folded, and a question whose options are buttons:

fold and ask

A reply with the palette (blue heading, green branch and context, blue lead):

reply

These come from a real daemon with a scripted model, Sonny in tmux, and clicks sent as SGR mouse.

Tests

cargo test -p sonny passes (363 tests), and cargo clippy -p sonny --all-targets -D warnings is clean. New tests cover:

  • the clip
  • empty completions, including the roster reading why a task failed
  • reactions under their reply
  • folds
  • option buttons
  • relayed messages, their sender's color, and windows too narrow for them
  • the roster's states (steered, removed, a daemon that drops out) and links
  • Ctrl+[ / Ctrl+] stepping, closing and reopening the pane

Noticed, not fixed here

On Linux, the bwrap sandbox leaves empty .git/.codex/.agents placeholders in /tmp (a writable root). Sonny then takes /tmp for a repository top, so a lead opened in a folder under /tmp becomes tmp.lead. This belongs with the Linux sandbox edges in #279.

🤖 Generated with Claude Code

claude added 10 commits October 28, 2026 23:30
/fullscreen and the settings' fullscreen key go, with the inline
viewport, the /status and /background screens of their own, and the
side chat that took over the terminal: /status, /background and /side
always open in the pane beside the conversation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d
…on shows no failure

A message attached to the bot's next call was a yellow notice that read
as something to act on: it is now a dim 📎 in the footer (with a count
past one) until a call takes it in. A turn that ends because the model's
last round came back empty ends as one that completed: no red line, no
error, no failure chime.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d
Rows of the conversation can now carry a tag (where a message ends, the
reactions under it) and a link, and be changed in place. The person's
reaction to any reply goes on a row right under that reply, joining the
emoji already there, and taking one back takes it off that row; the
bot's reactions go under the person's message as it makes them, not
once the turn ends. A message no longer in the conversation keeps the
old fallback: a row of its own that says which message.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d
Tasks started one after another (or messaged, removed, scheduled...)
with nothing drawn between now read as one row, "Started a, b and c ▸",
and a click opens it to show each call and folds it again. A row can
carry a button, a sonny: link that is never underlined or handed to the
terminal: the fold's row, and each option of a question the agent asks,
which a click answers with.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d
A message another bot sent, or the lead's task updates, lands as one dim
row: who sent it and its first words, or the news it brings. A click opens
the whole message under it and shuts it again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d
…of Shift+Tab

The lead's start_task calls draw as a roster of the tasks started together,
each with what it is doing now, read every few seconds; a click on a task
opens its own Sonny in the pane, to watch it and talk to it, as a side chat
is. SONNY_TASKS=cards draws each as a box instead, for comparing the two.

Shift+Tab switches tabs in multiplexers, so Ctrl+] moves the keys between
the conversation and the pane.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d
@lydakis lydakis self-assigned this Oct 29, 2026
@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-29T06:38:13.802553Z d1d2eeb New commits
🔒 Security Review ✅ Completed 2026-10-29T06:38:31.119354Z d1d2eeb 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.

@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: 7ca75875ff

ℹ️ 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
Comment thread sonny/src/main.rs Resolved
Comment thread sonny/src/main.rs Resolved
Comment thread sonny/src/main.rs Resolved
Comment thread sonny/src/main.rs Resolved

@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: 1b5580d4d2

ℹ️ 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
Comment thread sonny/src/main.rs Resolved
…b alone; quiet messages keep no payload

- A task opened in the pane runs with --embedded: it announces nothing to
  Herdr or cmux, which hold the lead's tab, and takes no --model from the
  lead's window; only a side chat does.
- Ended tasks are read again every 30 seconds, so one given more work
  shows it; a task the daemon could not read keeps its state, and only
  bot_not_found makes it removed.
- A quiet message keeps only its shut row's words; opening it reads it
  again from the history. A task keeps its brief's first line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d

@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: 0c514eb7fc

ℹ️ 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
Comment thread sonny/src/started.rs Resolved
…opening it at the ends; Ctrl+\ moves the keys

Esc stays the way to close the pane. Ctrl+] opens again the pane
closed last, with its /status or /background.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d

@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: 0dcc7bef35

ℹ️ 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
@lydakis lydakis changed the title Sonny: full screen only, buttons, folds, quiet agent messages, and tasks that open in the pane Sonny: full screen only, buttons, folds, quiet agent messages, tasks in the pane, pane keys and a little color Oct 29, 2026

@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: aaec05c44d

ℹ️ 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/transcript.rs Resolved
Older pages drawn above carry their tags and buttons, so reactions,
folds, rosters and relayed messages work on them too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d

@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: a3cef0537e

ℹ️ 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
A group of calls or tasks drawn again while an older page is written
is found among that page's rows, not flushed under the newer ones.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d
A turn the history drew keeps the message it answers, so what the bot
reacts with later goes under it. A reaction to a message no longer in
the conversation draws no row of its own: the footer says it, and the
message shows it once drawn. One made to a reply still being written
goes under it once it is.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d

@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: 2b32da376a

ℹ️ 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
The newer rows put by while a page is written still count as drawn, so
their folds and rosters are kept; groups take numbers never used before,
and a call on the older page never joins the newer page's group.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d

@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: bc9e5ed219

ℹ️ 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/started.rs Resolved

@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: 6bb651e227

ℹ️ 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
A task whose model ended its turn with nothing to say did not fail and
did not reply: the roster and /status read it as `said nothing`, and
the fleet asks why a failed turn failed before calling it failed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d
A page of older items is still written on a screen of its own, so its
folds, rosters and reactions keep their marks, and that screen's rows
are what the page is put above the rest with, or drawn again with.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d

@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: 8baa5d1f2e

ℹ️ 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/screen.rs Resolved
A fold opened or shut, a quiet message opened, or reactions put under a
message in a page of older items change how many rows the page is: its
count follows, so letting it go or drawing it again takes its rows only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGFoe3qjfmPo7oQpb2d
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