You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
agentHost: show the HydraFusion main pass in the main chat - #341951
Every HydraFusion phase, including the main pass, was a phase tile whose tool calls, edits and narration lived in a read-only child chat. That left the main chat nearly empty. When the committed transcript ended with an empty message plus task_complete (e.g. an approved Critique run), the answer stayed in the "First pass" chat and never reached the main chat.
Changes
Main pass is inline.primary, draft and follow_up phases have no tile or chat. Their tool calls, edits and narration render in the main chat, both live and on restore. Activity text ("Main pass running") still shows while they run.
Review/fix-up phases keep tiles.judge, critic, repair and revision are unchanged. Presentation is an explicit getFusionPhasePresentation mapping, and unknown kinds keep a tile.
Answers wait for the commit. An inline pass's tool-free messages and its provisional task_complete summary are held until the committed replay, so a draft the review rejects never looks final.
A committed task_complete summary always reaches the main chat, including from Revision/Fix-up phases.
A failed or cancelled inline pass gets a workflow notice instead of its tile.
The phase routing state is consolidated into one map of label and presentation.
Initial and continuing HydraFusion passes (primary, draft, follow_up) are the
main agent's own work, so they no longer get a phase tile or a read-only phase
chat: their tool calls, edits and narration render inline, live and on restore.
Review and fix-up phases (judge, critic, repair, revision) keep their tiles.
Answers wait for the commit: an inline pass's tool-free messages and
task_complete summary are held until the committed replay, so a draft that the
review rejects never looks final. A committed task_complete summary always
reaches the main chat, fixing answers stranded in the "First pass" chat.
An inline pass that fails or is cancelled gets a workflow notice instead of its
tile. Phase presentation is an explicit mapping; unknown kinds keep a tile.
Fixes#341346
Co-authored-by: Copilot <[email protected]>
- Hold back a provisional main-pass message whose only tool request is
task_complete, so its answer text waits for the commit.
- On restore, keep a committed fix-up/revision task_complete summary in its
phase chat as well as the main chat, and do not append it to a root turn
that already ended in an error.
Co-authored-by: Copilot <[email protected]>
When a Fix-up/Revision task_complete arrives without a provisional copy, this lookup leaves the phase destination undefined, so the summary is emitted only to the main chat. A summary-only phase therefore has an empty live child chat, although reloading restores the summary there through mapSessionEvents. Resolve the phase independently of provisional status and emit committed summaries to both destinations, while keeping provisional inline summaries deferred. Add a committed-only live regression case; the existing completion-summary test always sends a provisional copy first.
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
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 #341346
Problem
Every HydraFusion phase, including the main pass, was a phase tile whose tool calls, edits and narration lived in a read-only child chat. That left the main chat nearly empty. When the committed transcript ended with an empty message plus
task_complete(e.g. an approved Critique run), the answer stayed in the "First pass" chat and never reached the main chat.Changes
primary,draftandfollow_upphases have no tile or chat. Their tool calls, edits and narration render in the main chat, both live and on restore. Activity text ("Main pass running") still shows while they run.judge,critic,repairandrevisionare unchanged. Presentation is an explicitgetFusionPhasePresentationmapping, and unknown kinds keep a tile.task_completesummary are held until the committed replay, so a draft the review rejects never looks final.task_completesummary always reaches the main chat, including from Revision/Fix-up phases.Resulting transcript:
How to test
echo hi && pwdand tell me the output", or a multi-file create/test/fix task.Validation
./scripts/test.sh --runoncopilotAgentSession,copilotFusionProgress,mapSessionEvents,agentSideEffects,agentHostTurnTelemetryandagentHostTurnHangTelemetrytests: 1742 passing (after rebasing on latestmain).npm run typecheck-client: passed.npm run eslinton the changed files: passed.copilotAgent.test.tshas 14 failing discovery/state-file tests onmainwithout this change. They are unrelated.Follow-ups (not in this PR)