Skip to content

cli: don't fail create when the API key is skipped in immediate mode - #1138

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1788930825-cli-skip-key-exit-zero
Open

cli: don't fail create when the API key is skipped in immediate mode#1138
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1788930825-cli-skip-key-exit-zero

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

What

When the user skips the API key prompt (or --auth skip) with immediate mode on, create already scaffolds, installs deps, and skips the dev server — but it then exits with code 1, so the run reads as a failure even though the user made a valid choice. Skipping the key now just turns immediate off (exit 0), same as --no-immediate.

Changes

  • create-app.ts: drop process.exitCode = 1 on the missing_api_key dev-start skip. The "Add your API key to .env" note and cd/run dev next steps still print; telemetry cli_dev_command_skipped{skip_reason: missing_api_key} unchanged.

Test Plan

  • Verified locally: openui create --template openui-self-hosted --immediate with blank key and no OPENAI_API_KEY in env → scaffold + install, dev server not started, prints next steps, exit 0 (was 1).
  • pnpm --filter @openuidev/cli lint:check

Checklist

  • I considered backwards compatibility (only the exit code changes; scripts asserting on exit 1 for a skipped key would need updating)

Link to Devin session: https://app.devin.ai/sessions/8001f7130f4e49dfb493d5e8564f6e7a
Open in Devin Desktop: https://app.devin.ai/desktop/session/8001f7130f4e49dfb493d5e8564f6e7a?variant=devin
Requested by: @zahlekhan

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openui-docs Ready Ready Preview Sep 9, 2026 5:15am UTC

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant