Repository navigation
Fit the session picker to a phone screen (2.5.4) - #85
Merged
Merged
Conversation
The picker's box banner and menu labels need 64 columns; a phone in portrait shows about 45, so the frame broke up and options wrapped. Below 64 columns, show a one-line header and shorter labels, with the Update option's version on its own line. Wider terminals are unchanged. The width comes from `stty size` (the image has no tput), and the menu redraws when it changes: at start-up it is drawn at tmux's default 80 columns before any browser attaches. Option 4 uses 🔧 instead of ⚙️, which is one cell wide in some terminals and two in others, so no spacing after it lined up everywhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018rxd5pKHfU3wFULG6yLDE6
This was referenced Nov 11, 2026
Owner
|
Thanks, @nsleigh — I reviewed the narrow-width layout, resize redraw, and regression coverage. CI is green across browser, checks, lint, and both architecture builds. This is a focused, useful phone fix; merged as 2.5.4. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On a phone (portrait, about 45 columns) the session picker is hard to read:
Fix
scripts/claude-session-picker.sh:(
🤖 Claude Terminal · Session Pickerplus a rule) and shorter labels.The Update option's version goes on its own line. Wider terminals look
exactly as before, and the option numbers are unchanged.
stty size: the image has notput(no ncurses tools).is attached, at tmux's default 80 columns. While it waits for a choice,
the picker checks the width each second and redraws when it changes.
Typed text stays in the terminal's line buffer until Enter, so it isn't
lost. This also covers resizing a window or rotating the phone.
terminals and two in others. With one space it touched the text, with two
it left a gap (the CHANGELOG shows it has gone back and forth before).
🔧 is always two cells, like the other icons.
DOCS.mdupdated to match.mainwhen executed, so the tests can source it.Tests
New
tests/test-session-picker.sh(added torun-tests.sh):use_persistent_claude);The resize redraw was also checked in a real Linux pty: drawn at 80
columns, shrunk to 45, the picker switched to the narrow layout by itself.
Tested
On Home Assistant OS, through ingress:
compact layout, and option 4 lines up in both.
🤖 Generated with Claude Code
https://claude.ai/code/session_018rxd5pKHfU3wFULG6yLDE6