gstack icon indicating copy to clipboard operation
gstack copied to clipboard

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

Open jinzheio opened this issue 4 months ago • 4 comments

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:

  • no gstack OpenAI key configured
  • cwd .env contains OPENAI_API_KEY
  • Codex design binary path resolution hits the existing fallback-path problem from #1159

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:

  • #1159: Codex design workflows can report DESIGN_NOT_AVAILABLE due to path/install-surface drift
  • #990: support non-OpenAI image providers in design
  • #1248: design can pick up OPENAI_API_KEY from cwd .env
  • #1771: OpenAI image tool model pairing regression

jinzheio avatar Jul 04 '26 13:07 jinzheio

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

time-attack avatar Jul 15 '26 22:07 time-attack

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.

capy-ai[bot] avatar Oct 11 '26 15:10 capy-ai[bot]

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).

capy-ai[bot] avatar Oct 25 '26 23:10 capy-ai[bot]

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.

capy-ai[bot] avatar Oct 31 '26 20:10 capy-ai[bot]