Skip to content

fix: add --clear flag to uv venv to prevent re-run failures#1

Open
hakanensari wants to merge 1 commit intoPerIPan:mainfrom
hakanensari:fix/venv-setup-clear
Open

fix: add --clear flag to uv venv to prevent re-run failures#1
hakanensari wants to merge 1 commit intoPerIPan:mainfrom
hakanensari:fix/venv-setup-clear

Conversation

@hakanensari
Copy link

Summary

  • When setup runs a second time (app relaunch or resetAndRerun), uv venv fails because the venv directory already exists
  • This prevents .setup-complete from being written, so the Python server never starts
  • Adding --clear tells uv to replace an existing venv instead of erroring out

Test plan

  • Delete ~/Library/Application Support/ClaudeWhisperer/.setup-complete and relaunch — setup should complete successfully
  • Verify the Python server starts (health check at http://127.0.0.1:8000/v1/models)

When setup runs a second time (e.g. app relaunch or resetAndRerun),
`uv venv` fails because the venv directory already exists. This
prevents .setup-complete from being written, so the Python server
never starts. The --clear flag tells uv to replace an existing venv
instead of erroring out.
Copilot AI review requested due to automatic review settings March 10, 2026 10:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where re-running the Python environment setup (e.g., on app relaunch or via resetAndRerun) would fail because uv venv errors out when the target virtual environment directory already exists. The --clear flag tells uv to replace an existing venv instead of failing.

Changes:

  • Added --clear flag to the uv venv command in SetupManager.runFirstLaunchSetup so that re-creating the virtual environment succeeds even if the venv directory already exists.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

PerIPan added a commit that referenced this pull request Mar 10, 2026
Rename all refs, bundle ID, App Support path, source dir.
Apply PR #1 (uv venv --clear), PR #4 (plain Enter, TTS vol boost,
auto-submit always fires), PR #5 (mktemp hardening).
Fix .gitignore to track source files.
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.

2 participants