fix(web): map codex-enveloped compact-summary to the chat block (#1582)

* fix(web): map codex-enveloped compact-summary to the chat block

The merged #1570 renders Pi compaction summaries as a dedicated chat
block via the event envelope. A compact-summary arriving in the codex
payload envelope (older import paths, future producers) would still be
silently dropped by the codex-content filter; map it to the same
agent-event the live pi wrapper emits, mirroring the existing
context_compacted handling. Adds a normalizeAgent regression test and
tightens the /compact thinking-state test to assert the last keepAlive
flips true (RPC outstanding) then false (settled).

Verified: bun typecheck clean; web normalizeAgent 12/12, cli runPi
57/57 in an isolated TMPDIR.

* fix(web): remove duplicate showSessionSummaryInChat in markdown-a fixture

Regression from #1530: the fixture object literal sets the key twice,
which breaks `bun typecheck` on upstream/main (Test workflow failing on
push). One-line cleanup; no behavior change.

Verified: bun typecheck exit 0 across cli/web/hub.
This commit is contained in:
SSU-WEI HUANG
2026-08-16 22:35:31 +08:00
committed by GitHub
parent 901f17d0ca
commit 1f2fbcb142
4 changed files with 54 additions and 1 deletions
@@ -61,7 +61,6 @@ function chatContext(overrides: Partial<HappyChatContextValue> = {}): HappyChatC
isLoadingMoreMessages: false,
showSessionSummaryInChat: false,
loadOlderMessagesPreservingScroll: async () => 'loaded',
showSessionSummaryInChat: false,
...overrides,
}
}