hermes - 💡(How to fix) Fix Gateway image auto-routing ignores session model overrides [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Bug Description

In gateway sessions, agent.image_input_mode: auto decides native-vs-text image handling from the persisted config/default model instead of the effective per-session model selected with /model.

This is especially visible in Telegram:

  • config/default model is text-only (for example mimo-v2.5-pro)
  • the current Telegram session is switched with /model to a vision-capable model
  • screenshots are still pre-analyzed through vision_analyze, so the main model receives a text summary instead of native pixels

The inverse can also happen:

  • config/default model is vision-capable
  • the current session is switched to a text-only model
  • auto may route images natively even though the effective session model cannot consume pixels

Expected Behavior

agent.image_input_mode: auto should resolve the same effective model/provider that the upcoming gateway turn will use, including session-scoped /model overrides, before choosing:

  • native for vision-capable effective models
  • text / vision_analyze fallback for text-only effective models

Actual Behavior

Image preprocessing runs before the agent runtime globals are set for the turn. The gateway's image-routing helper reads the main model/provider from config/runtime defaults, so it can ignore the session-scoped /model override.

Reproduction Shape

  1. Configure a text-only default model.
  2. In Telegram, switch the current session/topic to a vision-capable model with /model.
  3. Send a screenshot.
  4. Observe that auto uses text pre-analysis instead of attaching pixels natively.

A mirror regression exists with a vision default + text-only session override.

Notes

I have a small fix branch that makes the gateway image-routing decision resolve the same session runtime as the upcoming agent turn and adds regression tests for both directions.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix Gateway image auto-routing ignores session model overrides [1 pull requests]