Skip to content

sessions: show F2 for chat rename actions - #336931

Merged
Sandeep Somavarapu (sandy081) merged 2 commits into
mainfrom
sandy081/agents/inline-session-rename-followup
Sep 20, 2026
Merged

Sandeep Somavarapu (sandy081) merged 2 commits into
mainfrom
sandy081/agents/inline-session-rename-followup

Conversation

@sandy081

Copy link
Copy Markdown
Member

Fixes #333671

Adds the F2 keybinding to the active session header rename action and uses the existing F2-bound chat rename command for nested-chat context menus. Keyboard invocation resolves the active session while preserving inline rename behavior and chat-specific routing.

Also updates the Agents Window accessibility help and adds regression coverage for keybinding scope, command routing, and context-menu registration.

Validation:

  • npm run compile
  • npm run hygiene
  • 30 targeted Sessions rename and context-menu tests

Route header and nested-chat rename menus through their F2-bound actions while preserving inline rename behavior.

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

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 chat-tab rename surface remains unchanged, and accessibility help resolves the wrong command’s shortcut for header rename.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds F2-driven rename behavior across Agents Window session and nested-chat surfaces.

Changes:

  • Adds header and nested-chat rename keybindings/routing.
  • Preserves focus and supports offscreen inline rename targets.
  • Updates accessibility help, validation behavior, and regression tests.
File Description
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsSessionManagementActions.test.ts Tests rename keybinding scopes.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsRename.test.ts Expands inline rename and focus tests.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsListContextMenu.test.ts Tests shared chat rename menu registration.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsList.test.ts Updates callback style.
src/​vs/​sessions/​contrib/​sessions/​browser/​views/​sessionsView.ts Returns asynchronous open operations.
src/​vs/​sessions/​contrib/​sessions/​browser/​views/​sessionsList.ts Coordinates opening, focus, validation, and offscreen rename.
src/​vs/​sessions/​contrib/​sessions/​browser/​sessionsActions.ts Registers F2 and shared rename actions.
src/​vs/​sessions/​contrib/​sessions/​browser/​media/​sessionsList.css Hides hover details during rename.
src/​vs/​sessions/​contrib/​chat/​browser/​sessionsChatAccessibilityHelp.ts Documents header rename behavior.
src/​vs/​base/​browser/​ui/​inputbox/​inputBox.ts Disposes validation resize observation correctly.

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

Comment thread src/vs/sessions/contrib/sessions/browser/sessionsActions.ts
@github-actions

github-actions Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: eff90941 Current: d3c74498

Changed (1)

imageCarousel/imageCarousel/SingleSection/Dark
Before After
before after

5 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details.

Use the shared chat rename command from tab menus and let focused-tab F2 preserve inline editing.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@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/browser/parts/chatCompositeBar.ts
  • src/vs/sessions/browser/parts/chatGroupView.ts
  • src/vs/sessions/browser/parts/chatGroupsView.ts
  • src/vs/sessions/browser/parts/sessionView.ts

@sandy081
Sandeep Somavarapu (sandy081) merged commit 67bc84b into main Sep 20, 2026
33 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the sandy081/agents/inline-session-rename-followup branch September 20, 2026 18:11
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.

Rename command behavior for nested chats

3 participants