Skip to content

[codex] Stop replanning after blocked approvals#12

Merged
Anmolnoor merged 1 commit into
mainfrom
codex/stop-blocked-approval-retries
Jun 1, 2026
Merged

[codex] Stop replanning after blocked approvals#12
Anmolnoor merged 1 commit into
mainfrom
codex/stop-blocked-approval-retries

Conversation

@Anmolnoor
Copy link
Copy Markdown
Owner

Summary

  • Stop the orchestrator when an approval-denied or not-approved action is blocked.
  • Short-circuit remaining same-plan actions after terminal blocked, pending approval, awaiting input, or fatal results.
  • Simplify live-turn collapsed status labels.
  • Add regression coverage for denied approvals so the planner cannot retry into fresh directories.

Root Cause

Denied approvals were recorded as BLOCKED, but the replan loop only treated pending approval, awaiting input, and fatal failures as terminal. The planner could interpret the denial as ordinary feedback and start the same task again.

Validation

  • ./scripts/uv run pytest
  • ./scripts/uv run ruff check src tests
  • ./scripts/uv run ruff format --check src tests

@Anmolnoor Anmolnoor marked this pull request as ready for review June 1, 2026 20:46
@Anmolnoor Anmolnoor merged commit 626490a into main Jun 1, 2026
2 checks passed
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