Skip to content

chore(codex): don't let a failing sync block the agent#294

Merged
epeicher merged 1 commit into
trunkfrom
chore/codex-hook-tolerate-sync-failure
Jun 4, 2026
Merged

chore(codex): don't let a failing sync block the agent#294
epeicher merged 1 commit into
trunkfrom
chore/codex-hook-tolerate-sync-failure

Conversation

@epeicher
Copy link
Copy Markdown
Collaborator

@epeicher epeicher commented Jun 4, 2026

Summary

The Codex Stop hook runs bin/sync-to-wp-develop.sh after each turn. The script uses set -euo pipefail, so a build or rsync failure exits non-zero and surfaces as a hook error that can interrupt the agent.

Appending || true forces a 0 exit, so a failed sync is discarded and never stops the agent. Output is left un-redirected, so it stays visible.

Open WordPress Playground Preview

The Codex Stop hook runs bin/sync-to-wp-develop.sh after each turn. The
script uses set -euo pipefail, so a build or rsync failure exits
non-zero and surfaces as a hook error. Append || true so a failed sync
is discarded and never stops the agent. Output is left visible.
@epeicher epeicher merged commit d1f5c81 into trunk Jun 4, 2026
5 checks passed
@epeicher epeicher deleted the chore/codex-hook-tolerate-sync-failure branch June 4, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant