mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 21:59:38 +01:00
Two findings from the Greptile pass on PAPA-316: 1. sandbox-install-command: the export PATH and PAPERCLIP_NPM_BOOTSTRAPPED=1 were separated from the curl && tar && rm chain by ; so the bootstrap marker would be set even if the tarball download or extraction failed, leading to a misleading "npm: command not found" error on the install step instead of surfacing the original curl/tar failure. Switch those delimiters to && so the marker is only set after a successful bootstrap. 2. opencode-local: $HOME/.local/bin is on the default PATH on the exe.dev image but not universally on bare Debian/Ubuntu non-login sh -c shells. Prefer /usr/local/bin (always on the default PATH on Linux) when running as root or with passwordless sudo, and only fall back to $HOME/.local/bin when neither is available. Mirrors the sudo-aware pattern that buildSandboxNpmInstallCommand already uses.