This repository was archived by the owner on Jul 22, 2026. It is now read-only.
Commit a278432
Forward warning messages and compact notifications to client (#175)
After /compact runs, the client received no feedback — the LLM-driven
summarization ran silently and only a stopReason notification arrived.
This change improves the UX in two ways:
1. When a ContextCompaction TurnItem completes (or a ContextCompacted
event fires), send an agent message "Context compacted" so users see
explicit confirmation that the operation finished.
2. Forward Warning events as agent messages. Codex emits user-facing
warnings in several situations (post-compact advisory, deprecated
config notices, etc.). Previously they were only logged server-side;
now clients receive them as session/update notifications.
Fixes #164
Co-authored-by: Claude <noreply@anthropic.com>1 parent e979e7c commit a278432
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
637 | 638 | | |
638 | 639 | | |
639 | 640 | | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
640 | 646 | | |
641 | 647 | | |
642 | 648 | | |
| |||
725 | 731 | | |
726 | 732 | | |
727 | 733 | | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
728 | 737 | | |
729 | 738 | | |
730 | 739 | | |
| |||
750 | 759 | | |
751 | 760 | | |
752 | 761 | | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
753 | 767 | | |
754 | 768 | | |
755 | 769 | | |
756 | 770 | | |
757 | 771 | | |
758 | 772 | | |
759 | 773 | | |
760 | | - | |
761 | 774 | | |
762 | 775 | | |
763 | 776 | | |
| |||
0 commit comments