Skip to content

sessions: Add setting for separate sidebar navigation - #340160

Merged
Sandeep Somavarapu (sandy081) merged 2 commits into
mainfrom
agents/add-a-setting-to-control-rearranging-sessions-li
Oct 6, 2026
Merged

Sandeep Somavarapu (sandy081) merged 2 commits into
mainfrom
agents/add-a-setting-to-control-rearranging-sessions-li

Conversation

@sandy081

Copy link
Copy Markdown
Member

Adds sessions.sidebar.separateNavigation so users can choose the sidebar layout instead of relying solely on the existing experiment.

  • Defaults to false with the standard window scope. Explicit user/workspace values override experiment defaults.
  • Retains the existing sessions.list.rearrage treatment through the configuration experiment infrastructure and applies changes live.
  • When disabled, Automations appears inside the sessions tree, New Session remains a toolbar button, and Customizations remains a separate section.
  • When enabled, New Session, Automations, and Customizations appear in a separate navigation list above the Sessions header.
  • Covers setting registration, override precedence, live updates, and Automations placement, activation, and focus.

Validation

  • npm run compile — passed.
  • npm run hygiene — passed.
  • npm run typecheck-client — passed.
  • ./scripts/test.sh --run src/vs/sessions/contrib/sessions/test/browser/sessionsSidebarNavigation.test.ts — passed, 4 tests including the registry sanity check.
  • ./scripts/test.sh --run src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts --run src/vs/sessions/contrib/sessions/test/browser/sessionsViewPane.test.ts — passed, 228 tests.

Manual testing

In the Agents window with Automations enabled, toggle sessions.sidebar.separateNavigation between false and true. Verify the placements described above and that Automations opens from either layout. Reset the setting to return to the experiment-controlled default.

Allow users to override the existing navigation experiment through sessions.sidebar.separateNavigation. Keep Automations in the sessions tree when separate navigation is disabled.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sandy081 Sandeep Somavarapu (sandy081) added this to the 1.142.0 milestone Oct 6, 2026
Copilot AI balanced review requested due to automatic review settings October 6, 2026 22:09

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

🟢 Approval recommended

The scoped changes use existing configuration infrastructure and focused regression coverage, with no identified blocking issues.

Review effort: Balanced
Findings: None

What changed in this PR

Adds a user-selectable sidebar layout to the Agents window while retaining experiment-controlled defaults.

Changes:

  • Registers sessions.sidebar.separateNavigation and applies setting changes live.
  • Supports Automations placement, activation, and focus in both layouts.
  • Replaces experiment-state tests with configuration and navigation coverage.

Tests were not rerun during this review.

File Description
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsSidebarNavigation.test.ts Tests registration, override precedence, and live updates.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsListRearrangeExperiment.test.ts Removes obsolete experiment-state tests.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsList.test.ts Extends Automations placement and interaction coverage.
src/​vs/​sessions/​contrib/​sessions/​browser/​views/​sessionsView.ts Observes the setting to update presentation.
src/​vs/​sessions/​contrib/​sessions/​browser/​views/​sessionsList.ts Supports Automations in either navigation location.
src/​vs/​sessions/​contrib/​sessions/​browser/​sessionsListRearrangeExperiment.ts Removes the dedicated experiment-state implementation.
src/​vs/​sessions/​contrib/​sessions/​browser/​sessions.contribution.ts Registers the experiment-backed setting.
src/​vs/​sessions/​common/​sessionConfig.ts Defines shared setting and treatment identifiers.

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

Register the production configuration explicitly when earlier tests have cleared the shared registry, and restore its prior registration state afterward.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 1d25d5df Current: 9408024f

Changed (1)

sessions/chatCompositeBar/MixedStatuses/Light
Before After
before after

@sandy081
Sandeep Somavarapu (sandy081) merged commit ff8649d into main Oct 6, 2026
35 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the agents/add-a-setting-to-control-rearranging-sessions-li branch October 6, 2026 23:04
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