Repository navigation
fix(dialog): preserve explicit tool intent in the first model request - #223
Merged
Merged
Conversation
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.
Explicit drawing requests lost
requested_toolwhen the production materializer replaced routed job metadata with the canonical Telegram history payload. The model then receivedtool_choice: autoand no first-packet intent, despite the scheduler recording a direct request.Preserve the router's intent when the canonical message has the same author and original text. Canonical content, author and thread still take precedence; an edited or different-author request cannot inherit the old intent. The existing native drawing regression now passes through the same canonicalization function used by Postgres instead of the current-message-only materializer.
Validation: reproduced the missing first-step tool requirement before the fix; 2463 workspace/all-target tests passed, 10 ignored; formatting, diff checks and workspace/all-target Clippy passed. Coverage includes absent/present original text, edited cancellation and changed author. No schema or protocol migration.