Skip to content

Sonny: full screen with drag-to-copy, behind /fullscreen - #235

Merged
lydakis merged 8 commits into
mainfrom
claude/project-thread-ccr86k
Oct 28, 2026
Merged

lydakis merged 8 commits into
mainfrom
claude/project-thread-ccr86k

Conversation

@lydakis

@lydakis lydakis commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Phase 1 of letting Sonny own the whole screen, as Codex does by default (plan). It's behind /fullscreen and off by default, so inline Sonny is unchanged. This is the gate: George uses it for half a day in Herdr and Rex before phases 2-4 (pictures and the rest of parity, reactions and asks in place, the side panel and file view).

The main question was copying: it must not need a held key or a special mode.

A drag selects two lines and copies them, a double click takes len(values), a triple click a whole line, and the wheel scrolls back

The captions under each frame are part of the recording, not Sonny. They show what landed on the clipboard.

What it does

  • Copy, Codex's way. A plain drag selects and copies when you let go. Double click takes a word (len(values) keeps its brackets; (calc.py): gives calc.py; a word cut over rows comes whole), triple click takes the line, shift-click extends. Ctrl+C copies a selection instead of interrupting, and Esc clears it. The clipboard is the same as /copy's: pbcopy on a local Mac, else OSC 52, which tmux and Herdr pass on.

  • The copy is the text as written. A line wrapped over rows comes back as one line, and the bullets, indents and gutters Sonny drew are left out:

    At 44 columns a wrapped bullet is selected; the clipboard has it as one line without its indent

    To do this, wrapping now marks each row it makes: an empty, hidden first span records the row's lead and whether it continues the line above. screen.rs reads that to join a line's rows back into one line, so it can wrap the line again at any width and copy it without the leads.

  • Scrolling. The wheel and PgUp/PgDn scroll. If you've scrolled back, new rows don't move the view; a note in its own bottom row says how many rows are newer, and a click on it, PgDn or Enter go back to the latest. Lines rewrap when the window gets narrower or wider. The newest 10,000 rows are kept to scroll back to, like a terminal's scrollback; the whole conversation stays in the bot's history.

  • Links. A click without a drag opens the link or file path under it, using the same links as Sonny: clickable link text and file paths, Ctrl-H, room around staged messages #230, read whole even when the address runs past the screen's edge.

  • The rest works over it. /status and /side draw on the full screen and come back to it. The side chat's Sonny takes the mouse itself. /fullscreen switches either way, saved in settings.json; during a turn it switches when the turn ends.

Not in this phase

Pictures (kitty placeholders are text cells, so they do show and scroll), /verbose redraws, find, and overlays haven't been reworked for full screen yet. Paging rows older than the 10,000 kept back in from history is also left out. Those are phase 2, after the try.

Testing

  • screen.rs has 17 tests: wrapped replies copy as one line without indent or bullet, including after a rewrap; lines keep their breaks; double and triple click; punctuation and brackets around a word, a word cut over rows, wide characters; link click vs drag; a link cut at the screen's edge opens whole; the view holds still while rows arrive; the note row is never selected; narrower and wider screens rewrap; the kept rows are bounded; a 0-row history area doesn't crash while scrolling. cargo test -p sonny --bin sonny: 228 passed. cargo clippy -p sonny --all-targets -- -D warnings and cargo fmt --check are clean.
  • Checked live against a daemon from this branch and the scripted Responses model, with Sonny in tmux and real SGR mouse input: drag, double and triple click, Ctrl+C with a selection (copies, and Sonny keeps running), Esc, wheel and the newer-rows note, link click, /status, /side there and back, /fullscreen both ways, and resizing 100 → 36 → 100 columns. Each copy was checked in tmux's buffer, which OSC 52 fills. The GIF and still are that session's screens rendered by xterm.js.
  • Not checked: Herdr and Rex themselves, and Ghostty/iTerm on a Mac. That's what George's try is for.

🤖 Generated with Claude Code

`/fullscreen` lets Sonny own the whole screen, as Codex does: the alternate
screen and the mouse, with the conversation kept and drawn by Sonny. It is
saved with the other settings and off by default; inline is unchanged.

- Copy needs no key held: a drag selects and copies on release, a double
  click takes a word, a triple click its line, shift-click extends, Ctrl+C
  copies a selection instead of interrupting, Esc clears it.
- The copy is the text as written: wrapped rows join again, and the
  bullets, indents and pictures Sonny drew are left out.
- The wheel and PgUp/PgDn scroll; new rows keep a scrolled view still under
  a note that a click, PgDn or Enter takes back to the latest. Rows rewrap
  when the window changes size.
- A click on a link (or a file path) opens it.
- /status and /side work over the full screen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGGUYN2TzGMxH4MDZ3K
@lydakis lydakis self-assigned this Oct 27, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-28T00:15:12.436699Z 4538384 Manual request
🔒 Security Review ✅ Completed 2026-10-28T00:18:13.322802Z 4538384 Manual request
ℹ️ 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: 58e441e83c

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

lydakis commented Oct 27, 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: b613f3282e

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

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 27, 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: 71ac1759b7

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

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: 9945f6fc0a

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

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: 132e65d2d5

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

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: 883e954383

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

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. What shall we delve into next?

Reviewed commit: 4538384d6d

ℹ️ 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: 4538384d6d

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
lydakis merged commit c16210c into main Oct 28, 2026
1 check passed
lydakis pushed a commit that referenced this pull request Oct 28, 2026
@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