Three tickets billed today: #32225 Sombra ($525 onsite), #32229 Mineralogical Record ($262.50 emergency), #32214 Cascades Entra (33.5 hrs project labor at $0 debits prepaid block). Hit a real incident on Sombra: rogue comment posted with content from a different ticket because /tmp resolves differently in the Write tool (C:/tmp/) vs Git Bash (%LOCALAPPDATA%/Temp/) on Windows. Howard manually deleted from GUI; subsequent posts used heredoc to avoid the file handoff entirely. Root cause documented in feedback_tmp_path_windows.md so future sessions don't trip the same wire. Scheduled remote agent trig_01CAfvwoQ4nLcKEqbU4UQmSa to update the syncro skill examples 2026-05-02.
2.2 KiB
name, description, type
| name | description | type |
|---|---|---|
| /tmp resolves to two different paths on Windows | On Windows machines (Howard's, etc.), the Write tool and Git Bash resolve `/tmp` to different real directories. Never use `/tmp/<file>` for handing JSON payloads from Write to curl — they will not see the same file. | feedback |
On Windows under this Claude Code harness:
- Write tool resolves
/tmp/foo.json→C:\tmp\foo.json - Git Bash + curl + cat resolve
/tmp/foo.json→C:\Users\<user>\AppData\Local\Temp\foo.json
These are two different real directories. Write reports "File created successfully at: /tmp/foo.json" but the bytes land in C:\tmp\, while bash commands later read a stale (or missing) file from C:\Users\<user>\AppData\Local\Temp\.
Why: Git Bash's MSYS layer mounts /tmp to %TEMP%. The Claude Code Write tool resolves Unix-style absolute paths against the Windows root instead.
How to apply: When passing a JSON payload from Write to a Bash curl call (Syncro, GitHub, any REST API), do ONE of the following — never use /tmp/:
-
Heredoc inline in curl (preferred for short payloads):
curl -s -X POST "$URL" -H "Content-Type: application/json" -d @- <<'JSON' {"subject": "...", "body": "..."} JSON -
Write to a workspace path both tools agree on, e.g. under the repo:
C:\claudetools\.claude\tmp\payload.json(gitignored if needed). Both Write and Bash will hit the same file there.
-
If you must use a temp dir, use
$TEMP/$TMPDIRin bash, and write the file via Bash heredoc rather than the Write tool.
Real incident — 2026-05-01 ticket #32225 (Sombra Residential): Wrote a Sombra resolution payload to /tmp/comment_payload.json via Write tool. Curl read a stale Cascades/Karen Rossini payload from yesterday's session at the bash-side /tmp. POSTed the wrong comment to the Sombra ticket — comment #408671678 had completely unrelated content and required manual GUI deletion (Syncro has no API delete for comments).
Note for skill authors: The syncro skill examples use /tmp/ paths. Those examples are unsafe on Windows and need to be updated to use heredoc or workspace paths.