port: fix the container exiting instead of starting the agent
`loose` exited 126 with "File name too long": the entrypoint ended in `exec "$@"`, so the whole loop-task.md prompt was handed to exec as a command and the markdown was tried as a filename. The launcher was modelled on the RE container's but the entrypoint was written fresh and simpler, and it left out the half that matters -- the block that turns a `/loop ...` argument into a Claude Code invocation. Ported it over, with the two gates that make an unattended run possible: seeding ~/.claude.json so the first-run wizard does not stop on the theme picker, and claude-autonomous, which answers the Bypass Permissions disclaimer that has no config key to skip it. Also mounts the host's Claude credentials, which the container had no way to reach, and passes SYLPH_AUTONOMOUS=1 from `loose`. Verified: container stays up, display :97 ready, /reborn mounted read-only, Remote Control registered, Claude Code started in /work. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1217
Cargo.lock
generated
Normal file
1217
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user