Skip to content

Distinguish retryable thread-store errors from unknown write outcomes - #54664

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/259a9bfaa6ff3cbfa2ee61a01a1f1e744c90f118
Oct 16, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Distinguish retryable thread-store errors from unknown write outcomes

What changed

Add ThreadStoreError::Retryable for transient failures known to be safe to retry and ThreadStoreError::OutcomeUnknown for writes that may already have committed. Recovery remains the operation owner's responsibility; neither category automatically triggers retries.

Preserve existing app-server error mappings and fatal session startup behavior, and report the new categories in shutdown diagnostics without exposing raw error payloads.

Testing

Add coverage for conservative SQLx error classification, mutation error mappings, session initialization categories, and shutdown diagnostics that omit raw error payloads.

…#54664)

## What changed

Add `ThreadStoreError::Retryable` for transient failures known to be safe to retry and `ThreadStoreError::OutcomeUnknown` for writes that may already have committed. Recovery remains the operation owner's responsibility; neither category automatically triggers retries.

Preserve existing app-server error mappings and fatal session startup behavior, and report the new categories in shutdown diagnostics without exposing raw error payloads.

## Testing

Add coverage for conservative SQLx error classification, mutation error mappings, session initialization categories, and shutdown diagnostics that omit raw error payloads.

GitOrigin-RevId: 259a9bfaa6ff3cbfa2ee61a01a1f1e744c90f118
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/259a9bfaa6ff3cbfa2ee61a01a1f1e744c90f118 branch from f8c1e85 to 96eb400 Compare October 16, 2026 17:32
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-16T17:32:08.919654Z f8c1e85 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 96eb400 into main Oct 16, 2026
12 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/259a9bfaa6ff3cbfa2ee61a01a1f1e744c90f118 branch October 16, 2026 17:32
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 16, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 96eb400d Deployed Oct 16, 2026 by leogranda via Identify potential duplicates (all issues) #56210
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.

8 participants