Skip to content

[codex] Add bounded item reads to ThreadStore - #31052

Draft
richardopenai wants to merge 1 commit into
mainfrom
richardlee/thread-store-bounded-items
Draft

richardopenai wants to merge 1 commit into
mainfrom
richardlee/thread-store-bounded-items

Conversation

@richardopenai

Copy link
Copy Markdown
Contributor

Summary

  • extend ListItemsParams with an optional (after_updated_at, through_updated_at] interval
  • require stores to return Unsupported instead of silently ignoring timestamp bounds
  • echo the applied upper bound in ItemPage
  • add a ResourceExhausted error for implementations with hard response limits

Why

ThreadStore implementations need one canonical contract for incremental latest-state item reads across opaque cursor pages. Keeping the interval on list_items avoids parallel store APIs while preserving existing unbounded behavior for callers that omit both bounds.

Validation

  • just test -p codex-thread-store — 89 passed
  • cargo check -p codex-app-server
  • cargo fmt --all -- --check

This branch has not been deployed

No deployments
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