Repository navigation
Fix child-chat feedback submission in the Agents window - #347192
Open
Rory Primrose (roryprimrose) wants to merge 2 commits into
Open
Rory Primrose (roryprimrose) wants to merge 2 commits into
Rory Primrose (roryprimrose) wants to merge 2 commits into
Conversation
Fixes microsoft#346885: microsoft#346885 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
Feedback is marked Submitted before host acknowledgement and remains so after rejection, while reopening sessions can temporarily cause edits and replies to fail until annotations reload.
2 open issues
What changed in this PR
Fixes child-chat feedback routing in the Agents window by preserving where comments were authored and submitting directly to those chats without waiting for a chat widget. The split-button enhancement remains out of scope.
Changes:
- Persist chat ownership in annotations and reject unavailable targets rather than falling back to the parent.
- Queue feedback without interrupting the current turn, preserve drafts, and show submission notifications.
- Add regression coverage for routing, persistence, queueing, and failure handling.
| File | Description |
|---|---|
src/vs/workbench/contrib/sessions/providers/agentHost/browser/baseAgentHostSessionsProvider.ts |
Forward queue options and preserve queued-request drafts. |
src/vs/workbench/contrib/sessions/common/sessionsProvider.ts |
Add queue options to the provider request contract. |
src/vs/workbench/contrib/sessions/browser/agentFeedbackModel.ts |
Add feedback chat ownership. |
src/vs/workbench/contrib/sessions/browser/agentFeedback.ts |
Clarify background submission documentation. |
src/vs/sessions/contrib/providers/agentHost/test/browser/localAgentHostSessionsProvider.test.ts |
Test queue forwarding and draft preservation. |
src/vs/sessions/contrib/agentFeedback/test/browser/agentFeedbackService.test.ts |
Test authorship routing and unavailable targets. |
src/vs/sessions/contrib/agentFeedback/test/browser/agentFeedbackItemsBackend.test.ts |
Test persisted ownership and legacy feedback. |
src/vs/sessions/contrib/agentFeedback/test/browser/agentFeedbackEditorActions.test.ts |
Test action routing and submission notifications. |
src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.ts |
Capture authorship and queue submissions by target chat. |
src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackItemsBackend.ts |
Persist and restore annotation chat origins. |
src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackEditorActions.ts |
Resolve editor context and use notification-aware submission. |
Review effort: Balanced
Address host enqueue acknowledgement and annotation-origin retention review findings: microsoft#347192 (comment) microsoft#347192 (comment) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
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 #346885.
Summary
origin.chat, including across navigation and reload. Legacy comments without chat ownership remain scoped to the owning main chat (annotation backend).The split-button enhancement in #346884 is out of scope.
Validation
Local Windows validation of commit
796bc55dee304f34fa4f0b7f9d72c29909627f50:pnpm run typecheck-client— passed, exit code 0.pnpm run build-fast --client-only— passed, exit code 0.ESLint checked all 11 changed TypeScript files; the corrected PR-review fixture was linted again successfully. Command scope:
Targeted browser regression tests — passed, exit code 0; 84 executed cases, no failures, errors, or skipped cases:
git diff --check— passed, exit code 0.The reporter confirmed successful manual testing in the local Agents build.
Full integration and smoke suites were not run.
Review follow-up
Commit 0e329d8 waits for the queued request's matching host acknowledgement before reporting submission success, propagates host rejection without waiting for execution, and retains annotation backend origins while replacement snapshots load. Regression tests cover early acknowledgements, rejection, provider disposal, and editing/replying to cached deleted-child feedback during snapshot reload.
Validation of this follow-up:
The manual testing reported above preceded this follow-up. The follow-up was validated with the automated checks listed here, not another live Dev Tunnel run.
Manual verification