Skip to content

thread-store: retry only uncommitted append suffix - #727

Merged
GraciousGazelles merged 5 commits into
mainfrom
successor/live-thread-append-current-main-w9633
Sep 5, 2026
Merged

GraciousGazelles merged 5 commits into
mainfrom
successor/live-thread-append-current-main-w9633

Conversation

@GraciousGazelles

@GraciousGazelles GraciousGazelles commented Sep 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • add an optional commit-aware append contract for stores that can report a durable prefix on failure
  • retry only the uncommitted suffix while retaining the existing serialized persistence-operation ordering
  • keep inherited-context appends raw at the ThreadStore boundary and preserve pending metadata for a later flush or shutdown retry
  • retain the LocalThreadStore lifecycle/order harness and add focused partial-progress and metadata-projection regressions

Scope and validation

  • Current base: origin/main at a8a117155ca4971dd85c18592e14e2cc70a177ba
  • Changed paths: codex-rs/thread-store/src/live_thread.rs, codex-rs/thread-store/src/live_thread_tests.rs, codex-rs/thread-store/src/store.rs
  • Current candidate commit: d80162483294827951072b2c8bfa292962701709
  • Five-commit durable-prefix/suffix-retry lineage is preserved from the original PR.
  • The append contract is bounded: a fully committed error is returned without retry, and callers must not blindly replay raw items after a metadata projection failure unless the store is independently idempotent.

Hosted focused tests and required cross-platform checks should be run for this exact head before queue or merge.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-03T12:18:54.606900Z f71b19d 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.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for partial appends in the thread store, allowing LiveThread to retry only the uncommitted suffix of items when an append operation fails. It adds the append_items_committed method to the ThreadStore trait and updates persist_appended_items to handle partial progress and retry logic. Corresponding unit tests have been added to verify this behavior. The review feedback highlights two main points: first, the use of unstable let-chains (&& let) should be avoided to maintain compatibility with stable Rust; second, transient errors encountered during partial append retries should be logged rather than silently discarded to preserve observability.

@GraciousGazelles
GraciousGazelles force-pushed the successor/live-thread-append-current-main-w9633 branch from 847d684 to d801624 Compare September 4, 2026 23:34
@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 5, 2026
Merged via the queue into main with commit 6270b4a Sep 5, 2026
109 of 112 checks passed
@GraciousGazelles
GraciousGazelles deleted the successor/live-thread-append-current-main-w9633 branch September 5, 2026 02:30
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