Repository navigation
fix(core): expose compaction retry status - #64663
pjiang000-eng wants to merge 1 commit into
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 72 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
There was a problem hiding this comment.
This works: I drove the TUI with a simulated provider disconnect during /compact. On the base nothing appears under the Compaction divider while it waits. With this PR the retry notice (attempt, countdown, error) shows, and it goes away once the summary arrives. The core runner tests and the event-manifest test pass.
Blocking: packages/session-ui no longer type-checks. SessionRetry is now imported twice in session-timeline-row.tsx (see inline comment).
Public API: the change only adds things and is backwards compatible.
- A new durable event,
session.compaction.retry.scheduled(v1), with{ sessionID, attempt, at, error }. It appears in the event inventory/manifest, theExperimentalSessionLogOutputunion and theEventSubscribeInputtype list. - An optional
retryfield onSession.Message.Compaction.Running. - No existing fields or events change. Clients that don't know the new event can ignore it.
| } from "@opencode/client/promise" | ||
| import { useI18n } from "@opencode/ui/context/i18n" | ||
| import { SessionTurn } from "@opencode/util/session-turn" | ||
| import { SessionRetry } from "../components/session-retry" |
There was a problem hiding this comment.
This file already imports SessionRetry from ../components/session-retry (around line 51), so this second import gives TS2300: Duplicate identifier 'SessionRetry' and session-ui no longer type-checks (it is clean on the base). Please drop this line.
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 72-hour window. Feel free to open a new pull request that follows our guidelines. |


Issue
Related to #61346 (retry feedback portion).
What changed
Compaction retry waits now publish a durable
session.compaction.retry.scheduledevent with the attempt, retry time, and provider error. The running compaction message stores that state, and the Web UI and TUI display it while waiting. Starting a new streamed draft clears stale retry details and partial summary text.The SSE keepalive timeout behavior in #61346 is handled separately by #64492.
A previous implementation of compaction retry feedback was proposed in #50757 and closed during stale PR cleanup. This PR brings the fix onto current
devwith regression coverage for the durable retry event and visible running state.Verification
packages/core: targetedsession-runner.test.tsscenario passes.packages/schema:event-manifest.test.tspasses.packages/client: typecheck passes.git diff --checkpasses.Added by the opencode bot (AI-generated).
Public API: adds the durable event session.compaction.retry.scheduled and an optional retry field on running compaction messages (backwards compatible)