Commit 3ae80ab
fix(adapter): address session-reset sentinel, suppress() reactions, Slack delete
Four fixes on top of the initial silence-handling commit:
1. Session reset + sentinel (Codex P2): text_buf was pre-populated with the
reset prelude before agent output, so text_buf.trim() == "<silent />" never
matched after a session reset. Track reset_prelude separately and prepend
it to streaming updates and final_content after sentinel/suppress checks.
2. reactions.suppress() (Claude Important): early-return suppress paths
returned Ok(()), causing dispatch.rs to call reactions.set_done() and add
a done emoji to the user message even though no reply was posted. Added
suppress() to StatusReactionController (clear + finished=true) so the
subsequent set_done() is a no-op.
3. delete_message error logging (Claude Important): tokio::spawn blocks for
placeholder deletion were silently discarding errors. Now emit warn! so
failures appear in telemetry.
4. Slack delete_message (Codex P2): SlackAdapter lacked a delete_message
override, falling back to edit_message with U+200B. Added chat.delete so
the placeholder is truly removed rather than left as a blank message.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a97188c commit 3ae80ab
3 files changed
Lines changed: 78 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
485 | 489 | | |
486 | 490 | | |
487 | 491 | | |
| |||
587 | 591 | | |
588 | 592 | | |
589 | 593 | | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
595 | 602 | | |
596 | 603 | | |
597 | 604 | | |
| |||
612 | 619 | | |
613 | 620 | | |
614 | 621 | | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
620 | 630 | | |
621 | 631 | | |
622 | 632 | | |
| |||
640 | 650 | | |
641 | 651 | | |
642 | 652 | | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
648 | 661 | | |
649 | 662 | | |
650 | 663 | | |
| |||
669 | 682 | | |
670 | 683 | | |
671 | 684 | | |
| 685 | + | |
672 | 686 | | |
673 | 687 | | |
674 | | - | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
675 | 693 | | |
676 | 694 | | |
677 | 695 | | |
| |||
684 | 702 | | |
685 | 703 | | |
686 | 704 | | |
| 705 | + | |
687 | 706 | | |
688 | 707 | | |
689 | | - | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
690 | 713 | | |
691 | 714 | | |
692 | 715 | | |
| |||
698 | 721 | | |
699 | 722 | | |
700 | 723 | | |
| 724 | + | |
701 | 725 | | |
702 | 726 | | |
703 | 727 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
132 | 153 | | |
133 | 154 | | |
134 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
450 | 462 | | |
451 | 463 | | |
452 | 464 | | |
| |||
0 commit comments