Commit 1865aed
refactor: consolidate state counter updates in _execute_agent for clarity
Move timed_out and failed counter increments from the except block into
the if/elif/else chain where all other counter updates live. This puts
every state mutation in one visible location, making the outcome logic
easier to audit at a glance.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 42c9d30 commit 1865aed
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
295 | 293 | | |
296 | 294 | | |
297 | 295 | | |
298 | 296 | | |
299 | 297 | | |
300 | 298 | | |
| 299 | + | |
301 | 300 | | |
| 301 | + | |
| 302 | + | |
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
| |||
0 commit comments