Repository navigation
Show Copilot Fusion reasoning in the agent host chat - #346434
Merged
Bhavya U (bhavyaus) merged 1 commit intoNov 6, 2026
Merged
Conversation
Contributor
Author
@microsoft-github-policy-service agree company="GitHub" |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the live Fusion reasoning changes.
No open issues 🎉
What changed in this PR
This PR makes Copilot Fusion reasoning visible during live Agent Host chats, rather than only after session reload.
Changes:
- Render reasoning from completed Fusion messages, including inline-phase calls whose answers wait for commit.
- Suppress repeated reasoning in committed copies and clear tracking between turns.
- Add a regression test covering main-pass reasoning, repair-phase reasoning, and commit deduplication.
| File | Description |
|---|---|
src/vs/platform/agentHost/test/node/copilotAgentSession.test.ts |
Tests live Fusion reasoning and suppression of duplicate committed reasoning. |
src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts |
Emits Fusion reasoning parts and tracks previously displayed reasoning per turn. |
Review effort: Balanced
Copilot Fusion phases stream no reasoning deltas: the runtime keeps phase output private while it runs, so a phase's reasoning arrives only as the `reasoningText` of each complete `assistant.message`. The live path only rendered reasoning from deltas, so Fusion turns showed no reasoning until the session was reloaded, when history restore renders `reasoningText`. Render `reasoningText` as a reasoning part when a Fusion message is shown, and show it for inline-phase model calls whose answer waits for the commit, so the main pass shows progress. A message's committed copy does not repeat reasoning its provisional copy already showed. Co-authored-by: Copilot <[email protected]> Copilot-Session: 033a98ca-2ce0-42b2-91ab-26962e4cd69e
Andy Salerno (andysalerno)
force-pushed
the
andysalerno/fusion-reasoning
branch
from
November 6, 2026 18:43
39ea613 to
0018d6b
Compare
Bhavya U (bhavyaus)
approved these changes
Nov 6, 2026
Bhavya U (bhavyaus)
left a comment
Collaborator
There was a problem hiding this comment.
LGTM! Thanks!
Bhavya U (bhavyaus)
enabled auto-merge (squash)
November 6, 2026 18:49
Federico Brancasi (federicobrancasi)
approved these changes
Nov 6, 2026
Dmitriy Vasyura (dmitrivMS)
approved these changes
Nov 6, 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.
Copilot Fusion phases stream no reasoning deltas: the runtime keeps phase output private while it runs, so a phase's reasoning arrives only as the
reasoningTextof each completeassistant.message. The live path only rendered reasoning from deltas, so Fusion turns showed no reasoning until the session was reloaded, when history restore rendersreasoningText.Render
reasoningTextas a reasoning part when a Fusion message is shown, and show it for inline-phase model calls whose answer waits for the commit, so the main pass shows progress. A message's committed copy does not repeat reasoning its provisional copy already showed.Before: no reasoning output is shown in Fusion:
After: reasoning output appears in Fusion: