Repository navigation
sessions: allow meaningful drops between Inbox groups - #347708
Merged
Merged
Conversation
Fixes #346934. Reuse Inbox triage commands for category drops while preserving custom groups and ordering. Reject activity-incompatible destinations and individual comparison moves. Co-authored-by: Copilot <[email protected]>
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Sandeep Somavarapu (@sandy081)Matched files:
Ladislau Szomoru (@lszomoru)Matched files:
|
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved drag-and-drop issues can skip triage and alter saved groups when grouping changes during restoration, while archived sessions are validated against an incorrect post-restoration classification.
2 open issues
What changed in this PR
Adds action-based drag and drop between Inbox groups in the Agents window, addressing #346934 through the existing session-management commands.
Changes:
- Supports pinning, archiving, holding, clearing, and activity-compatible resume drops while rejecting no-op reordering and incompatible selections.
- Reuses triage commands and their announcements and Undo behavior.
- Adds drag-and-drop tests and updates the list specification and accessibility help.
| File | Description |
|---|---|
src/vs/workbench/contrib/sessions/common/sessionCommands.ts |
Exports shared Inbox triage command IDs. |
src/vs/workbench/contrib/sessions/browser/views/sessionsList.ts |
Validates and executes Inbox placement drops. |
src/vs/sessions/SESSIONS_LIST.md |
Documents supported Inbox drop behavior. |
src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts |
Tests Inbox drops, Undo, and placement restrictions. |
src/vs/sessions/contrib/sessions/browser/views/sessionsViewActions.ts |
Uses shared IDs for existing triage actions. |
src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts |
Describes supported drops and keyboard alternatives. |
Review effort: Balanced
Validate restored sessions against their prospective attention category and preserve Inbox triage when grouping changes during restoration. Co-authored-by: Copilot <[email protected]>
Bhavya U (bhavyaus)
previously approved these changes
Nov 11, 2026
Contributor
|
Base:
|
Keep Undo coverage for hold drops without requiring a notification when clearing sessions, matching the current main-branch behavior. Co-authored-by: Copilot <[email protected]>
Ross Wollman (rwoll)
approved these changes
Nov 11, 2026
Sandeep Somavarapu (sandy081)
added a commit
that referenced
this pull request
Nov 11, 2026
Brings in main through sandy081/agents/agents-viewlet-infra db97c77, including #347649 (Inbox labels, triage and section defaults) and #347708. Conflicts: - sessionsViewActions.ts: kept Block 1's version (the actions live in workbench sessionsListActions.ts) and ported main's changes there: removed Clear from Inbox and its cleared message, always count down the triage notification, the Resume/Hold command id constants, the Delete keybinding archives in Inbox mode too, removed the Inbox-only Archive menu items, and Archive shows with AI enabled in every mode. - sessionsList.test.ts: merged the imports. Co-authored-by: Copilot <[email protected]>
2 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #346934
Allows sessions to be dragged between Inbox-mode groups when the destination represents a meaningful action:
Updates accessibility help with the supported drops and existing keyboard alternatives.
Validation
corepack pnpm run build-fast --client-only— passed../scripts/test.sh --run src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts --grep 'drag and drop' --reporter dot— 24 passed../scripts/test.sh --run src/vs/sessions/contrib/sessions/test/browser/sessionsListChatMoveDnd.test.ts --run src/vs/sessions/contrib/sessions/test/browser/sessionsViewMenu.test.ts --run src/vs/sessions/contrib/chat/test/browser/sessionsChatAccessibilityHelp.test.ts --reporter dot— 148 passed.corepack pnpm run typecheck-client— passed.corepack pnpm run valid-layers-check— passed.corepack pnpm run eslint src/vs/workbench/contrib/sessions/browser/views/sessionsList.ts src/vs/workbench/contrib/sessions/common/sessionCommands.ts src/vs/sessions/contrib/sessions/browser/views/sessionsViewActions.ts src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts— passed.The Electron tests dispatch drag events through the rendered Sessions list. Manual end-to-end testing with a live provider and a screen reader was not performed.
Manual testing