Skip to content

sessions: add an Inbox Acknowledge action - #348179

Merged
Megan Rogge (meganrogge) merged 9 commits into
mainfrom
agents/inbox-item-move-feature
Nov 13, 2026
Merged

Megan Rogge (meganrogge) merged 9 commits into
mainfrom
agents/inbox-item-move-feature

Conversation

@meganrogge

@meganrogge Megan Rogge (meganrogge) commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator
acknowledge.mov

Fixes #348177.

Adds an inline Acknowledge action (eye icon) to Inbox rows and reuses the existing context-menu action. This clears handled Inbox activity without marking the session read or done, archiving it, or closing its conversation.

  • Supports multiple selected sessions without changing read or archive state, retaining main's context-menu support for historical completions.
  • Preserves the new Acknowledged category from main, collapsed by default. Sessions remain available in other groupings and return on new activity or a new notification. Pinned sessions stay pinned.
  • Preserves keyboard focus and announces the change to screen readers without a banner or progress countdown.
  • Updates accessibility help and adds menu, bulk-action, and rendered-list regression tests.

How to test

In the Agents window, choose Inbox grouping and use Acknowledge from a session's inline toolbar or context menu. Confirm that the row moves from Inbox to Acknowledged without changing Read/Done state or closing the conversation, and that no notification banner appears. Expand Acknowledged or switch groupings to find the session again, then verify that new activity returns it to Inbox. Also try multiple selected sessions, historical sessions from the context menu, and keyboard activation through the toolbar and Shift+F10.

Validation

  • corepack pnpm run build-fast --client-only — passed.
  • VSCODE_SKIP_PRELAUNCH=1 ./scripts/test.sh --reporter dot --run src/vs/sessions/contrib/sessions/test/browser/sessionsViewMenu.test.ts --run src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts --run src/vs/workbench/contrib/sessions/test/browser/sessionsListModelService.test.ts --run src/vs/sessions/contrib/chat/test/browser/sessionsChatAccessibilityHelp.test.ts --run src/vs/sessions/contrib/providers/agentHost/test/browser/agentsWindowRegistrations.test.ts --grep 'Sessions - View Menu|SessionsListModelService|SessionsChatAccessibilityHelp|[Ii]nbox|Agents window registrations' — passed, 229 tests.
  • corepack pnpm run typecheck-client — passed.
  • corepack pnpm run oxlint src/vs/workbench/contrib/sessions/browser/views/sessionsListActions.ts src/vs/workbench/contrib/sessions/browser/views/sessionsList.ts src/vs/sessions/contrib/sessions/test/browser/sessionsViewMenu.test.ts src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts — passed.
  • git diff --cached --check — passed before committing.
  • Launched and reloaded the Agents window in Code OSS earlier in this session; the latest base update was validated with the tests above.

Clear current Inbox activity without marking a session read or done. Keep sessions available in other groupings and let new activity bring them back, with quiet accessible feedback and preserved keyboard focus.

Fixes #348177

Co-authored-by: Copilot <[email protected]>
@vs-code-engineering

vs-code-engineering Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

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

Ladislau Szomoru (@lszomoru)

Matched files:

  • src/vs/workbench/contrib/sessions/common/sessionCommands.ts

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Base: f370d3fd Current: 32baa402

No screenshot changes.

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

Acknowledging a session from a keyboard-opened context menu leaves focus outside the list after removing the row, and this path lacks regression coverage.

1 open issue
What changed in this PR

Adds an Acknowledge action to the Agents window Inbox, clearing current activity without changing Read/Done state, archiving the session, or closing its conversation.

Changes:

  • Adds toolbar and context-menu actions with multi-selection support and eligibility checks.
  • Reuses Inbox acknowledgment state and announces changes without a notification banner.
  • Updates accessibility help and documentation, with menu, bulk-action, and rendered-list regression tests.
File Description
src/​vs/​workbench/​contrib/​sessions/​common/​sessionCommands.ts Defines the Acknowledge command ID.
src/​vs/​workbench/​contrib/​sessions/​browser/​views/​sessionsList.ts Adds action eligibility and inline focus restoration.
src/​vs/​sessions/​SESSIONS_LIST.md Documents explicit acknowledgment behavior.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsViewMenu.test.ts Tests action availability, bulk behavior, and Inbox resurfacing.
src/​vs/​sessions/​contrib/​sessions/​browser/​views/​sessionsViewActions.ts Registers Acknowledge and suppresses acknowledgment banners.
src/​vs/​sessions/​contrib/​chat/​browser/​sessionsChatAccessibilityHelp.ts Explains acknowledgment and keyboard interaction.

Review effort: Balanced

Restore focus to the list when Acknowledge removes the row targeted through Shift+F10. Exercise the keyboard context-menu path and assert focus retention for both context-menu and inline activation.

Co-authored-by: Copilot <[email protected]>
…nbox-item-move-feature

# Conflicts:
#	src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts

Co-authored-by: meganrogge <[email protected]>
…nbox-item-move-feature

# Conflicts:
#	src/vs/sessions/SESSIONS_LIST.md
#	src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts

Co-authored-by: meganrogge <[email protected]>
Preserve Inbox Acknowledge and its quiet feedback in the shared session-list action registration, retaining the upstream refactor and keyboard-focus fixes.

Co-authored-by: Copilot <[email protected]>
roblourens
roblourens previously approved these changes Nov 13, 2026
@meganrogge
Megan Rogge (meganrogge) added this pull request to the merge queue Nov 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 13, 2026
Keep the upstream Acknowledged category and historical-session support with one shared Acknowledge command. Preserve the inline eye action, quiet feedback, and keyboard-focus fixes.

Co-authored-by: Copilot <[email protected]>
Preserve the Inbox Acknowledge action alongside removal of inline feedback actions.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 6b3199e6-7d7a-4368-ae89-638d12f7f518
Preserve the removal of obsolete inline feedback actions while retaining the Inbox Acknowledge import and keyboard-focus behavior.

Co-authored-by: Copilot <[email protected]>
Both main merges have identical validated contents. Preserve both commits without rewriting branch history.

Co-authored-by: Copilot <[email protected]>
@meganrogge
Megan Rogge (meganrogge) added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 11e3a5a Nov 13, 2026
37 of 38 checks passed
@meganrogge
Megan Rogge (meganrogge) deleted the agents/inbox-item-move-feature branch November 13, 2026 20:01
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.

Inbox: acknowledge sessions without marking them done

8 participants