Skip to content

Commit a5f0a37

Browse files
authored
docs: document compaction retry timeout contracts (#89585)
1 parent e29448d commit a5f0a37

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/agents/embedded-agent-runner/run/compaction-retry-aggregate-timeout.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export async function waitForCompactionRetryWithAggregateTimeout(params: {
1818
waitForCompactionRetry: () => Promise<void>;
1919
abortable: <T>(promise: Promise<T>) => Promise<T>;
2020
aggregateTimeoutMs: number;
21+
/** Called once when the wait gives up after compaction is no longer active. */
2122
onTimeout?: () => void;
23+
/** Keeps extending the timeout while compaction or its retry is still active. */
2224
isCompactionRetryStillActive?: () => boolean;
2325
}): Promise<{ timedOut: boolean }> {
2426
const timeoutMs = resolveTimerTimeoutMs(params.aggregateTimeoutMs, 1);

0 commit comments

Comments
 (0)