mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-25 09:31:43 +01:00
Codex skills no longer stop on temp-file cleanup, which Codex refuses as rm -f (GST-3364) (#4612)
Skills that clean up temp files now run on Codex: Codex CLI refuses any `rm` with a force flag, and 67 of the 1,239 shell blocks in gstack's Codex skills used one. This unblocks gstack on Codex (office-hours, review, ship, the plan reviews, spec and gstack-upgrade all hit it). Nothing to do after merging. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#1 reader=state-machines Review-Finding: gstack-upgrade/SKILL.md.tmpl:363:posix-sh-brace-expansion reader=core
This commit is contained in:
1 parent
43c9c201e3
commit
bd77c8ccaa
86 files changed
+337
-204
No files matched your search
@@ -577,7 +577,7 @@ SLUG="setup-gbrain-smoke-test-$(date +%s)"
|
||||
SMOKE_PAGE=$(mktemp "${TMPDIR:-/tmp}/gstack-gbrain-smoke.XXXXXX")
|
||||
echo "Set up on $(date). Smoke test for /setup-gbrain." > "$SMOKE_PAGE"
|
||||
gbrain put "$SLUG" < "$SMOKE_PAGE"; PUT_RC=$?
|
||||
rm -f "$SMOKE_PAGE"
|
||||
rm "$SMOKE_PAGE"
|
||||
[ "$PUT_RC" -eq 0 ] && gbrain search "smoke test" | grep -i "$SLUG"
|
||||
```
|
||||
|
||||
@@ -829,6 +829,6 @@ invocation.
|
||||
fi
|
||||
```
|
||||
|
||||
Release it (`rm -rf`, not rmdir) on normal exit AND in the SIGINT trap.
|
||||
Release it (`rm -r`, not rmdir) on normal exit AND in the SIGINT trap.
|
||||
- **CLAUDE.md is the audit trail.** Always update it in Step 8 after a
|
||||
successful setup.
|
||||
@@ -483,7 +483,7 @@ SLUG="setup-gbrain-smoke-test-$(date +%s)"
|
||||
SMOKE_PAGE=$(mktemp "${TMPDIR:-/tmp}/gstack-gbrain-smoke.XXXXXX")
|
||||
echo "Set up on $(date). Smoke test for /setup-gbrain." > "$SMOKE_PAGE"
|
||||
gbrain put "$SLUG" < "$SMOKE_PAGE"; PUT_RC=$?
|
||||
rm -f "$SMOKE_PAGE"
|
||||
rm "$SMOKE_PAGE"
|
||||
[ "$PUT_RC" -eq 0 ] && gbrain search "smoke test" | grep -i "$SLUG"
|
||||
```
|
||||
|
||||
@@ -735,6 +735,6 @@ invocation.
|
||||
fi
|
||||
```
|
||||
|
||||
Release it (`rm -rf`, not rmdir) on normal exit AND in the SIGINT trap.
|
||||
Release it (`rm -r`, not rmdir) on normal exit AND in the SIGINT trap.
|
||||
- **CLAUDE.md is the audit trail.** Always update it in Step 8 after a
|
||||
successful setup.
|
||||
@@ -228,7 +228,7 @@ if [ -n "${VOYAGE_API_KEY:-}" ]; then
|
||||
fi
|
||||
if ! gbrain init --pglite --json "$@"; then
|
||||
if [ -n "${BACKUP:-}" ] && [ -f "$BACKUP" ]; then mv "$BACKUP" "$HOME/.gbrain/config.json"; fi
|
||||
echo "gbrain init failed. Existing config (if any) was restored. PGLite at ~/.gbrain/pglite/ may be in a partial state — \`rm -rf ~/.gbrain/pglite\` to reset." >&2
|
||||
echo "gbrain init failed. Existing config (if any) was restored. PGLite at ~/.gbrain/pglite/ may be in a partial state — \`rm -r ~/.gbrain/pglite\` to reset." >&2
|
||||
echo "Continuing setup without local code search; you can re-run /setup-gbrain to retry." >&2
|
||||
fi
|
||||
```
|
||||
|
||||
@@ -226,7 +226,7 @@ if [ -n "${VOYAGE_API_KEY:-}" ]; then
|
||||
fi
|
||||
if ! gbrain init --pglite --json "$@"; then
|
||||
if [ -n "${BACKUP:-}" ] && [ -f "$BACKUP" ]; then mv "$BACKUP" "$HOME/.gbrain/config.json"; fi
|
||||
echo "gbrain init failed. Existing config (if any) was restored. PGLite at ~/.gbrain/pglite/ may be in a partial state — \`rm -rf ~/.gbrain/pglite\` to reset." >&2
|
||||
echo "gbrain init failed. Existing config (if any) was restored. PGLite at ~/.gbrain/pglite/ may be in a partial state — \`rm -r ~/.gbrain/pglite\` to reset." >&2
|
||||
echo "Continuing setup without local code search; you can re-run /setup-gbrain to retry." >&2
|
||||
fi
|
||||
```
|
||||
|
||||
@@ -57,7 +57,7 @@ if ! gbrain init --pglite --json "$@"; then
|
||||
# Restore on failure
|
||||
mv "$BACKUP" "$HOME/.gbrain/config.json"
|
||||
echo "gbrain init failed. Your previous config was restored at $HOME/.gbrain/config.json." >&2
|
||||
echo "PGLite directory at ~/.gbrain/pglite/ may be in a partial state — \`rm -rf ~/.gbrain/pglite\` if needed before retrying." >&2
|
||||
echo "PGLite directory at ~/.gbrain/pglite/ may be in a partial state — \`rm -r ~/.gbrain/pglite\` if needed before retrying." >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "Switched to local PGLite. Previous config saved at $BACKUP — review before deleting."
|
||||
|
||||
@@ -55,7 +55,7 @@ if ! gbrain init --pglite --json "$@"; then
|
||||
# Restore on failure
|
||||
mv "$BACKUP" "$HOME/.gbrain/config.json"
|
||||
echo "gbrain init failed. Your previous config was restored at $HOME/.gbrain/config.json." >&2
|
||||
echo "PGLite directory at ~/.gbrain/pglite/ may be in a partial state — \`rm -rf ~/.gbrain/pglite\` if needed before retrying." >&2
|
||||
echo "PGLite directory at ~/.gbrain/pglite/ may be in a partial state — \`rm -r ~/.gbrain/pglite\` if needed before retrying." >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "Switched to local PGLite. Previous config saved at $BACKUP — review before deleting."
|
||||
|
||||
Reference in new issue
Block a user