when bash runs in @rivet-dev/agent-os-posix under secure-exec, pwd can report the expected worktree cwd while spawned commands still resolve relative paths incorrectly. in the repro at https://github.com/bdsqqq/agent-os-posix-path-repro, cd <worktree> && pwd && cat note.txt prints the worktree path and then fails cat: note.txt: No such file or directory, while cat /absolute/path/to/note.txt succeeds. reproduced on @rivet-dev/agent-os-posix 0.1.0 and 0.1.1.
when
bashruns in@rivet-dev/agent-os-posixundersecure-exec,pwdcan report the expected worktree cwd while spawned commands still resolve relative paths incorrectly. in the repro at https://github.com/bdsqqq/agent-os-posix-path-repro,cd <worktree> && pwd && cat note.txtprints the worktree path and then failscat: note.txt: No such file or directory, whilecat /absolute/path/to/note.txtsucceeds. reproduced on@rivet-dev/agent-os-posix0.1.0and0.1.1.