Skip to content

(sidebar): keep session-meta children in a fixed order whether the status slot is populated or not - #287

Merged
devsuitup merged 1 commit into
mainfrom
fix/286-session-meta-layout
Sep 13, 2026
Merged

devsuitup merged 1 commit into
mainfrom
fix/286-session-meta-layout

Conversation

@devsuitup

Copy link
Copy Markdown
Owner

Closes #286.

.session-meta used justify-content: space-between over two or three children depending on whether session.status was set on that row, so the short id sat at the far right on rows without a live process and in the middle on rows with one. Local and remote rows evaluate that condition independently, which is what produced the visible shift between neighbouring rows.

  • buildSessionItem always renders the status span (empty when absent), in the fixed order time → short id → status.
  • .session-meta is now a plain gap flex row; .session-status carries margin-left: auto and hugs the right edge whether it has text or not. Net visual change: the short id now sits next to the time on every row instead of jumping.
  • Subagent rows have a single text child in .session-meta and were never affected; grid view does not use .session-meta.
  • Tests: dom-sidebar-local-status.test.js asserts the same three children in the same order with and without status; session-meta-layout-css.test.js pins the CSS.
  • Rationale in .ai/contexts/session-state.md.

…atus slot is populated or not

The status span is now always rendered (empty when absent) and pinned right
with margin-left:auto; the container no longer uses space-between, so the
short id no longer moves between the middle and the far right depending on
whether that row currently has a live process. Closes #286.
@devsuitup
devsuitup merged commit 4f4a312 into main Sep 13, 2026
10 checks passed
@devsuitup
devsuitup deleted the fix/286-session-meta-layout branch September 13, 2026 11:02
@devsuitup devsuitup mentioned this pull request Sep 13, 2026
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.

(sidebar): short id shifts horizontally when the status slot is absent

1 participant