Make compaction visible and resume final replies#76651
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: yes. by source inspection for the PR behavior and prior blockers: current main lacks the hook/retry, while the latest head routes hook messages through Next step before merge Security Review detailsBest possible solution: Rebase the branch onto current main, rerun the focused tests and changed gate, then merge if maintainer validation confirms the visible compaction notices and replay-safe retry behavior. Do we have a high-confidence way to reproduce the issue? Yes by source inspection for the PR behavior and prior blockers: current main lacks the hook/retry, while the latest head routes hook messages through Is this the best way to solve the issue? Yes for the current code direction: it reuses the existing internal hook Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 8c95664e5596. |
|
Addressed the Codex review blockers in the PR branch:
Local validation available in this environment: a focused explicit- |
|
Validation follow-up after installing dependencies locally:
I also pushed a formatting/validation follow-up commit. |
When an automatic compaction happens mid-turn, chat users currently see a long stall and the run can finish without a final visible answer. This adds an optional bundled compaction notifier hook and a one-shot compacted-transcript continuation retry when a compaction produced no user-visible final payload.
- gate the compaction continuation retry on existing replay side-effect metadata - type the bundled compaction notifier hook without explicit any - add an Unreleased changelog entry
- apply oxfmt formatting to changed files - keep replay-safety, typed hook, and changelog fixes - validated targeted tests, oxfmt check, and check:changed locally
|
Addressed the updated Codex findings:
Validation rerun locally:
|
64c6271 to
204f19b
Compare
Summary
compaction-notifierhook for visible before/after compaction chat noticesWhy
A mid-turn compaction can make chat surfaces look stuck and can leave the user without a final assistant reply after tool work. The continuation retry asks the model to finish from the compacted transcript without restarting or rerunning completed tools.
Test plan