codex - 💡(How to fix) Fix /goal should treat repeated blocking conditions as completion criteria

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

When /goal automatically continues and repeatedly hits the same blocking condition, it can keep re-entering the same state without making progress. The agent may keep restating the same blocker, while the goal remains active because the original objective is not finished.

Fix Action

Workaround

Add a rule like this to AGENTS.md:

When a goal automatically continues, list the blocking conditions. When creating or describing a long-running goal, include a completion criterion that treats the same blocking condition repeating twice as goal completion.

RAW_BUFFERClick to expand / collapse

Problem

When /goal automatically continues and repeatedly hits the same blocking condition, it can keep re-entering the same state without making progress. The agent may keep restating the same blocker, while the goal remains active because the original objective is not finished.

Workaround

Add a rule like this to AGENTS.md:

When a goal automatically continues, list the blocking conditions. When creating or describing a long-running goal, include a completion criterion that treats the same blocking condition repeating twice as goal completion.

Why this works

The important part is making the repeated blocker part of the goal's completion criteria up front. Then, when the same blocker appears twice, marking the goal as complete is no longer pretending the blocked action succeeded. It means the goal reached its defined stop condition: the same blocking condition repeated and was recorded.

This avoids an automatic continuation loop while preserving the blocker reason for the user to resolve later.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix /goal should treat repeated blocking conditions as completion criteria