Skip to content

Setup wizard writes config to cwd, not a fixed location — breaks VS Code extension connection #852

Closed

Description

@kishore280

The setup wizard's location picker offers two choices: "Global user config" or "Current project directory." Neither option shows the resolved path — just the abstract label. So there's no way to know which actual directory you're about to write into before confirming.

The VS Code extension spawns its ACP subprocess with cwd set to the workspace root — not wherever the wizard was originally run. If a user picks "project" while their terminal happens to be sitting somewhere else, the config lands in the wrong place, and the extension's CLI process finds no config there:

[CLI stderr] [nanocoder] ACP initialization failed: No providers configured. Run nanocoder interactively to set them up.

Symptom: webview stuck on "Loading models...", then "Failed to create ACP session."

Repro

  1. Open a terminal at some other directory (e.g. VS Code's install path).
  2. Run nanocoder, pick "Current project directory," complete setup, save.
  3. Open the actual project in VS Code, use the extension.
  4. Extension can't find the config. ACP session fails.

Root cause

source/wizards/steps/location-step.tsx computes both projectPath and globalPath, but only ever displays globalPath (and only as a note when it already exists). The "Current project directory" option itself never shows what path it resolves to.

Suggested fix

Show the resolved absolute path next to both options in the location picker, so the choice is over a real path, not an abstract category.

Activity

  1. kishore280 commented on Aug 12, 2026

    @kishore280
    ContributorAuthor

    Happy to take this if wanted — can open a PR.

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

Metadata

Metadata

Assignees

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