Skip to content

fix: make installer idempotent — re-run to update/repair#79

Merged
Lightheartdevs merged 1 commit intomainfrom
fix/idempotent-installer
Mar 9, 2026
Merged

fix: make installer idempotent — re-run to update/repair#79
Lightheartdevs merged 1 commit intomainfrom
fix/idempotent-installer

Conversation

@Lightheartdevs
Copy link
Copy Markdown
Collaborator

Summary

  • Remove the existing-installation gate in 01-preflight.sh that bailed with "Installation already exists. Use --force to overwrite." The installer is already designed for updates: secrets merge via _env_get, models skip if present, Docker recreates containers.
  • Add .env preservation to the Windows env-generator.ps1 (matching Linux _env_get logic) so re-installs reuse existing secrets and user-entered API keys instead of regenerating everything.

Broken build? Just re-run the installer.

Test plan

  • Run installer on fresh system — generates new secrets
  • Re-run installer on existing install — preserves secrets, updates files
  • Verify API keys (ANTHROPIC_API_KEY, etc.) survive re-install

🤖 Generated with Claude Code

Remove the existing-installation gate in 01-preflight.sh that bailed
with "Installation already exists. Use --force to overwrite." The
installer is already designed for updates: secrets merge via _env_get,
models skip if present, Docker recreates containers.

Also add .env preservation to the Windows env-generator (matching
Linux _env_get logic) so re-installs reuse existing secrets and
user-entered API keys instead of regenerating everything.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Lightheartdevs Lightheartdevs merged commit 59ce191 into main Mar 9, 2026
4 of 15 checks passed
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