Skip to content

sessions: refine single-pane details behavior - #333881

Merged
Sandeep Somavarapu (sandy081) merged 2 commits into
mainfrom
sandy081/agents/single-pane-details-panel-updates
Sep 1, 2026
Merged

sessions: refine single-pane details behavior#333881
Sandeep Somavarapu (sandy081) merged 2 commits into
mainfrom
sandy081/agents/single-pane-details-panel-updates

Conversation

@sandy081

Copy link
Copy Markdown
Member

Summary

  • keep the Sessions/chat boundary stable when docked Details opens or closes
  • align new-session last-editor closing with existing-session side-pane behavior
  • reveal docked Details when Empty Files opens while preserving subsequent user toggles
  • order Toggle Details before Maximize and enable Changes for workspace-backed draft sessions

Validation

  • focused Sessions layout and editor contribution tests
  • npm run compile
  • npm run hygiene
  • pre-commit hygiene hooks

Keep the side-pane boundary stable when toggling docked details, align new-session editor closing with existing sessions, and reveal details when Empty Files opens. Also order the details action before maximize and allow workspace-backed draft sessions to open Changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 1, 2026 22:01
@sandy081 Sandeep Somavarapu (sandy081) added this to the 1.137.0 milestone Sep 1, 2026
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Benjamin Christopher Simmonds (@benibenj)

Matched files:

  • src/vs/sessions/contrib/layout/browser/singlePane/singlePaneExistingSessionStrategy.ts
  • src/vs/sessions/contrib/layout/browser/singlePane/singlePaneNewSessionStrategy.ts
  • src/vs/sessions/contrib/layout/test/browser/desktopSessionLayoutController.test.ts
  • src/vs/sessions/contrib/layout/test/browser/singlePaneStrategies.test.ts

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

Details can reopen after unrelated reactive updates despite a subsequent user hide action.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Balanced
Findings: 2 Medium severity · 1 Low severity

New issues introduced by this change (3)
Severity Finding
Medium severity src/​vs/​sessions/​contrib/​layout/​browser/​singlePane/​singlePaneExistingSessionStrategy.ts — This forces Details open on every reactive rerun while Empty Files remains active, not just when…
Medium severity src/​vs/​sessions/​contrib/​layout/​browser/​singlePane/​singlePaneNewSessionStrategy.ts — This forces Details open on any autorun while Empty Files remains active, rather than only when…
Low severity src/​vs/​sessions/​SINGLE_PANE_SCENARIOS.md — This overstates the close behavior: closing the last real file does not close the side pane when a…
What changed in this PR

Refines single-pane Sessions side-pane sizing, Details visibility, and draft-session behavior.

Changes:

  • Stabilizes the Sessions/editor boundary when toggling Details.
  • Aligns last-editor closing and Empty Files behavior across session types.
  • Enables Changes for workspace-backed drafts and reorders Toggle Details.
File Description
src/​vs/​sessions/​test/​browser/​workbench.test.ts Updates sizing and visibility tests.
src/​vs/​sessions/​SINGLE_PANE_SCENARIOS.md Revises single-pane behavior documentation.
src/​vs/​sessions/​LAYOUT_CONTROLLER.md Documents lifecycle changes.
src/​vs/​sessions/​contrib/​layout/​test/​browser/​singlePaneStrategies.test.ts Tests Details and close behavior.
src/​vs/​sessions/​contrib/​layout/​test/​browser/​desktopSessionLayoutController.test.ts Updates integration-style layout tests.
src/​vs/​sessions/​contrib/​layout/​browser/​singlePane/​singlePaneNewSessionStrategy.ts Changes new-session Details and close handling.
src/​vs/​sessions/​contrib/​layout/​browser/​singlePane/​singlePaneExistingSessionStrategy.ts Reveals Files Details and reorders its toggle.
src/​vs/​sessions/​contrib/​editor/​test/​browser/​editor.contribution.test.ts Tests draft-session Changes support.
src/​vs/​sessions/​contrib/​editor/​browser/​addTabActions.ts Enables Changes for uncreated sessions.
src/​vs/​sessions/​browser/​singlePaneWorkbench.ts Keeps the side-pane boundary stable.

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

Comment thread src/vs/sessions/contrib/layout/browser/singlePane/singlePaneNewSessionStrategy.ts Outdated
Comment thread src/vs/sessions/SINGLE_PANE_SCENARIOS.md Outdated
Reveal docked Details only when Empty Files becomes active or visible, rather than on unrelated reactive updates, and clarify the last-editor close contract.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sandy081
Sandeep Somavarapu (sandy081) merged commit 8a6a845 into main Sep 1, 2026
40 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the sandy081/agents/single-pane-details-panel-updates branch September 1, 2026 22:47
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