altimate-code
altimate-code copied to clipboard
altimate-engine not found when user's project has .venv in cwd
Problem
When a user runs altimate-code from a directory that contains its own .venv (any Python project), the bridge fails to find altimate-engine because resolvePython() picks the CWD's .venv/bin/python before checking the managed engine venv where ensureEngine() actually installs the package.
Root Cause
In packages/opencode/src/altimate/bridge/client.ts, resolvePython() checks for Python interpreters in this order:
OPENCODE_PYTHONenv var- Local dev
.venv(next to altimate-engine package) .venvin CWD ← picks this up from user's project- Managed engine venv ← where altimate-engine is actually installed
python3fallback
Step 3 shadows step 4, so the bridge spawns a Python that doesn't have altimate-engine.
Expected Behavior
The managed engine venv (where ensureEngine() installs altimate-engine) should be checked before the CWD .venv.