Skip to content

fix: correct originalPrompt parameter in reflect loop exit drain#281

Merged
PureWeen merged 1 commit intomainfrom
fix/orchestrator-exit-drain-original-prompt
Mar 4, 2026
Merged

fix: correct originalPrompt parameter in reflect loop exit drain#281
PureWeen merged 1 commit intomainfrom
fix/orchestrator-exit-drain-original-prompt

Conversation

@PureWeen
Copy link
Copy Markdown
Owner

@PureWeen PureWeen commented Mar 4, 2026

Follow-up to #275. The exit drain in SendViaOrchestratorReflectAsync passes originalPrompt: prompt (the outer loop prompt) instead of originalPrompt: leftover (the actual message being sent). This causes the response to be misattributed in chat history — the user sees their queued message associated with the wrong original input.

One-line fix identified in Round 6 review (R6-N1).

The exit drain in SendViaOrchestratorReflectAsync was passing the outer
`prompt` as originalPrompt instead of `leftover`, misattributing the
response in chat history. Follow-up to PR #275.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@PureWeen PureWeen force-pushed the fix/orchestrator-exit-drain-original-prompt branch from 568f971 to 2322c8b Compare March 4, 2026 20:09
@PureWeen PureWeen merged commit e4538fd into main Mar 4, 2026
@PureWeen PureWeen deleted the fix/orchestrator-exit-drain-original-prompt branch March 4, 2026 20:44
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.

1 participant