Repository navigation
Description
Problem
When a reader runs the assistant on their own key and never named a "Model for images", every vision path is silently absent — and nothing at ask time says so. visionModelFor returns undefined for a provider without a configured vision model (ui-packages/web/src/core/models/byok/runtime.ts:145-150 picks it only from models the reader chose), so createImageTools is not registered and analyze_image does not exist (features/assistant/create-reader-agent.ts:69,116-117), and analyze_pdf_page is dropped the same way (features/assistant/pdf/tools.ts:8,23).
The only sentence in the product about this appears once, in the provider dialog's dropdown: "None — image questions stay unavailable" (features/settings/model-providers/index.tsx:281-293). After that, the composer accepts image attachments the same as on any model ("Attach files — or paste or drop them here", composer/composer-toolbar.tsx:46), and the conversation's model select marks nothing (conversation/model-control/index.tsx:50-66) — so a reader attaches a photo of a chart or a scanned page, asks about it, and gets an answer from file metadata alone. The system prompt does forbid pretending ("Do not claim to see … content the tools have not provided", system-prompt.ts:9), so the agent will say it cannot see the image — but it cannot say why, or that the capability exists on other models, because nothing in the conversation knows the reason.
The gap also breaks an agent-side repair path: a PDF page whose text exceeds the limit throws "Page text exceeds 8 MiB. Use analyze_pdf_page to inspect this page." (features/assistant/pdf/source.ts:101) — unconditionally, even on a model where analyze_pdf_page was never registered. The instruction the reader's agent receives points at a tool it does not have.
Readers on the free allowance never meet this state (the deployment's vision model is always configured); it is the own-key path — "open, not hidden" per PRODUCT.md — that carries the silent capability hole.
Proposal
- Say it where the reader acts: when a draft holds an image attachment, or an image is attached, on a model with no vision path, the composer states it inline — "This model can't read images. Choose a Model for images under Add your own model…, or switch to a free model." — instead of accepting it silently.
- Mark image-capable models in the conversation's model select the way the dialog's dropdown already can, so the choice is visible where the model is chosen.
- In
pdf/source.ts, the oversized-page advice must not name a tool that is absent: when no vision path exists, tell the agent (and through it the reader) what is actually possible instead of pointing atanalyze_pdf_page. - Keep the configure-time dropdown text as is; this is about the state being visible at use, not at setup only.
Goal
After this, a reader on an own-key model without a vision model learns at attach time — not from a blind answer — that images are off for this model and the two ways to turn them on; and no agent-facing instruction references a tool that is not registered on the model in use.
Verification
grep -rq "vision" ui-packages/web/src/features/conversation
grep -n "vision" ui-packages/web/src/features/assistant/pdf/source.ts
pnpm checkRefs
- ui-packages/web/src/core/models/byok/runtime.ts:145-150 — vision model exists only when the reader named one among chosen models
- ui-packages/web/src/features/assistant/create-reader-agent.ts:69,116-117 — image tools register only when a vision analyzer exists
- ui-packages/web/src/features/assistant/pdf/tools.ts:8,23 — analyze_pdf_page dropped the same way
- ui-packages/web/src/features/assistant/pdf/source.ts:101 — "Use analyze_pdf_page" advised even when the tool is absent
- ui-packages/web/src/features/settings/model-providers/index.tsx:281-293 — "None — image questions stay unavailable", the one-time setup-time warning
- ui-packages/web/src/features/conversation/composer/composer-toolbar.tsx:46 — attachments accepted regardless of capability
- ui-packages/web/src/features/conversation/model-control/index.tsx:50-66 — no capability marking where the model is chosen
- ui-packages/web/src/features/assistant/system-prompt.ts:9 — the agent may not pretend to see; it just cannot explain the gap
- Binary files overpromise at every layer — a stored .doc previews as 'usable as context', lists as textReadable, then read fails with encoding advice #162 — same overpromise family on the binary-format side; this is the BYOK-vision side
- No-key chat is a dead end — the only 'Add your own model…' entry hides exactly when no model exists #159, Let a reader replace a stored key in place — the only action on a configured provider today is Remove, which drops the model selection and switches conversations to the free allowance #174, Say a failed own-key reply in reader language — the notice shows the vendor's raw JSON error body today #228 — the own-key family whose setup, keys and failures are spoken; the capability gap is the silent member
Activity
bencode commentedon Oct 26, 2026
Review — posted by the scheduled issue-reviewer loop (independent of the authoring session), against
main@70eb94e.Evidence audit: all eight citations hold to the exact line — no drift.
core/models/byok/runtime.ts:149—visionModel: chosen.find(…): vision exists only among the models the reader chose.features/assistant/create-reader-agent.ts:69,116-117—analyze ? createImageTools(…) : [], fed byvisionModelFor→createVisionAnalyzer.features/assistant/pdf/tools.ts:8,23—analyze_pdf_pagegated on the same optional analyzer.features/settings/model-providers/index.tsx:287— "None — image questions stay unavailable" is the product's only utterance, setup-time only.composer/composer-toolbar.tsx:46andmodel-control/index.tsx:50-66— attach flow and model select stay capability-blind, as claimed.system-prompt.ts:9— the no-pretending guard; ✅pdf/source.ts:101— "Use analyze_pdf_page" advised unconditionally, even where the tool is never registered.Duplicate check: nothing open or closed covers the attach-time vision gap; #162 (binary formats), #174/#228 (keys and failures spoken) are the adjacent family, not overlaps.
Sensor: lint ✓; verify ✗ → not implemented on main (none of the 32 commits since the loop's last baseline touches this).
Verdict: valid, keep open. One sharpening: the Verification greps anchor on the internal vocabulary
vision, but the Proposal's own composer copy ("This model can't read images… Choose a Model for images…") never says that word — a faithful implementation of the notice alone would fail the first grep, while a strayvisionModelreference in model-control could pass it with the notice missing. Anchor on the reader-facing outcome instead (the composer copy infeatures/conversation, per the outcome-not-vocabulary rule this loop set in #158); forpdf/source.ts, pick the no-analyzer branch's actual message as the grep once its wording is chosen.bencode commentedon Oct 27, 2026
Closing: which model an own-key conversation uses is the reader's own setup choice. A model without vision is a deliberate pick, and a warning at attach time would add UI for a case the reader chose.