mirror of https://github.com/garrytan/gstack.git
On macOS/BSD, mktemp does not randomize the X's when the template has a suffix after them: 'mktemp $TMP_ROOT/codex-err-XXXXXX.txt' creates a literal codex-err-XXXXXX.txt, and any second invocation fails with 'mkstemp failed ... File exists', leaving the variable empty and breaking the stderr capture that follows. Drop the .txt suffix from the mktemp templates for TMPERR, _PROMPT_FILE, and TMPRESP in codex/SKILL.md.tmpl and the generated codex/SKILL.md. Nothing downstream depends on the extension; every use goes through the shell variable. |
||
|---|---|---|
| .. | ||
| SKILL.md | ||
| SKILL.md.tmpl | ||