You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improvement: with image generation off, chat answers a request for a photo with an SVG instead of saying so #5029
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.
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.
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
fix(platform): say image generation is off instead of drawing an SVG