Skip to content

Codex design-shotgun should use image_gen instead of requiring OpenAI API keys #2174

Closed

Description

@jinzheio

Summary

The Codex-hosted gstack-design-shotgun skill still routes visual generation through gstack's design binary ($D generate). That makes Codex users provide an OpenAI API key even though Codex already has a native image_gen tool available in the host.

Current behavior

In the Codex-generated skill, design-shotgun still includes the normal design-binary flow:

  • run DESIGN SETUP
  • resolve $D
  • ask variant subagents to run $D generate
  • rely on design/src/auth.ts to find ~/.gstack/openai.json or OPENAI_API_KEY

That path can fail or bill the wrong account:

Expected behavior

When the skill name is gstack-design-shotgun / host is Codex, the skill should call Codex's native image_gen tool directly for each variant.

Expected Codex path:

  1. Build the same design brief and variant directions.
  2. Use image_gen directly to generate each visual variant.
  3. Save or copy returned images into ~/.gstack/projects/$SLUG/designs/<session>/variant-A.png, etc.
  4. Present the images inline and collect feedback.
  5. Do not call $D generate and do not require OPENAI_API_KEY.

Why this matters

Codex users have an image generation capability through the host, not through gstack's OpenAI key chain. Requiring another OpenAI key adds setup friction and can accidentally use a project .env key. It also makes the advertised Codex skill behave like the Claude-hosted skill instead of using the host-native tool.

Notes

I tested the host image_gen path locally from Codex and it can generate a multi-variant UI mockup without any gstack design binary or OpenAI API key setup. The generated image was saved under ~/.codex/generated_images/... as expected.

This is related to, but not the same as:

Activity

  1. time-attack commented on Jul 15, 2026

    @time-attack
    Contributor

    @jinzheio The image_gen implementation has not landed, so replacing the OpenAI API-key requirement remains unresolved.

  2. capy-ai commented on Oct 11, 2026

    @capy-ai
    Contributor

    Thanks @jinzheio for the idea. In the Oct 11 triage we grouped the open feature requests by theme so related asks get built together instead of one at a time. This one is part of the Provider pluralism theme in TODOS.md (https://github.com/garrytan/gstack/blob/50d020ad9/TODOS.md#L54-L69), tracked as a whole in #3138. Closing it here so the open list stays actionable; it isn't rejected, and the theme credits every linked reporter when it's picked up.

  3. added
    parked
    on Oct 25, 2026
  4. capy-ai commented on Oct 25, 2026

    @capy-ai
    Contributor

    Reopened under the parked label: this is tracked in the Provider pluralism theme in TODOS.md and tracking issue #3138 (https://github.com/garrytan/gstack/blob/main/TODOS.md#p3-feature-themes-from-the-wave-9-triage-filed-2026-10-11), and what fixes it is one provider seam for outside voices, image providers and review bots, which these requests then plug into. Closed-but-tracked read as closed, so parked issues now stay open until they ship, are duplicates, or are declined (https://github.com/garrytan/gstack/blob/main/docs/triage.md).

  5. added
    S3
    enhancement
    on Oct 31, 2026
  6. capy-ai commented on Oct 31, 2026

    @capy-ai
    Contributor

    Thanks for asking for this, @jinzheio. It shipped in v1.91.66.0 (with credit to #2175): on Codex, design-shotgun now uses Codex's built-in $imagegen, so if you're signed in with ChatGPT you don't need an OpenAI API key. Closing as completed.

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

    S3enhancementparked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions