Skip to content

Sonny: clickable link text and file paths, Ctrl-H, room around staged messages - #230

Merged
lydakis merged 2 commits into
mainfrom
claude/project-thread-ebs9s5
Oct 27, 2026
Merged

lydakis merged 2 commits into
mainfrom
claude/project-thread-ebs9s5

Conversation

@lydakis

@lydakis lydakis commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Three fixes from day-two use of Sonny.

Links you can click, and files

A markdown link [text](url) was drawn as underlined text followed by a dim (url). Only the address in brackets was an OSC 8 hyperlink (#179), so clicking the underlined text, which looks like the link, did nothing. Now:

  • The underlined text opens the same address as the one in brackets, even when the text or the address wraps onto other rows.
  • File paths open. A word naming a file or folder that exists is an OSC 8 file:// link. It can be relative to the agent's folder (a task's own copy for a task), absolute, or under ~/. A trailing :LINE, :LINE:COL or #L… is allowed, as models cite code. [main](src/main.rs) links both its text and its path. Words that aren't paths on disk (e.g., 0.4.1, .., a path that's gone) stay plain.

Link text, the address, file paths and a bare address, each underlined as xterm.js draws OSC 8 links

In the screenshot, each dotted underline is a hyperlink: PR #231 and its address, links.rs and its path, sonny/src/main.rs:3587 (inline code), and https://herdr.dev/docs.

In Herdr, use Ctrl-click. Herdr 0.9.5 opens a link under a Ctrl-click and passes OSC 8 links through to its own grid, but it opens only http(s) links itself (safe_web_url in its src/app/actions.rs). So in Herdr, file links open only if the outer terminal handles the click (Cmd-click in Ghostty, if it gets through Herdr's mouse capture). A Herdr plugin can take over link clicks, which could open files in Herdr. That's a follow-up.

Ctrl-H deletes

Terminals send Ctrl-H as 0x08, which crossterm reads as Ctrl + h. Nothing handled that, so it did nothing. It now deletes like Backspace everywhere Sonny reads keys: the composer, the command menu and the pickers.

Room around staged messages

A message sent while the agent works (queued or steered) showed right under the streaming reply and right above the status row, with no space. Each staged message now has a blank row above it, as it will have in the history once it lands, and the last one has a blank row under it.

Before:

• Working on it. Working on it. Working on it.
› also check the gift card tax
› and the notes
• Working (4s • esc to interrupt)

After:

Two staged messages, each with a blank row above, and a blank row before the status row

Testing

  • New tests: a_markdown_links_text_opens_its_address (text and address on one row, and both wrapped over four rows), a_path_that_is_there_opens_as_a_file (inline code with :LINE:COL, a markdown file link, an absolute path with #L4, words that aren't paths, a space percent-encoded), and ctrl_h_deletes_as_backspace_does (composer, and with the command menu open). The staged-row tests are updated for the blank rows.
  • cargo test -p sonny --bin sonny: 208 passed. cargo clippy -p sonny --all-targets -- -D warnings and cargo fmt are clean.
  • Checked live: Sonny ran against a real daemon from this branch and a scripted Responses server, inside tmux under script. The raw output has OSC 8 links for the link text, its address, both file paths and the bare address, pointing at the right file:// paths. The screenshots are that output rendered by xterm.js.

… messages

- A markdown link's underlined text is now a link too, not just the
  address drawn after it in brackets. Paths of files that exist (relative
  to the agent's folder, absolute, or under ~/, with :LINE or #L after
  them) open as file:// links.
- Ctrl-H (0x08) deletes like Backspace, in the composer and pickers.
- Each staged queued or steered message has a blank row above it, as in
  the history, and the last one a blank row before the status row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGDNh4a2FzyND7nayar
@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-27T23:26:32.539680Z 7dba1b8 Manual request
🔒 Security Review ✅ Completed 2026-10-27T23:27:18.290619Z 7dba1b8 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


P1 Badge Sanitize workspace paths in the tracked screenshots

Both new screenshots retain the capture environment's workspace path in the footer, including its UUID and scratchpad/live/ws suffix. Although the conversation content is scripted, these are still machine paths in tracked documentation, which AGENTS.md explicitly requires keeping in ignored local captures. Replace the footer with a synthetic workspace path or crop it out in both images before tracking them.

AGENTS.md reference: AGENTS.md:L63-L64

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

lydakis commented Oct 27, 2026

Copy link
Copy Markdown
Owner Author

Both screenshots now show a synthetic folder (~/code/shop) in the footer instead of the capture machine's path (7dba1b8).

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 7dba1b8e63

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

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.

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