Skip to content

Notify lifecycle extensions of compaction usage limits - #49097

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/f31155e5991d762a0779030921aedbd1f818cfbb
Sep 28, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/f31155e5991d762a0779030921aedbd1f818cfbb

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Notify lifecycle extensions of compaction usage limits

Why

Usage-limit failures during manual or post-turn compaction did not notify turn lifecycle extensions, leaving them unable to react to these errors.

What changed

Emit the turn error lifecycle notification for UsageLimitExceeded in both compaction paths. Preserve the completed answer after post-turn compaction fails, and avoid duplicating the error already emitted by manual compaction.

## Why

Usage-limit failures during manual or post-turn compaction did not notify turn lifecycle extensions, leaving them unable to react to these errors.

## What changed

Emit the turn error lifecycle notification for `UsageLimitExceeded` in both compaction paths. Preserve the completed answer after post-turn compaction fails, and avoid duplicating the error already emitted by manual compaction.

GitOrigin-RevId: f31155e5991d762a0779030921aedbd1f818cfbb
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/f31155e5991d762a0779030921aedbd1f818cfbb branch from 2764f15 to 9563713 Compare September 28, 2026 23:01
@copyberry
copyberry Bot merged commit 9563713 into main Sep 28, 2026
18 of 24 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/f31155e5991d762a0779030921aedbd1f818cfbb branch September 28, 2026 23:01
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant