Repository navigation
Sonny: the welcome's portrait blinks or glances now and then until you type or scroll - #499
Conversation
…u type or scroll Every 8 to 16 seconds the eyes make one gesture, picked at random by weight: mostly a blink, sometimes a double or slow blink, a glance at the words or away, or a look around. Each is the eyes' six cells drawn over the portrait, on the draws the client already makes every 100 ms. A key, a paste or the wheel stops it for good. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGG4uKJySB1SvGZWRR3
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
One check failed: It isn't caused by this PR. The diff only touches I can't re-run jobs from this session. The flake is filed as #502, with a proposed fix that makes the test check that the commands overlap instead of using a fixed number of seconds. Generated by Claude Code |
What
Sonny's portrait in the welcome comes alive a little until the person does anything:
How
banner::Eyesdecides when and which gesture. The rests and the picks come from a hash of the gesture count, so no RNG dependency is needed.banner::draw_eyespaints the eyes' 6 cells (pixel rows 14 and 15, which are one line of the welcome) over the buffer afterscreen.render. The rows themselves never change, so nothing is laid out again.Tag::Eyes, andScreen::drawn_atfinds where it was drawn, if it is on screen.Cost
Measured in a PTY with the demo model:
For comparison, an idle Sonny already rewrites its link cells on every tick, about 1.4 KB/s. That is separate from this change.
Checks
cargo test -p sonnypasses, including new tests for the gesture timing, the weights, and where the eyes are.cargo clippy -p sonny --all-targetsis clean.