Skip to content

Handle cancellation rejections when chat deletion reaches its deadline - #980

Draft
AnthonyRonning wants to merge 1 commit into
masterfrom
codex-cancellation-deadline-rejection
Draft

AnthonyRonning wants to merge 1 commit into
masterfrom
codex-cancellation-deadline-rejection

Conversation

@AnthonyRonning

Copy link
Copy Markdown
Contributor

When chat-history deletion starts cancellation requests and reaches its deadline before awaiting them, a rejected request can escape as an unhandled promise rejection. Attach Promise.allSettled before checking the remaining time so every already-started cancellation has a rejection handler. Timeout reporting and active-run ownership remain unchanged.

Adds a deterministic regression that advances the clock past the deadline inside a rejecting cancellation callback. This small fix was found while validating another feature and is separated for independent review.

Validation on this isolated branch: pre-commit formatting, ESLint and TypeScript checks passed; all 1,004 frontend tests passed (0 failures). No native behavior or packaging changed.

@github-actions

Copy link
Copy Markdown
Contributor

Maple development preview: https://4c764884.maple-ca8.pages.dev

Commit: 3dc74ead2c3f33d75c9c49f2d93cebb024eec1a1

Uses development API, billing, flags and PCR configuration. Cloudflare Access applies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant