Skip to content

Improvement: with image generation off, chat answers a request for a photo with an SVG instead of saying so #5029

Closed

Description

@yannickmonney

Summary

Asked for a photorealistic image, chat writes an SVG with create_file and presents it as the image. Asked again, it says it cannot render images here and offers a prompt for an image generator. Neither reply says that image generation is switched off for the organization, or that an admin can turn it on. From the user's side, image creation in chat looks broken.

Why

Observed at main a71d0d92e9.

  • configs/platform/custom/governance/image-generation.yml:5 ships enabled: false.
  • With image generation off, the work ladder offers create_file, whose line names SVG (services/platform/lib/agent/ladder.ts:51), and leaves out generate_image (ladder.ts:54-57). As instructed, the model reaches for the cheapest tool that seems to fit. Nothing tells it that photo-like pictures are unavailable here.

Proposed change

  • When generateImage is off, the ladder or the persona says so. Generating pictures (photos, illustrations, artwork) is off in this workspace, so the model should say that, name the admin setting, and not substitute an SVG for a photo-like picture. SVG stays fine for diagrams, icons and charts.
  • Optionally, show a notice on the reply, like the work-tools notice from feat(platform): choose skills in chat and say why file work failed #4963, that points an admin to the Image generation policy.
  • Docs (docs/*/platform/chat/files-and-skills.md): pictures need the Image generation policy and an image model.

Done when

  • With image generation off, "make a photorealistic image of …" gets a reply that says image generation is off and who can turn it on, and no SVG is presented as a photo.
  • With it on, the same prompt calls generate_image.
  • The en/de/fr strings and docs are updated, with unit tests on renderWorkLadder for both loadouts.

Scope for parallel work

This touches lib/agent/ladder.ts (and possibly lib/chat/assistant.ts) and the docs. It is separate from the attachment bug (#5028), which is about files the turn did make.

Activity

  1. added
    priority: medium
    improvement
    service: platform
    on Oct 23, 2026
  2. added
    agent-ready
    on Oct 29, 2026
  3. added a commit that references this issue on Oct 30, 2026
    3f52741
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

    agent-readyimprovementpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions