Skip to content

emrg: open the GUI's right column only when the host asks for it - #3305

Merged
argszero merged 1 commit into
masterfrom
gui/right-column-closed-by-default
Dec 3, 2026
Merged

argszero merged 1 commit into
masterfrom
gui/right-column-closed-by-default

Conversation

@argszero

@argszero argszero commented Dec 3, 2026

Copy link
Copy Markdown
Owner

The right-hand column starts closed, so the conversation gets the window's width until the host asks for the editor.

What changed:

  • Shell.tsx opens rightOpen at false instead of true. Nothing remembers the choice: every launch begins closed, and the status band's right toggle opens and closes it in the same press.
  • A file picked in the session column now opens the column itself. It has to: a closed column has no panel mounted, so editorRef.current is null and the click would have been handed to nothing. The request waits in a ref for the one render the column takes to mount, and an effect flushes it — the panel receives the file it was asked for rather than a click that vanished.
  • The left column keeps its current default (open); the host asked about the right one.

Tests: the #3070 seam test now asserts the panel is absent before the row is clicked, so its appearance is witness to the click's own work rather than to a column that was already there. A new test pins the fresh state, one press opening the column and a second press closing it.

The reviewer's reading: 1283 renderer tests (npm run typecheck clean, npm test green), 272 GUI tests with 8 skipped, tests/test_doc_counts.py 82 passed, and scripts/check-node-test-count.py agreeing with the Agent.md breakdown.

@argszero
argszero merged commit 3657f29 into master Dec 3, 2026
2 checks passed
@argszero
argszero deleted the gui/right-column-closed-by-default branch December 3, 2026 11:44
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.

1 participant