fix: ensure /opt/venv/bin is in PATH for all shells #32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-venv-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes commune/bloc#3
Problem
The Dockerfile sets
ENV PATH="/opt/venv/bin:$PATH"which works for directdocker runcommands, but OpenClaw's container orchestration constructs a custom PATH with user-specific directories (/home/agent/.local/bin, etc.) that doesn't preserve the/opt/venv/binprefix from the image ENV.This means
blocand other venv-installed tools aren't accessible in agent shells even though they're installed in the image.Solution
Add PATH update to
agent-config.sh(sourced on every shell startup via/etc/profile.d/andBASH_ENV). Now/opt/venv/binis explicitly prepended to PATH in all shells.Testing
After image rebuild:
LGTM