Skip to content

Commit fe4fff4

Browse files
stefandemlclaude
andauthored
fix(profile): allow Claude Code UID-suffixed tmp dirs and skills (#12)
* fix(profile): allow Claude Code UID-suffixed tmp dirs and skills Claude Code writes session data to /private/tmp/claude-501/ (with UID suffix) rather than /private/tmp/claude/. The previous literal path caused sandbox denials on file-write-create, making Claude hang when executing API calls (e.g. `sx online claude -- claude -p "prompt"`). Changes: - Use glob /private/tmp/claude* to match UID-suffixed directories - Add ~/.agents to allow_read for Claude skills/plugins access Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix(profile): remove ~/.agents from claude profile Not directly related to Claude Code — addressing PR review feedback. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9023f07 commit fe4fff4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

profiles/claude.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ allow_read = [
99
"~/.local/share/claude",
1010
"~/.local/bin/claude",
1111
"~/.CFUserTextEncoding",
12-
"/private/tmp/claude",
12+
"/private/tmp/claude*", # claude-UID directories (e.g. claude-501)
1313
"/private/tmp/zsh*", # When claude use zsh in bash it create dynamic tmp file
1414
]
1515
allow_write = [
1616
"~/.claude",
1717
"~/.claude.json",
1818
"~/Library/Caches/claude-cli-nodejs/",
19-
"/private/tmp/claude",
19+
"/private/tmp/claude*", # claude-UID directories (e.g. claude-501)
2020
"/private/tmp/zsh*", # When claude use zsh in bash it create dynamic tmp file
2121
]
2222

0 commit comments

Comments
 (0)