Skip to content

sessions: use checkout icon in new-session isolation picker - #345214

Merged
Megan Rogge (meganrogge) merged 3 commits into
mainfrom
agents/use-codicons-in-new-session-picker
Oct 30, 2026
Merged

Megan Rogge (meganrogge) merged 3 commits into
mainfrom
agents/use-codicons-in-new-session-picker

Conversation

@meganrogge

@meganrogge Megan Rogge (meganrogge) commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator
Screenshot 2026-10-30 at 12 43 53 PM

fixes #343929

Uses the new git-branch-checkout icon from microsoft/vscode-codicons#541 for the Branch option in the new-session composer's Branch/New Worktree picker, including the selected trigger, across both the main Agent Host composer (including Copilot workspace targets) and the shared nested-session composer. New Worktree keeps its existing icon. Labels, keyboard behavior, and screen-reader descriptions are unchanged; the trigger icon remains decorative.

Updates desktop and web to the now-published Codicons 0.0.46-49. The official prerelease pipeline completed successfully: https://dev.azure.com/monacotools/Monaco/_build/results?buildId=491288. Verified the package's generated TypeScript, CSS, and font-derived CSV contain the glyph with codepoint U+ECFB.

Validation

  • npm run build-fast -- --client-only — passed.
  • npm run eslint -- src/vs/base/common/codicons.ts src/vs/sessions/contrib/chat/browser/isolationPicker.ts src/vs/sessions/contrib/chat/test/browser/nestedChatComposer.test.ts — passed.
  • ./scripts/test.sh --run src/vs/sessions/contrib/providers/agentHost/test/browser/agentHost/agentHostSessionConfigPicker.test.ts --run src/vs/sessions/contrib/chat/test/browser/nestedChatComposer.test.ts --reporter dot — 100 passed. Native dependencies were rebuilt for the live launch; the final run has no missing-native-module warning.
  • npm run eslint -- src/vs/sessions/contrib/providers/agentHost/browser/agentHostSessionConfigPicker.ts src/vs/sessions/contrib/providers/agentHost/test/browser/agentHost/agentHostSessionConfigPicker.test.ts — passed.
  • npm run hygiene — passed (14,180 files).
  • git diff --check — passed.
  • Web lockfile refreshed with npm install --prefix remote/web --package-lock-only --ignore-scripts --no-audit --no-fund --registry=https://registry.npmjs.org --min-release-age-exclude=@vscode/codicons — passed. The one-command exception is limited to this verified first-party prerelease; no npm configuration changes.
  • Live Code OSS Agents window: visually verified the main new-session Branch trigger and open menu show the checkout glyph, with New Worktree unchanged.
  • Full type check and screen-reader testing were not run.

Manual testing

Open the Agents window, choose a Git repository in the new-session composer, and open the Branch/New Worktree picker. Check that Branch uses the checkout icon in the menu and selected trigger, while New Worktree keeps its worktree icon. The shared nested-session composer is covered by the regression test.

Browser CI follow-up

The macOS WebKit job exposed an existing confetti test precision issue, also reproduced locally with test and implementation identical to main. WebKit rounds animation durations to microseconds, producing reconstructed frame gaps such as 40.000013 ms. With maintainer approval, this PR includes a test-only one-microsecond tolerance; the 40 ms frame limit and production animation behavior are unchanged.

  • npm run build-fast -- --client-only — passed after the test fix.
  • npm run test-browser-no-install -- --browser webkit --browser chromium --browser firefox --run src/vs/base/test/browser/ui/animations/animations.test.ts --reporter dot — passed: 8 tests per browser, 24 total.
  • npm run eslint -- src/vs/base/test/browser/ui/animations/animations.test.ts — passed.
  • git diff --check — passed.

Adopt Codicons 0.0.46-49 for desktop and web and use git-branch-checkout for the Branch option and selected trigger. Preserve labels and cover the menu icons and decorative trigger accessibility in the composer regression test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 30, 2026 16:32

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.

🟡 Changes recommended

The new-session composer still uses the old folder icon for folder/workspace isolation, leaving the icon update incomplete and needing regression coverage for that picker.

1 open issue
1 file not reviewed
  • remote/web/package-lock.json: Generated file
What changed in this PR

This PR introduces the checkout icon for the Agents window’s Branch isolation option. The current implementation updates the nested-session composer; the main new-session picker remains unchanged.

Changes:

  • Registers git-branch-checkout and uses it in the nested composer’s isolation picker.
  • Updates desktop and web Codicons dependencies to 0.0.46-49.
  • Extends regression assertions for menu icons, selected-trigger icons, and decorative accessibility attributes.
File Description
src/​vs/​sessions/​contrib/​chat/​test/​browser/​nestedChatComposer.test.ts Adds isolation icon and accessibility assertions.
src/​vs/​sessions/​contrib/​chat/​browser/​isolationPicker.ts Replaces the Branch folder icon with the checkout icon.
src/​vs/​base/​common/​codicons.ts Registers the checkout glyph at U+ECFB.
remote/​web/​package.json Updates the web Codicons dependency.
remote/​web/​package-lock.json Locks the updated web Codicons package.
package.json Updates the desktop Codicons dependency.
package-lock.json Locks the updated desktop Codicons package.

Review effort: Balanced

Cover the main new-session composer as well as the shared nested-session picker, including Copilot workspace targets and selected trigger icons.

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

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 4aaffdd2 Current: f507eb94

Changed (3)

sessions/chat/isolationPicker/agentHostSessionConfigPicker/NewWorktree/Light
Before After
before after
sessions/chat/isolationPicker/agentHostSessionConfigPicker/Branch/Light
Before After
before after
sessions/chat/isolationPicker/agentHostSessionConfigPicker/DevContainer/Light
Before After
before after

Allow one microsecond of error when reconstructing frame gaps from browser-rounded animation durations. Preserve the 40 ms frame limit and all production animation behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

Composer with collapsed icons make it hard to differentiate between workspace and branch

5 participants