openclaw - 💡(How to fix) Fix [Bug]: Native image: dropped after sanitization regression on 2026.5.12 with Ollama/Gemma4 (Telegram)

Official PRs (…)
ON THIS PAGE

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…

Native image dropped after sanitization when sending Telegram photo to Ollama/Gemma4 vision model

Root Cause

Native image dropped after sanitization when sending Telegram photo to Ollama/Gemma4 vision model

RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Native image dropped after sanitization when sending Telegram photo to Ollama/Gemma4 vision model

Steps to reproduce

  1. Configure OpenClaw with Ollama provider and Gemma4 (vision-capable)
  2. Set input: ["text", "image"] in model config
  3. Connect Telegram bot via OpenClaw gateway
  4. Send a photo (or file/document) via Telegram to the bot
  5. Check logs

Expected behavior

Image is passed natively to Gemma4 via Ollama /api/chat with images[] field. Log should show: "Skipping image understanding: primary model supports vision natively"

Actual behavior

Log shows: Inbound message ... (direct, image/jpeg, 13 chars) Native image: dropped 1 image(s) after sanitization (prompt:images)

Bot falls back to Google web search instead of analyzing the image. Related to closed issue #79750 (same symptom, different provider — Gemini vs Ollama).

OpenClaw version

2026.5.12

Operating system

macOS 26.5

Install method

No response

Model

ollama/gemma4 (8B Q4_K_M)

Provider / routing chain

Telegram → OpenClaw Gateway → Ollama (local, loopback)

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

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…

FAQ

Expected behavior

Image is passed natively to Gemma4 via Ollama /api/chat with images[] field. Log should show: "Skipping image understanding: primary model supports vision natively"

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: Native image: dropped after sanitization regression on 2026.5.12 with Ollama/Gemma4 (Telegram)