gstack/codex
Cathryn Lavery 8f7237a3aa Fix BSD mktemp suffix bug in codex skill temp file templates
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.
2026-07-16 14:37:00 -07:00
..
SKILL.md Fix BSD mktemp suffix bug in codex skill temp file templates 2026-07-16 14:37:00 -07:00
SKILL.md.tmpl Fix BSD mktemp suffix bug in codex skill temp file templates 2026-07-16 14:37:00 -07:00