Skip to content

First-run setup wizard skipped on Windows when API key is already in env #135

@jonathanpopham

Description

@jonathanpopham

Summary

On Windows, the first-time install setup wizard appears to be skipped (or rendered too fast to interact with) when the user already has a Supermodel API key in their environment. Reported by a customer: their terminal "blew through" the wizard and they never saw the prompts — including the prompt to exclude .graph.* sidecar files from VCS.

Reported behavior

Customer "Elm" did a fresh npm install -g @supermodeltools/cli on Windows. On first invocation, the expected setup wizard (which normally walks through API key entry, ignore-file setup, etc.) did not appear, or scrolled past so fast it was non-interactive. They had a Supermodel API key already set in their environment.

Expected behavior

Even when a valid API key is detected in env, the user should still be walked through (or at minimum shown) the remaining first-run setup steps — particularly the .graph.* ignore-file prompt, which is unrelated to auth.

Hypothesis

The wizard likely short-circuits the entire flow when SUPERMODEL_API_KEY (or equivalent) is already present, instead of skipping just the auth step and continuing with the remaining setup steps.

Repro (suspected)

  1. On a fresh Windows machine, set SUPERMODEL_API_KEY in env before installing.
  2. npm install -g @supermodeltools/cli
  3. Run supermodel <something> for the first time.
  4. Observe: setup wizard either doesn't appear or scrolls through non-interactively; .graph.* files are not added to .gitignore.

Needs confirmation on a clean Windows VM.

Suggested fix direction

  • Decouple the auth step from the rest of the first-run wizard — env-detected key should skip auth-prompts only, not the whole flow.
  • If the wizard is meant to be one-shot and silent when env is pre-configured, surface a one-line summary of what was auto-configured and what was skipped, with a supermodel setup command to re-run interactively.

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