Repository navigation
test: width survey snapshots for picker layout at various sizes - #1613
Merged
Merged
Conversation
…l sizes Adds snapshot tests showing `wt list` output at 30–120 columns to visualize which columns appear and how branch names render at each width. Includes picker-equivalent widths (terminal_width/2) to show what `wt switch` in Right layout would display. Context: #1564 Co-Authored-By: Claude Opus 4.6 <[email protected]>
This was referenced Mar 19, 2026
worktrunk-bot
added a commit
that referenced
this pull request
Mar 19, 2026
The review bot consistently performs full code analysis (10-18 minutes of CI compute) on self-authored PRs, only to stay silent because it cannot approve its own work. Observed 6 times across PRs #1610, #1613, #1614, #1619, #1622, #1623. Add early-exit guidance in step 1 to skip steps 2-4 for self-authored PRs. The bot still monitors CI and resolves threads, but skips the redundant code review that always produces zero visible output. Co-Authored-By: Claude Opus 4.6 <[email protected]>
2 tasks
Owner
|
please merge main and rerun |
The layout allocator changes on main altered column visibility at narrow widths for long branch names — Branch column now takes priority over Status/HEAD±/main↕. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Collaborator
Author
|
Merged main and updated 2 snapshots ( |
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.
Summary
wt listlayout at 30, 40, 50, 60, 80, 100, and 120 columnswt switchin Right layoutNo code changes — just snapshots to visualize current behavior.
Key findings visible in snapshots
Branch column dropped at narrow widths with long names (
width_survey_long_30):At 30 cols with long branch names (
feature/implement-oauth2-social-login,fix/database-connection-pool-exhaustion), the Branch column is entirely absent — only Status, HEAD±, and main↕ show. This is thetry_allocate()all-or-nothing behavior: the branch column's ideal width (longest name) exceeds available space, so it gets 0 allocation.Typical branches survive down to 30 cols (
width_survey_typical_30):With shorter branch names (
feature/auth-redesign, ~22 chars), Branch still fits at 30 cols — but Status column is dropped.Picker in Right layout at 60-col terminal (
width_survey_picker_right_60):List gets 30 cols. Branch + Age fit — Status and all other columns hidden. Usable but minimal.
Picker in Right layout at 80-col terminal (
width_survey_picker_right_80):List gets 40 cols. Branch + Status + Age fit. Reasonable.
Column progression summary (typical branches):
Context
Requested in #1564 (comment)
Test plan
cargo test --test integration "width_survey")pre-commit run --all-filespasses (excluding lychee)🤖 Generated with Claude Code