Commit 902f53c
committed
fix: Remove trailing commas causing tuple assignment in response cancellation
The trailing commas on lines 434 and 619 were creating tuples instead of booleans for automatic_response_cancellation_enabled. This caused the condition 'if not automatic_response_cancellation_enabled' to always evaluate to False, preventing _cancel_response() from being called.
Impact: Response cancellation was completely broken when interrupt_response=False
Fix: Remove trailing commas to return bool instead of tuple
Verification:
- Before fix: type=tuple, not (False,) = False -> _cancel_response() NOT called
- After fix: type=bool, not False = True -> _cancel_response() IS called
- All 23 tests pass1 parent 2630489 commit 902f53c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
| 434 | + | |
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
619 | | - | |
| 619 | + | |
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
| |||
0 commit comments