Repository navigation
Commit 0feed6a
committed
fix(channel): filter commentary phase from channel delivery on phase-tagged providers
When providers like openai-codex/gpt-5.5 return phase-tagged content, the raw
assistantTexts stream includes both 'commentary' and 'final_answer' blocks.
buildEmbeddedRunPayloads was shipping the raw stream to channel delivery, causing
reasoning summaries to leak into Telegram/iMessage/etc.
Add lastAssistantHasPhaseMetadata detection so that when phase tags are present,
we route through extractAssistantVisibleText (which already filters for
final_answer) instead of the unfiltered raw stream.
Non-phase-tagged providers are unaffected.
Fixes #804581 parent 0bb9b42 commit 0feed6a
1 file changed
Lines changed: 28 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
446 | 463 | | |
447 | 464 | | |
448 | 465 | | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
458 | 477 | | |
459 | 478 | | |
460 | 479 | | |
| |||
0 commit comments