Description
When testing remote devcontainer orchestration in a mock-up folder, the devcontainer initializes successfully but fails at postAttachCommand with a runtime error from crun.
Part of PR #166 review and should be tracked under parent issue #70.
Steps to Reproduce
- Open a generated/mock-up workspace (e.g.
/home/carlosvigo/Documents/vigOS/tmp) in devcontainer.
- Let
initializeCommand complete successfully.
- Wait for
postAttachCommand execution.
Expected Behavior
postAttachCommand runs successfully and completes post-attach setup.
Actual Behavior
The attach phase fails with:
Error: crun: getcwd: No such file or directory: OCI runtime attempted to invoke a command that was not found
Terminal exits immediately after the failed post-attach step.
Environment
- OS: Ubuntu 24.04
- Container Runtime: Podman rootless (Linux)
- Image Version/Tag: dev
- Architecture: AMD64
Additional Context
Observed during validation of PR #166 (feature/70-remote-devc-orchestration) while testing in a mock-up folder where workspace path resolution appears inconsistent during attach.
Possible Solution
- Make
postAttachCommand robust to workspace cwd/path mismatch in generated/mock-up workspaces.
- Prefer invoking script through a shell command that does not depend on runtime cwd state.
- Add regression coverage for attach flow in mock-up folders.
Changelog Category
Fixed
Acceptance Criteria
Description
When testing remote devcontainer orchestration in a mock-up folder, the devcontainer initializes successfully but fails at
postAttachCommandwith a runtime error fromcrun.Part of PR #166 review and should be tracked under parent issue #70.
Steps to Reproduce
/home/carlosvigo/Documents/vigOS/tmp) in devcontainer.initializeCommandcomplete successfully.postAttachCommandexecution.Expected Behavior
postAttachCommandruns successfully and completes post-attach setup.Actual Behavior
The attach phase fails with:
Error: crun: getcwd: No such file or directory: OCI runtime attempted to invoke a command that was not foundTerminal exits immediately after the failed post-attach step.
Environment
Additional Context
Observed during validation of PR #166 (
feature/70-remote-devc-orchestration) while testing in a mock-up folder where workspace path resolution appears inconsistent during attach.Possible Solution
postAttachCommandrobust to workspace cwd/path mismatch in generated/mock-up workspaces.Changelog Category
Fixed
Acceptance Criteria
postAttachCommandsucceeds in mock-up workspace.cursor/rules/tdd.mdc)