Skip to content

sessions: fix compact view state transitions - #336184

Open
Sandeep Somavarapu (sandy081) wants to merge 1 commit into
mainfrom
sandy081/agents/compact-view-ccr-fixes
Open

Sandeep Somavarapu (sandy081) wants to merge 1 commit into
mainfrom
sandy081/agents/compact-view-ccr-fixes

Conversation

@sandy081

Copy link
Copy Markdown
Member

Follow-up to #336169 addressing the two Copilot Code Review findings that landed after auto-merge.

  • keeps compact workspace metadata hidden for pinned rows at rest and after DOM focus leaves the list
  • rerenders compact presentation and row heights across desktop/phone layout transitions
  • adds focused coverage for pinned/stale focus and desktop → phone → desktop transitions

Validation:

  • npm run typecheck-client
  • ESLint and stylelint for changed files
  • full Sessions list suite: 112 passing

Keep secondary metadata hidden when the list does not own keyboard focus and rerender compact presentation across phone layout changes.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 14, 2026 18:20
@sandy081 Sandeep Somavarapu (sandy081) added this to the 1.138.0 milestone Sep 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The responsive handler reads stale DOM layout state, so production transitions remain incorrectly rendered.

Get a fresh assessment by requesting another Copilot review.

Review tier: Balanced
Findings: 1 High severity

Open findings (1)
What changed in this PR

Fixes compact Sessions list focus and responsive-layout transitions.

Changes:

  • Restricts compact metadata to hover or active list focus.
  • Rerenders rows when phone layout changes.
  • Adds regression tests for focus and layout transitions.
File Description
sessionsList.css Corrects compact metadata visibility.
sessionsList.ts Refreshes compact presentation on viewport changes.
sessionsList.test.ts Adds focus and transition coverage.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

}
};
updateNodeHeights(this.tree.getNode());
this.setCompact();
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.

3 participants