fix(agent): prefer native vision over auxiliary fallback in auto mode (#29135) - #57650
Merged
Conversation
Collaborator
Core-team salvage (@teknium1) of the earliest canonical PR #32519 (@Jiahui-Gu), authorship preserved. Closes the bug/feature cluster #29135, #44299, #53400, #48964. Distinct from the additive |
teknium1
force-pushed
the
fix/native-vision-before-aux
branch
from
July 3, 2026 10:34
97b780f to
4ce49f5
Compare
This was referenced Jul 3, 2026
Closed
1 task
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.
Summary
image_input_mode: autonow prefers native vision when the main model supports it; an explicitauxiliary.visionconfig acts as a fallback for text-only main models instead of unconditionally forcing the lossy text pipeline. Fixes #29135 and the bug half of #44299 (also reported in #53400 / #48964).Root cause:
decide_image_input_mode()checked_explicit_aux_vision_override(cfg)before_lookup_supports_vision(), so any user with anauxiliary.visionblock configured lost native pixels even on a fully vision-capable main model.Changes
Validation
Closes #29135, #44299, #53400, #48964. Salvages #32519 (canonical earliest PR; #44320, #44305, #44450 were duplicates already closed against it) with contributor authorship preserved.
Infographic