Repository navigation
fix(sandbox): show POSIX path in container escape hint - #114209
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 23, 2026, 1:16 PM ET / 17:16 UTC. ClawSweeper reviewWhat this changesThe PR formats home-relative sandbox escape hints with POSIX separators for container guidance and adds coverage preserving native formatting for non-home host paths. Merge readiness⛔ Blocked until real behavior proof is added - 3 items remain The focused sandbox display repair is source-correct and still needed because current main retains the Windows backslash in the container-facing hint; merge remains blocked on inspectable final-head Windows behavior proof. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherSandbox file tools resolve requested paths against host mounts and translate them to container paths. When no mount contains a path, the resolver returns diagnostic guidance pointing the operator to the container workspace. flowchart LR
A[Tool file request] --> B[Sandbox path resolver]
B --> C{Path inside a mount?}
C -->|Yes| D[Host and container mapping]
C -->|No| E[Escape diagnostic]
E --> F[Home-relative display formatting]
F --> G[Operator container-path guidance]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +3, Tests +17. Total +20 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the home-only conversion local to the sandbox diagnostic, then attach a redacted native Windows final-head trace showing the corrected escape hint. Do we have a high-confidence way to reproduce the issue? Yes, from source: on Windows, current main shortens a home path but does not convert its backslash suffix before emitting container guidance; the branch adds a focused assertion for that path. Is this the best way to solve the issue? Yes. The resolver owns this container-facing diagnostic, and the home-only condition avoids changing host path rendering or sandbox path policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b977ccb21e2b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
Co-authored-by: kevin2966n <[email protected]> Punchcard-Session: coral-summit-valley-9r
3777df7 to
3138cca
Compare
|
@clawsweeper re-review The branch was rewritten from current |
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review The updated PR body now includes an inspectable native Windows exact-head trace |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
Punchcard-Session: coral-summit-valley-9r Co-authored-by: Vincent Koc <[email protected]>
Closes #114208
What Problem This Solves
Fixes an issue where Windows users triggering a sandbox root-escape diagnostic
would see a host backslash in the container-facing home-path hint.
Why This Change Was Made
The sandbox diagnostic now converts separators only after the workspace root
has been shortened to a
~home path. Shared host-path formatting, non-homeroots, containment checks, bind behavior, configuration, SDK, and protocol
surfaces remain unchanged.
User Impact
Windows sandbox guidance now shows a usable container path such as
~/workspace-coder, while ordinary host paths retain their native format.Evidence
Native Windows controlled regression on current-main base
7941c05e44e5:the test-only change failed twice with actual
~\workspace-coder; the finaltwo-file patch passed all 13 focused tests.
Native Windows exact-head behavior trace:
The temporary proof harness called
resolveSandboxFsPathWithMountsdirectlyand was removed after the run.
Final Windows source hashes matched the published candidate files exactly.
POSIX focused and sibling coverage: 55 tests passed, with one Windows-only
test skipped.
oxfmt, targetedoxlint, andgit diff --checkpassed.Max-P1 autoreview found no actionable findings; patch-correct confidence
0.99.
The local changed gate reached core typecheck but the shared dependency tree
was stale outside this diff; exact-head hosted CI is the authoritative
typecheck result.
AI-assisted development disclosure: the maintainer rewrite and review used
Codex. The contributor is preserved as co-author.
Punchcard-Session: coral-summit-valley-9r