Commit f6d05dc
committed
docs(streaming): refresh native-vs-fallback wording (vercel/chat#463)
Ports the runtime-code portion of vercel/chat#463 (commit 0cc3d06) —
docstring cleanups around streaming. Upstream's #463 rewrote the
StreamingPlanOptions.updateIntervalMs comment from "fallback mode
(post + edit on adapters without native streaming)" to "Used by
post+edit streaming paths" because the interval is consulted regardless
of whether the adapter exposes its own ``stream`` method (Slack/Teams
adapters internally rate-limit edits using the same value). Same logic
applies to ThreadImpl._handle_stream's docstring and inline comment.
The other 0cc3d06 runtime fix — StreamEvent type 'step-finish' →
'finish-step' — was already correct on the Python side
(from_full_stream.py:79, thread.py:1273/1298), so nothing to do there.
Added load-bearing pins:
- TestStreamingPlanOptionsDocs::test_update_interval_ms_docstring_matches_upstream
- TestStreamingPlanOptionsDocs::test_thread_handle_stream_docstring_matches_upstream
Both fail if a future doc drift restores the stale wording.
Refs vercel/chat#463, tracking #98.
https://claude.ai/code/session_01FyMxQn2BEAzmwKS1GZczKj1 parent 9888fc0 commit f6d05dc
4 files changed
Lines changed: 40 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
547 | | - | |
| 546 | + | |
548 | 547 | | |
549 | 548 | | |
550 | 549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
651 | | - | |
| 651 | + | |
| 652 | + | |
652 | 653 | | |
653 | 654 | | |
654 | 655 | | |
| |||
682 | 683 | | |
683 | 684 | | |
684 | 685 | | |
685 | | - | |
| 686 | + | |
686 | 687 | | |
687 | 688 | | |
688 | 689 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
576 | 577 | | |
577 | 578 | | |
578 | 579 | | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
0 commit comments