Commit 5299b05
fix: fire on_step_end before incrementing global_step
on_step_begin(step=N) was followed by on_step_end(step=N+1) because
global_step was incremented before on_step_end fired. Move on_step_end
before the increment so begin/end see the same step number.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>1 parent c6578c5 commit 5299b05
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
423 | 426 | | |
424 | 427 | | |
425 | 428 | | |
426 | 429 | | |
427 | 430 | | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | 431 | | |
433 | 432 | | |
434 | 433 | | |
| |||
0 commit comments