mirror of
https://github.com/affaan-m/ECC.git
synced 2026-12-06 23:24:01 +09:00
A first-touch denial marks its file checked so the retry passes, which also let the other edits to that file in the same parallel batch apply and left the file half-edited (#3136 only warned about this). When the denied call's own tool_use_id is found in the transcript, the denial now records the batch (assistant message id) for that file in the same state write. A later Edit/Write/MultiEdit/NotebookEdit of the file from that batch is denied with a message that says to resend every edit with the retry. Calls from any other message pass, including the retry. There is no newest-message fallback, so a guessed batch can never deny the retry; without a located batch the #3136 warning still applies. Same-batch denials are recorded as the new `batch-deny` metrics decision and do not count toward fact_force_denials. batch_locks is validated on read, merged by newest `at` and capped at 50 entries. Fixes #3936 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>