Skip to content

#692: the session card column stays placed while either pane of a split shows a session - #695

Merged
SSFSKIM merged 3 commits into
masterfrom
fix/692-card-column-split
Nov 15, 2026
Merged

SSFSKIM merged 3 commits into
masterfrom
fix/692-card-column-split

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Fixes #692 (the architect's ruling, option 1).

Ruling

The session card column stays placed while the focused pane's tab is a session or the other pane of the split shows one; when both panes show sessions the focused pane's session wins, as before. A focus move between the panes of such a split no longer adds or removes the 304 px padding, so the first press on a header control of the non-session pane lands and acts. Pane.tsx (focus on pointer-down) is unchanged.

Change

  • stores/layout-model.ts: sessionsInView(main), the sessions of the focused pane's active tab and (in a split) the other pane's, focused first.
  • app/shell-view.ts: cardColumnSession (the first of them) feeds cardColumnNow, cardFactsNow and useCardColumn, so session, sessionTab, known and every consumer (Shell's padding and cards, toggleSessionCards, the surface row's Session cards control) read one choice.
  • panel/surface-model.ts: surfaceSession takes the first known session in view before falling back to the remembered one, so the side column and the card column never speak of two sessions in this state.
  • Not changed: the floating card's host and session (shell/floating.ts) and the toolbar's session menu follow the focused tab by design; Expand pane folds the side panel, which keeps the column from being placed beside a floated split card.

Proof

  • Unit, red then green: src/renderer/src/app/shell-view.test.ts (new) runs cardColumnNow across a focus move in a split of a session and a non-session pane in both focus orders and both pane positions, a split of two sessions (focused wins), two non-sessions, an unknown session, and a single pane. On master: 2 failed, 4 passed (the two failures are the session-beside-document cases); with the fix 6 passed. surface-model.test.ts gains one case for surfaceSession.
  • Electron scene: e2e/layout-transfer.spec.ts (group e2e:default): a split of a session and a document at 1440 wide, no side surface, session pane focused; the column is placed; the pointer goes down on the document pane's Expand pane, two frames pass (the control has not moved, the column is still there), the pointer goes up, and the session has floated into its card. The existing scene in e2e/panel.spec.ts that read the old rule (a non-session tab beside a session shows no cards) now checks the single-pane no-cards case separately and, in the split, that the column stays and speaks of the other pane's session.
  • Runs on GitHub (hosted lane): run 43714405888 on 01e6984, static + unit + probes: success. Run 43711803625 on c865fe2 (the same code, two comment changes earlier), e2e:panel and e2e:default: success; its unit 3/4 failed on the tokens guard (a #692 in a comment) and its typecheck-2 shard failed on the new test's tab type in the run before it, both fixed in the commits after.
  • Review (doperpowers:reviewer-medium, lens: every reader of the column's session agrees with cardColumnNow; no layout change on a focus move): correct, no findings.

Not verified: the scene was never run before the fix on master (no Electron run on this machine), so its red state is argued from the layout, not observed.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)

…it shows a session

The column's session is the focused pane's, else the other pane's of the split (the focused pane's wins when both show one), so a focus move between a session's pane and another pane no longer adds or removes the 304 px padding, and the first press on the other pane's header control acts. The side surfaces' session (surfaceSession) reads the same sessions in view, so the column and the side column never speak of two sessions. cardColumnNow's unit test (red on master) covers both focus orders, both-sessions and a single pane; one Electron scene presses Expand pane once with the session pane focused; the panel scene's diagnostics step now asserts the column stays beside a session in the other pane.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…cs tab's id is a literal type)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… hex colour (the tokens guard)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T12:48:17.504177Z 01e6984 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 3678e3c into master Nov 15, 2026
@SSFSKIM
SSFSKIM deleted the fix/692-card-column-split branch November 15, 2026 13:57
SSFSKIM added a commit that referenced this pull request Nov 15, 2026
…et 692, the card column follows the session in view in a split, and the 60 s bound on the two unit cases that walk every recorded fixture

No conflicts: the merge and this branch change no file in common. The wire: U8d takes no wire minor; the merged head's minor stands as master has it.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant