#14810: fix:sandbox file path Inconsistency
stale
size: M
Cluster:
Sandbox Path Management Fixes
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR adds a sandbox path resolver to translate container paths (e.g. `/workspace/...`) into host workspace paths, and wires it into `runMessageAction` so outbound actions can accept sandbox-style file parameters (`filePath`, `path`, `media`). It also exports the new resolver utilities via the plugin SDK and adds unit tests for the resolver behavior.
<h3>Confidence Score: 3/5</h3>
- This PR is close, but has at least one definite TypeScript test failure and a concrete path-resolution logic bug that can mis-rewrite certain absolute paths.
- Core change is small and localized, but the new test file uses an invalid `SandboxWorkspaceInfo` shape (will not typecheck) and the resolver’s `startsWith` check will incorrectly rewrite paths that share a prefix with the container workdir (e.g. `/workspace2/...`).
- src/infra/outbound/sandbox-path-resolver.ts, src/infra/outbound/sandbox-path-resolver.test.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#17402: fix:sandbox path issue
by luckylhb90 · 2026-02-15
84.0%
#4226: Fix/sandbox containerworkdir rw access
by ozgur-polat · 2026-01-29
80.6%
#11820: fix(sandbox): remap container paths in sandboxed file tools
by steflsd · 2026-02-08
80.5%
#16509: Fix sandbox path validation rejecting Docker bind mount paths
by Clawborn · 2026-02-14
78.3%
#3967: fix(sandbox): correct workspace prompt path
by sweepies · 2026-01-29
78.2%
#7826: feat(sandbox): add Docker Sandboxes (microVM) as alternative backend
by HODL-Community · 2026-02-03
77.8%
#4467: fix: DEFAULT_SANDBOX_WORKSPACE_ROOT respects STATE_DIR
by Aphroq · 2026-01-30
77.3%
#16922: fix: remove incorrect sandbox file tool guidance
by carrotRakko · 2026-02-15
77.1%
#21665: fix(sandbox): add /home and /Users to bind-mount denylist
by AI-Reviewer-QS · 2026-02-20
76.3%
#3907: fix(sandbox): use absolute /bin/sh path + add allowedReadPaths config
by pvoo · 2026-01-29
76.2%