Commit 0040875
fix(codex): de-duplicate session-start context and surface one-line summary
Codex's TUI flattens newlines when it surfaces SessionStart hook output and
already echoes additionalContext back as its own "hook context" block. Emitting
the full timeline again through systemMessage (shown as a "warning:" block)
duplicated the wall of text into an unreadable single line.
For the Codex platform, replace the full-timeline systemMessage with a compact
one-line summary (obs/work/savings + live URL) that stays legible after Codex
flattens it. The model still receives the full, properly formatted
additionalContext, and the claude-code/gemini colored multi-line paths are
unchanged.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 00867a8 commit 0040875
1 file changed
Lines changed: 30 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
68 | 94 | | |
69 | 95 | | |
70 | 96 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 97 | | |
80 | 98 | | |
81 | 99 | | |
| |||
0 commit comments