fix: focus the next session or show the splash when one closes#30
Merged
Conversation
When the focused session ended and nothing was free to attach, the ui destroyed the dead view and parked on a 'no session focused' placard, which was permanent when the only sessions left were held by other clients or hosted this ui. Now the refresh falls back to selecting (without attaching) the most recently active session, the same fallback startup uses, so a held session gets the 'attached elsewhere' hint instead. When nothing is selectable at all, the viewport shows the splash, and the placard branch is gone.
Merged
kylecarbs
added a commit
that referenced
this pull request
Jun 11, 2026
Empty-viewport focus fallback fix in boo ui (#30).
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
Closing a session in
boo uicould leave the viewport on a permanentno session focused pick a session on the leftplacard, even when there was nothing pickable. The session refresh already auto-attaches the most recently active free session when the focused one dies; the placard appeared whenever no free candidate existed, most commonly when runningboo uiinside a boo session (the host is never an automatic candidate) and killing the last other session.Changes:
attached elsewhere click the session to take it overhint instead of the placard.no session focusedbranch is deleted; focus moves to the next session automatically as before when one is free.Automatic focus still never steals: switching to a held session would yank it from another terminal, so it is selected and explained, not attached.
Validation
zig build test-all --summary all: 126/126 (4 new tests).zig build test-all -Doptimize=ReleaseSafe: 126/126.This PR was generated with Coder Agents on behalf of @kylecarbs.