Commit 695b833
fix(codex): auto-approve in full-auto so a stale-policy turn can't hang
A codex turn bakes its approvalPolicy at turn/start, so a turn begun before a
switch to full-auto (or the startup mode-sync race) could still emit a
requestApproval. Unanswered — because the UI shows full-auto and the user isn't
expecting a prompt — it blocked the turn forever: the command never completed
(its card spun "running"), and the turn never ended ("generating").
Now, when the session is full-auto, the adapter auto-approves bridged approval
requests (decision: accept), honoring the user's "no prompts" choice and
unsticking the turn. Other modes still surface the approval card.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent a3c92c2 commit 695b833
2 files changed
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
70 | 101 | | |
71 | 102 | | |
72 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
631 | 644 | | |
632 | 645 | | |
633 | 646 | | |
| |||
0 commit comments