Skip to content

Session cards: the Environment card draws short and grows 68 px when the column comes back #746

Open

Description

@SSFSKIM

What a person sees

Turn the session cards column off and on again (the title bar's "Session cards" control). The Environment card, the first card of the column, is drawn short for a moment, with one row in place of its branch row, its change line and its push state, and then grows by 68 px when git answers; the cards under it move down by the same amount. The same happens whenever the column is mounted anew for a session whose checkout no other part of the window is watching.

Why

src/renderer/src/stores/git.ts: when the last holder of a checkout lets go, the store deletes the checkout's entry ("Forgotten: a re-mount shows nothing of this mount's branch or sum, and no stale root takes a git.changed"). A new watch then has no status until git.watch answers, and src/renderer/src/panel/summary/Environment.tsx draws the card without its git rows while the status is null.

This is on master; the landing that found it (UX wave U4b, the composer's integrations) did not change it.

Evidence

Measured on a Mac in an e2e scene (e2e/side.spec.ts, scene 5, its foot check taken just after the scene turns the column off and on): the first card 258 px high before, 190 px at the check, the two cards below it 68 px higher; the same numbers on two heads. 258 and 190 are the card with and without its git rows by the classes' arithmetic. The scene now waits for the card to hold its rows again before it compares boxes, and prints what each card holds.

Remedies to weigh (the choice is the builder's)

  • Keep the last status for a re-mount and redraw it as possibly stale until git answers.
  • Hold the entry for a short grace period after the last release, so an immediate re-watch finds it.

Either must keep what the forgetting protects: no stale root takes a git.changed, and a checkout that changed while unwatched is not shown as current.

What done looks like

A scene (or scene 5's own check, with its wait removed) that turns the column off and on and reads the cards' boxes at once, the same as before; unit cases for the store's rule.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P3
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions