Skip to content

Image generation is never available in copilot --acp sessions #5551

Done

Description

@manuelpa-ms

Describe the feature or problem you'd like to solve

The image generation tool (GPT Image 2.5 Flare) works in interactive Copilot CLI and in VS Code, but never in a session started with copilot --acp. ACP clients (I hit it in T3 Code) get a session without the tool, even when the user's imageGeneration setting is on and the account has the rollout.

From reading the bundled cli-main.js (1.0.114):

  • The interactive CLI passes the user's imageGeneration setting through to the session.
  • The ACP session config (clientKind: "acp") sets tools.availableTools and tools.excludedTools, but not tools.imageGeneration.
  • The session layer then falls back to tools.imageGeneration.enabled ?? false, so ACP sessions always have it off.

There's no --acp flag or ACP session parameter that turns it on, so the ACP client has no way to enable it either.

Proposed solution

Have ACP sessions follow the same imageGeneration setting as interactive sessions (default on, when the account has access). Optionally, let the ACP client override it per session, for example through _meta on session/new, the way SDK hosts already can with tools.imageGeneration.enabled.

Generated images already come back as files in the project, which ACP clients can display, so nothing else should be needed on the protocol side.

Example prompts or workflows

  1. In an ACP client, ask: "Make a 512×512 PNG icon of a red planet and save it to assets/icons/." Today the agent says it has no image tool; in copilot in a terminal it works.
  2. An orchestrating agent delegates "generate 6 portrait variants in this style" to a Copilot ACP session, then wires the files into the app.
  3. Generate a favicon or OG image as part of a coding task, without leaving the ACP client for VS Code or a terminal.

Additional context

  • Copilot CLI 1.0.114, Windows 11, Copilot account with the copilot_cli_image_generation_tool experiment enabled.
  • ~/.copilot/config.json doesn't set imageGeneration, so it's at its default (true).
  • Steps to reproduce:
    1. Run copilot in a terminal, ask for a small test image: it's generated.
    2. Start copilot --acp from an ACP client in the same folder with the same account and model, ask the same thing: the agent reports no image generation tool.
  • Related: Support image generation for developer assets (icons, favicons, logos, OG images) #4581 (image generation for developer assets).

Activity

  1. devm33 commented on Nov 22, 2026

    @devm33
    Member

    Thanks for raising! Will be available in the next release

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions