Skip to content

sessions: cover returning the only quick chat to an empty Chats section - #343025

Merged
Sandeep Somavarapu (sandy081) merged 1 commit into
mainfrom
agents/fix-agent-window-quick-chat-move
Oct 20, 2026
Merged

Sandeep Somavarapu (sandy081) merged 1 commit into
mainfrom
agents/fix-agent-window-quick-chat-move

Conversation

@sandy081

Copy link
Copy Markdown
Member

Refs #340740

Adds a regression test for #340740 (Agents window: quick chats trapped in a custom group).

The behavior was fixed by #342591, which resolves session drops to placements and allows a grouped quick chat to return to the Chats section. That PR covered dropping a grouped quick chat onto a Chats section that still contains another quick chat. This PR covers the case reported in the issue: the moved quick chat is the only one, so Chats is empty and shows its "No chats" placeholder. That state requires a provider that supports quick chats and sessions.list.showEmptyDefaultGroups enabled, so the suite-local renderGroupedList helper gains an optional supportsQuickChats parameter.

Test-only change; no product code changes.

How to test

  • ./scripts/test.sh --run src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts --run src/vs/sessions/contrib/sessions/test/browser/sessionsListContextMenu.test.ts: passed (275 passing)
  • npm run typecheck-client: passed
  • npm run eslint -- src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts and pre-commit hygiene: passed
  • Live, in a Code - OSS Agents window: created a quick chat, moved it into a new custom group (Chats became empty), then returned it to Chats by dropping on the Chats header, by dropping on the "No chats" placeholder, and with Remove from Group in the context menu. All three worked.

Adds a regression test for #340740: a quick chat moved into a custom
group can be dragged back onto the Chats section header even when it is
the only quick chat, so Chats is empty and renders its placeholder.

The drop target itself was fixed by #342591, which resolves drops to
placements and lets quick chats return to Chats; its test only covered
a populated Chats section.

Fixes #340740

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.

🟢 Approval recommended

The focused test-only changes preserve existing helper defaults and have no actionable findings.

No open issues 🎉

What changed in this PR

Adds regression coverage for returning the only grouped quick chat to an empty Chats section, complementing the fix in #342591 for #340740. No product code changes.

Changes:

  • Extends the test helper to optionally enable quick-chat support and empty default sections.
  • Adds a drag-and-drop test verifying that dropping onto the empty Chats header removes group membership.
File Description
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsList.test.ts Extends the harness and adds empty-Chats regression coverage.

Review effort: Balanced

@sandy081
Sandeep Somavarapu (sandy081) merged commit 61c4648 into main Oct 20, 2026
50 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the agents/fix-agent-window-quick-chat-move branch October 20, 2026 21:20
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