Repository navigation
Fix c2w browser image CMD (pasclaw not found — login shell reset PATH) - #186
Merged
Merged
Conversation
The derived browser image used 'sh -lc' — a login shell re-reads /etc/profile and resets PATH, dropping /opt/pasclaw, so onboard/agent were 'not found' and the container's command failed immediately. Use a non-login 'sh -c' with absolute /opt/pasclaw/pasclaw paths so it resolves regardless of PATH (verified: the image now starts 'pasclaw onboard').
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix: c2w browser image command was "pasclaw not found"
Follow-up to #185. The derived browser image (
pasclaw:c2w-browser, built bybrowser/build.sh) set its command with a login shell:sh -lre-reads/etc/profile, which resetsPATHto the system defaultand drops
/opt/pasclaw(where the binary lives). So the container's commandfailed immediately with
/bin/sh: 1: pasclaw: not found— onboarding/agentnever started (and in the browser the booted guest had no working command).
Fix
Non-login
sh -c+ absolute paths, so it resolves regardless ofPATH:Verified
Reproduced and confirmed in Docker against the existing
pasclaw:c2wimage:PATH=/usr/local/bin:/usr/bin:/bin:…→pasclawNOTFOUNDPATH=/opt/pasclaw:…→ foundConsumers must rebuild (
make browser) soc2w --to-jsre-bakes the correctedcommand into the wasm; the emulator layers are Docker-cached so it's fast.
https://claude.ai/code/session_01LGQKz579j1ZnDRwmr6h1V6
Generated by Claude Code