mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-22 16:11:34 +01:00
On Codex, gstack's /review can no longer end a session with a required step skipped: the end-of-session check reads Codex's own session log and sends the agent back to finish, as it already does on Claude Code. Why: Codex users got routing and the destructive-command check in #4512, but not the /review checklist, so a review could stop after the diff read with no second-model pass. To use it: run `./setup` again and trust the new hook in Codex (`/hooks`); turn it off with `GSTACK_SKILL_CONTRACTS=off`. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#1 reader=testing Review-Finding: p1/specialist-batched#2 reader=testing
10 lines
626 B
TypeScript
Executable File
10 lines
626 B
TypeScript
Executable File
#!/usr/bin/env -S bun --no-env-file --config=/dev/null
|
|
/**
|
|
* codex-skill-contract-stop-hook — the skill-contract Stop hook on Codex (GST-3173). It is Claude Code's hook
|
|
* (hosts/claude/hooks/skill-contract-stop-hook.ts) unchanged: Codex sends the same stop_hook_active and
|
|
* last_assistant_message keys and takes the same block answer, and lib/skill-contract.ts reads Codex's rollout file,
|
|
* which it tells from a Claude Code transcript by content. Same switch (skill_contracts), deadline, records and log.
|
|
* Docs: docs/skill-routing-and-contracts.md#codex.
|
|
*/
|
|
import '../../claude/hooks/skill-contract-stop-hook.ts';
|