Commit ccb5fde
fix(streaming-plan): address PR #74 review feedback
- StreamingPlanOptions mapping: replace truthy checks with `is not None`
so update_interval_ms=0 and end_with=[] propagate correctly (thread.py
post dispatcher and _fallback_stream interval guard). Per CLAUDE.md
Port Rule #1; diverges from upstream thread.ts, which has the same
latent bug.
- StreamingPlan: raise RuntimeError from is_supported() and
get_fallback_text() so misroutes through post_postable_object /
Channel.post fail loudly instead of posting "" or attempting a
wrong-shape adapter.post_object("stream", ...). Also guard
post_postable_object() with an early kind=="stream" check for a
clearer error message. Diverges from upstream postable-object.ts,
which silently posts the empty fallback string.
- Fallback test: spy on _fallback_stream to capture the StreamOptions
actually reaching the fallback path and assert task_display_mode,
stop_blocks, and update_interval_ms all propagate -- previous test
passed even when options were silently dropped.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 452b0ac commit ccb5fde
3 files changed
Lines changed: 92 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
171 | 185 | | |
172 | 186 | | |
173 | 187 | | |
| |||
518 | 532 | | |
519 | 533 | | |
520 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
521 | 547 | | |
522 | 548 | | |
523 | | - | |
524 | | - | |
525 | | - | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
526 | 562 | | |
527 | 563 | | |
528 | 564 | | |
529 | 565 | | |
530 | 566 | | |
531 | 567 | | |
532 | | - | |
533 | | - | |
534 | | - | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
535 | 581 | | |
536 | 582 | | |
537 | 583 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
476 | 481 | | |
477 | | - | |
| 482 | + | |
478 | 483 | | |
479 | | - | |
| 484 | + | |
480 | 485 | | |
481 | 486 | | |
482 | 487 | | |
| |||
650 | 655 | | |
651 | 656 | | |
652 | 657 | | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
653 | 661 | | |
654 | | - | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
655 | 665 | | |
656 | 666 | | |
657 | 667 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
952 | 966 | | |
953 | 967 | | |
954 | 968 | | |
| |||
971 | 985 | | |
972 | 986 | | |
973 | 987 | | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
974 | 1000 | | |
975 | 1001 | | |
976 | 1002 | | |
| |||
0 commit comments