agentHost: dismiss question widget on other clients when answered#312919
Merged
connor4312 merged 1 commit intomainfrom Apr 27, 2026
Merged
agentHost: dismiss question widget on other clients when answered#312919connor4312 merged 1 commit intomainfrom
connor4312 merged 1 commit intomainfrom
Conversation
roblourens
previously approved these changes
Apr 27, 2026
When a question (input request) is answered on one client in a multi-client AgentHost session, the question carousel now disappears on all other clients and shows the actual answers instead of 'Skipped'. - Use the protocol input request id as the carousel's resolveId so the chat input widget can be targeted for cleanup by key. - Track per-entry whether completion came from shared state vs local UI. - Listen on onWillApplyAction for SessionInputCompleted to capture answers before the reducer removes the input request from state (the reducer deletes the request entirely, so answers are only on the action payload). - Convert protocol SessionInputAnswer records back to carousel-display format so the summary renders 'Q: ... / A: ...' instead of 'Skipped'. - Guard cleanup so locally-submitted carousels keep their answer data when the server echoes the completion back. - Clear the matching chat input widget via IChatWidgetService when the request disappears from state on passive clients. Fixes #312869 (Commit message generated by Copilot)
cea0723 to
f0624d7
Compare
vijayupadya
approved these changes
Apr 27, 2026
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.
When a question (input request) is answered on one client in a multi-client
AgentHost session, the question carousel now disappears on all other clients
and shows the actual answers instead of 'Skipped'.
chat input widget can be targeted for cleanup by key.
before the reducer removes the input request from state (the reducer
deletes the request entirely, so answers are only on the action payload).
format so the summary renders 'Q: ... / A: ...' instead of 'Skipped'.
the server echoes the completion back.
request disappears from state on passive clients.
Fixes #312869
(Commit message generated by Copilot)