Skip to content

Show Copilot Fusion reasoning in the agent host chat - #346434

Merged
Bhavya U (bhavyaus) merged 1 commit into
microsoft:mainfrom
andysalerno:andysalerno/fusion-reasoning
Nov 6, 2026
Merged

Bhavya U (bhavyaus) merged 1 commit into
microsoft:mainfrom
andysalerno:andysalerno/fusion-reasoning

Conversation

@andysalerno

@andysalerno Andy Salerno (andysalerno) commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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.

Before: no reasoning output is shown in Fusion:

Image

After: reasoning output appears in Fusion:

Image

Copilot AI balanced review requested due to automatic review settings November 6, 2026 01:22
@andysalerno

Copy link
Copy Markdown
Contributor Author

Andy Salerno (@andysalerno) please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree company="GitHub"

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

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

@bhavyaus Bhavya U (bhavyaus) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

@bhavyaus
Bhavya U (bhavyaus) enabled auto-merge (squash) November 6, 2026 18:49
@bhavyaus
Bhavya U (bhavyaus) merged commit 01da4ec into microsoft:main Nov 6, 2026
52 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.146.0 milestone Nov 6, 2026
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.

6 participants