Skip to content

Fix glob-suffixed allowWrite paths silently dropped in wrapWithSandbox#128

Open
wjordan wants to merge 1 commit intoanthropic-experimental:mainfrom
wjordan:fix-strip-glob-suffix-in-wrapWithSandbox
Open

Fix glob-suffixed allowWrite paths silently dropped in wrapWithSandbox#128
wjordan wants to merge 1 commit intoanthropic-experimental:mainfrom
wjordan:fix-strip-glob-suffix-in-wrapWithSandbox

Conversation

@wjordan
Copy link
Copy Markdown

@wjordan wjordan commented Feb 10, 2026

wrapWithSandbox() passed raw glob paths (e.g. /path/**) straight to generateFilesystemArgs(), where existsSync() on the literal glob path returned false, silently dropping the write mount.

getFsWriteConfig() already stripped these correctly via removeTrailingGlobSuffix(), creating a discrepancy between the reported config and actual sandbox mounts.

Apply the same removeTrailingGlobSuffix() + Linux glob filtering in wrapWithSandbox() to match getFsWriteConfig().

  wrapWithSandbox() passed raw glob paths (e.g. /path/**) straight to
  generateFilesystemArgs(), where existsSync() on the literal glob path
  returned false, silently dropping the write mount. getFsWriteConfig()
  already stripped these correctly via removeTrailingGlobSuffix(), creating
  a discrepancy between the reported config and actual sandbox mounts.

  Apply the same removeTrailingGlobSuffix() + Linux glob filtering in
  wrapWithSandbox() to match getFsWriteConfig().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant