v2.5 INSTALL.ts generateSettingsJson() has drifted from the shipped bundle
Summary
Releases/v2.5/.claude/INSTALL.ts generates settings.json from scratch using hardcoded defaults (generateSettingsJson(), line 291). These defaults have drifted from the working installation that ships alongside it in Releases/v2.5/.claude/settings.json.
Since INSTALL.md documents that the bundle works immediately after cp -r .claude ~/ (Method 3: "Just Use It"), the bundle's settings.json is the source of truth. Running the wizard — the recommended next step — should only personalise user-specific fields (name, voice, paths) while preserving the bundle's defaults for everything else.
Instead, the wizard overwrites the entire file with its own parallel set of defaults, some of which are stale or different.
Related: #612 (the version string subset of this issue, already fixed).
Root Cause
generateSettingsJson() (line 291) does not read the existing settings.json before writing. It builds a complete object from hardcoded values and writes it via writeFileSync (line 553). There is no merge, no read-before-write, and no detection of installed software.
The InstallConfig interface (line 48) only captures user-provided values (name, AI name, voice, paths). The techStack and _docs sections are entirely hardcoded with no user input.
Specific Mismatches
File: Releases/v2.5/.claude/INSTALL.ts — function generateSettingsJson() (line 291)
Reference: Releases/v2.5/.claude/settings.json (the shipped working installation)
| Line | Field | Bundle ships | Wizard writes | Used by |
|---|---|---|---|---|
| 336 | techStack.browser |
(absent — falls back to Dia) | "arc" |
skills/Browser/Tools/Browse.ts:53 — controls which app opens URLs via open -a |
| 337 | techStack.terminal |
"Kitty" |
"terminal" |
AI context only — steers terminal-specific advice |
| 339 | techStack.pythonPackageManager |
"uv" |
"pip" |
AI context only — steers pip vs uv suggestions |
| 341 | techStack.devServerPort |
(absent) | 5173 |
Defined in Browse.ts:37 type but not actively consumed |
| 404-413 | _docs |
Detailed (includes _env section) |
Shorter (drops _env) |
Human-readable inline docs only |
Note: daidentity.fullName (line 313) differs too — "${name} - Personal AI" vs the bundle's "PAI - Personal AI Infrastructure" — but this is legitimate wizard personalisation.
Impact
techStack.browseris the only field with a runtime code path (Browse.ts:openUrl()runsopen -a <browser>). Wizard writes"arc", but if the bundle's intent is to rely on the Dia fallback, the wizard injects an outdated preference.techStack.terminalandtechStack.pythonPackageManageraffect AI behaviour — the AI reads these to tailor commands (e.g., suggestingpip installinstead ofuv pip install).techStack.devServerPortand_docshave no runtime impact.
Suggested Fix
A) Minimal — align the hardcoded values with the bundle:
Update lines 335-341 and 404-413 in generateSettingsJson() to match settings.json.
B) Structural — read bundle defaults, overlay user values:
Have the wizard read the existing settings.json, then only overwrite the fields it collected from the user (name, AI name, voice, paths, catchphrase). This prevents future drift entirely.
C) Smart defaults — detect and propose tooling at install time: Cross-platform defaults for browser, terminal, and package manager are inherently difficult — there is no universal right answer. However, the wizard already runs interactively at install time, which makes it the ideal place to solve this:
- Detect installed tools — e.g.,
which uv,which pip, check for/Applications/Arc.app,/Applications/Dia.app,kitty --version, etc. Per-platform detection is straightforward since the wizard knows the OS at runtime. - Propose per-platform defaults — e.g., default to Terminal.app on macOS, GNOME Terminal on Linux; default to whichever Python package manager is found; default to whichever Chromium browser is installed.
- Ask the user when ambiguous — if multiple options are detected (e.g., both
uvandpipexist), present a choice. If none are found, offer to skip or suggest installation. - Leave absent when not detected — rather than hardcoding a guess, omit the field entirely so code fallbacks (like
Browse.tsfalling back to"Dia") work as designed.
This approach would make techStack values accurate for each user's environment without requiring cross-platform defaults in the static bundle.
Thanks for the analysis! The v2.5 installer drift is no longer applicable — v3.0 (now released) has a completely rewritten installer. Please upgrade to v3.0.