Skip to content

v0.14.2

Choose a tag to compare

@github-actions github-actions released this 30 Nov 13:40
· 16 commits to main since this release
0b7661b

Patch Changes

  • 5710cf8: A {{KEY}} placeholder named after an Object.prototype key ({{constructor}}, {{toString}}, {{hasOwnProperty}}, {{__proto__}}) now counts as missing unless you pass it in promptArgs. Before, it was filled with the inherited value, so the agent got function Object() { [native code] } in its prompt and nothing complained. Now run() fails with "has no matching value in promptArgs", like any other missing key, and interactive() asks for it. Thanks to @0x2AI for the report.
  • 6d416c6: Security: sandboxes in bind-mount worktree mode can no longer modify other worktrees' git admin files. Thanks to @arun02139.
  • 7864a7f: seatbelt() now sets CLAUDE_CODE_TMPDIR to its private temp dir, so claudeCode() no longer exits on its first run with EPERM: operation not permitted, open '/tmp/claude-<uid>'. Claude Code ignores TMPDIR, and Seatbelt's profile doesn't let it write /tmp. A CLAUDE_CODE_TMPDIR set in the agent's, the provider's or .sandcastle/.env's env still wins. Thanks to @andi for the report and the workaround.
  • ecee3db: seatbelt() now finds the developer dir on a Mac where xcode-select was never set, so /usr/bin/git no longer fails at sandbox setup with xcrun: error: unable to load libxcrun. It takes DEVELOPER_DIR from the sandbox's env, then /var/db/xcode_select_link, then xcode-select -p, and makes that dir readable (an Xcode.app's whole Contents, which Xcode's shims need). It also sets xcrun_db to a file in the sandbox's private temp dir, so the shims stop printing couldn't create cache file '…/xcrun_db-…' on every call; a xcrun_db set in the env still wins. Thanks to @jflygare for the report and the diagnosis.
  • bde710d: On Windows without HOME set (cmd and PowerShell don't set it), agent sessions are now saved to and resumed from the user's real home folder. Before, Sandcastle used a literal ~ folder relative to the current directory, so sessions landed in ~\.claude\projects\... inside the repo. The home folder now comes from os.homedir(), which reads HOME on macOS and Linux as before, and USERPROFILE on Windows. Thanks to @0x2AI for the report and the fix.
  • 2269011: A streamed exec (onLine) now ends a stdout line only at \n, dropping one \r before it, as JSONL does. It used Node's readline, which also ends a line at a lone \r and, from Node 24 on, at U+2028 and U+2029. JSON allows those two characters unescaped inside a string, so an agent stream frame holding one was cut in two, and the run failed with errors like Unterminated string in JSON. This affected noSandbox(), bwrap(), seatbelt(), docker() and podman(). Thanks to @maximedupre for the report.
  • fc8a22e: On Windows, Sandcastle no longer deletes a live worktree when it starts from a repo path with a lowercase drive letter (c:\repo, which cmd.exe's cd /d c:\repo gives you). git worktree list prints the drive letter upper case, so the cleanup that runs at the start of run(), createSandbox(), interactive() and createWorktree() failed to match the live worktrees of other runs, took them for leftovers and removed them. Drive letters now compare case-insensitively, which also fixes reusing a branch's worktree from such a path. Thanks to @0x2AI for the report, the repro and the fix.
  • 9ba134e: Refuse a branch whose worktree folder another branch already has, instead of silently running on that other branch. feature/x and feature-x both map to .sandcastle/worktrees/feature-x/; before, a run on feature-x reused feature/x's worktree, so the agent committed to feature/x and feature-x was never created. Now that run fails with an error naming both branches. Thanks to @0x2AI for the report and the repro.