(name, args, result)
| 177 | |
| 178 | // Record a successful idempotent-write call. |
| 179 | record(name, args, result) { |
| 180 | if (this.disabled) return; |
| 181 | if (!this.isIdempotent(name)) return; |
| 182 | if (result && result.error) return; // don't lock out retries on error |
| 183 | this.seen.add(idempotentWriteKey(name, args)); |
| 184 | } |
| 185 | |
| 186 | // Build the canonical "skipped" result that replaces the real tool call. |
| 187 | shortCircuitResult(name) { |
nothing calls this directly
no test coverage detected