Skip to content

Say at attach time when a model cannot read images — today an own-key conversation without a vision model takes photos and scanned pages it can only answer blind #237

Closed as not planned

Description

@bencode

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 at analyze_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 check

Refs

Activity

  1. added
    enhancement
    source:scheduled
    on Oct 26, 2026
  2. bencode commented on Oct 26, 2026

    @bencode
    OwnerAuthor

    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 by visionModelFor → createVisionAnalyzer.
    • ✅ features/assistant/pdf/tools.ts:8,23 — analyze_pdf_page gated 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:46 and model-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 stray visionModel reference in model-control could pass it with the notice missing. Anchor on the reader-facing outcome instead (the composer copy in features/conversation, per the outcome-not-vocabulary rule this loop set in #158); for pdf/source.ts, pick the no-analyzer branch's actual message as the grep once its wording is chosen.

  3. bencode commented on Oct 27, 2026

    @bencode
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsource:scheduled

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions