Skip to content

Sonny: /sky through the design system (contrast, states, small panes, legend) - #464

Merged
lydakis merged 3 commits into
mainfrom
claude/project-thread-hqb8h7
Oct 31, 2026
Merged

lydakis merged 3 commits into
mainfrom
claude/project-thread-hqb8h7

Conversation

@lydakis

@lydakis lydakis commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

What

George's feedback on /sky (10-30) was that he loved the freeform look, you in the middle and the pulses. But the lines were very low contrast and it didn't hold up at lower resolutions. He also asked what else agents do that the sky could show, and later whether it has a legend. This PR passes /sky through the visual system (the glyph comes first and the colour repeats it; hues go only on short marks) and through the interface design system's single state table.

  • Contrast. The who-made-whom lines and who-talked curves are drawn in the text's own colour at full weight, not dim. Dim braille dots all but vanished, worst in light themes and terminals with a weak dim. Hues stay on what is happening now (sparks, ripples, twinkles, states), so history stays calm and events still pop. Idle stars are a small blob instead of one dot, so every agent reads as a star rather than the end of a line. (btop and bottom draw their graphs in full-weight theme colours.)

  • States, from the state table. Each star takes its state's colour and its label takes the state's mark, so it reads without colour:

    • working: cyan ●, name in bold
    • needs you: yellow ? . That is an ask not yet answered by the person or by the agent's maker, or a call waiting for the person's approval. Each call is tracked by its id until that call is decided, started or completed.
    • failed: red ✗ , when its last turn failed. An empty_completion doesn't count as a failure, as elsewhere in Sonny.

    An agent that needs you is named first, so it is never crowded out. The footer counts states the way Sonny's footer does, 18 agents · ? 2 needs you · ● 7 working · ✗ 1 failed · 10 messages in the last minute, and drops the messages part when it wouldn't fit. sonny sky (Sonny: sonny sky on its own, and any agent in the main view #465) shows the same footer on its last row.

  • State when the view opens. After reading the past, the view lists the calls already waiting for the person: the manual and auto tag listings, which read only calls still waiting on that tag, with auto kept only when it was handed to the person. turn_finished joins the past kinds, so an agent whose last turn failed opens as failed. An ask that was already open before the view opened isn't restored, because that would mean reading every agent's history.

  • What agents are doing. A tool call's twinkle has a shape for its kind: a streak across for a shell, up and down for a file, four corners for the web, and an eight-point star for any other tool (MCP, Sonny's own). It turns red when the call failed. There are still no tool names anywhere, so the clean view stays about who talks to whom.

  • Small panes. Under 60 columns or 24 rows the sky becomes a list (btop changes layout by size rather than shrinking). Rows follow the tree's order, and each row shows:

    • the state's mark
    • a firefly that lights (✦, in the spark's colour) as its agent talks and fades (•, then a muted ·)
    • the last thing the agent said or was told (from shop lead · 2s, posted to the commons)

    When they don't all fit, agents that need you, failed, are working or were lit come first, then leads, and … N more, quiet counts the rest.

  • Legend. ? swaps the ticker for a legend, in the pane and in sonny sky. It covers the states, what a bold or dim name means, the two kinds of spark, each tool shape, a failed call, a commons ripple, the lines, and the glow. Each item is drawn as the sky draws it. In the list it explains the fireflies instead. The key hint reads ? legend · esc close (? legend · q quit in sonny sky).

It follows four more daemon event kinds that the daemon already sends any client (approval_requested, approval_asked, step_decided, turn_resumed) and reads approvals. No daemon change.

/sky with states, Flexoki Dark

/sky with its legend

/sky in a small pane

Rendered from this branch's View::card and footer (96×46 and 54×22) through xterm.js with Flexoki Dark, JetBrains Mono 12, and Sonny's muted gray as it computes it there (130,129,123). Before rendering, scripted live events played out: an ask (notes lead), a manual approval (pricing), a failed turn (cart-tests), shell, patch and search calls, and a commons post. I also checked it in Catppuccin Latte; the lines and marks hold on the light background.

Testing

  • cargo test -p sonny: 612 pass. New tests:
    • an_agent_shows_the_state_tables_mark_for_what_it_is_doing
    • what_needs_the_person_stays_until_they_answer_it: two approvals with one answered, an ask that a peer's message doesn't clear but the maker's steer does, plus held calls and a failed last turn restored when the view opens
    • a_small_pane_lists_the_agents_with_a_firefly_each
    • the_legend_takes_the_tickers_place
  • cargo clippy --workspace --all-targets -- -D warnings and cargo fmt --all --check are clean.
  • FEATURES.md /sky row and README entry updated.

🤖 Generated with Claude Code

@lydakis lydakis self-assigned this Oct 30, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-30T23:44:26.091139Z 2ed1d48 New commits
🔒 Security Review ✅ Completed 2026-10-30T23:44:51.958137Z 2ed1d48 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: 8757985186

ℹ️ 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/sky.rs Resolved
Comment thread sonny/src/sky.rs Resolved
Comment thread sonny/src/sky.rs Resolved
…, tool shapes, a list for small panes

Lines and curves are drawn in the text's own colour at full weight, as dim
braille all but vanished in some themes; hues are kept for what happens now.
Each agent shows the state table's mark and colour (working cyan ●, needs
you yellow ? for an ask or an approval waiting, failed red ✗), and the footer
counts them the same way. A tool call's twinkle takes a shape for its kind.
Under 60 columns or 24 rows the sky becomes a list, a firefly per agent and
the last it said or was told, as btop changes layout by size.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
An ask stays open until the person or the agent's maker writes back, each
call waiting for approval is let go by its own answer, and the view reads
the calls already waiting and each agent's last failed turn when it opens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
? swaps the ticker for what each mark, colour and shape means, in the pane
and in sonny sky; sonny sky's last row is the pane's footer, marks and all.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
@lydakis
lydakis force-pushed the claude/project-thread-hqb8h7 branch from 8757985 to 2ed1d48 Compare October 30, 2026 23:43
@lydakis lydakis changed the title Sonny: /sky through the design system (contrast, states, small panes) Sonny: /sky through the design system (contrast, states, small panes, legend) Oct 30, 2026
@lydakis
lydakis merged commit 2d169ad into main Oct 31, 2026
4 checks passed
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