Images re-injected via chat_prior_image_reinject_max landed in the
current user message with no origin marker, so the model treated them
as fresh uploads of that message even when it was text-only. Mark the
collected prior images historical with their source message id and
insert a brief origin note before such images during multimodal
assembly; current-turn uploads keep their existing behavior.
Fixes#2632
Signed-off-by: evan188199-tech <238371241+evan188199-tech@users.noreply.github.com>
DeepSeek-V4.1-Flash is natively multimodal, but every `deepseek-*` id
matched the broad `deepseek` override and resolved to
`supports_vision: False`. Mastery Path then refused to open source pages
with "The active model cannot inspect original pages", and the
multimodal layer stripped images before the request was sent — the model
was never asked.
Add narrow, vision-only overrides for the ids this model ships under,
including the namespaced spellings gateways publish, following the
existing Qwen-VL convention of listing both forms. Other DeepSeek text
models stay fail-closed, and the broader `deepseek` entry keeps
supplying response-format and thinking-tag handling.
_inject_images guessed the MIME up front from the attachment filename,
which always yields a non-empty value (image/png default), so the later
'mime = mime or resolved_mime' never used the type resolved from the stored
attachment. A JPEG referenced by store URL with no mime_type/filename was
sent as image/png and rejected by strict providers. Keep only an explicit
mime_type up front and apply the filename guess last, after the resolver.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Declare the Codex Responses provider as image-capable so multimodal calls do not silently degrade to text and RAG image indexing can use it. Cover capability resolution, fallback behavior, and input_image conversion.
Security: lock down the TutorBot tool sandbox (shell exec is opt-in, all
filesystem/shell access confined to the bot workspace) and isolate per-user
resources, closing #518, #517, #516, #515, #514 and #506 (first hardened in
#507).
Bug fixes: chat input disabled after the first turn (#520), KB embedding
failure on long documents (#521 / #509), profile creation under Docker
(#512 / #513), Qwen reasoning models failing native tool calling (#527 / #528),
the GPT-5 init-wizard token parameter (#508), and oversized session-event
truncation (#524).
Features: HTTP/SSE API for multi-turn chat with a specific TutorBot (#511),
multimodal image fallback for vision-capable providers without a capability
entry, safe ZIP knowledge upload, and a /settings/network page with model
fetching (community PRs #522 and #523 reimplemented locally).
Also bumps __version__ to 1.4.1, adds the v1.4.1 release notes, updates the
README Releases section, and ships the Astro + Starlight docs site under site/.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>