Commit abab31f
fix(permission): honor continue_loop_on_deny for doom_loop rejections
doom_loop拒否時の処理をfailToolCall経由に統一し、既存の権限拒否ハンドラと
挙動を揃える。これにより以下を解決する:
- ctx.blocked のハードコード(true)をやめ、ctx.shouldBreak
(continue_loop_on_deny設定)を尊重する
- 拒否されたツールコールをerror状態へ遷移させる(cleanup任せにしない)
- DeniedError経由の拒否でもループを停止する(failToolCallの判定に追加)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 0efb8db commit abab31f
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
209 | 213 | | |
210 | 214 | | |
211 | 215 | | |
| |||
451 | 455 | | |
452 | 456 | | |
453 | 457 | | |
454 | | - | |
455 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
456 | 462 | | |
457 | | - | |
| 463 | + | |
458 | 464 | | |
459 | 465 | | |
460 | | - | |
| 466 | + | |
461 | 467 | | |
462 | 468 | | |
463 | 469 | | |
| |||
0 commit comments