Skip to content

Add experimental remote thread store config#18714

Merged
wiltzius-openai merged 1 commit into
mainfrom
wiltzius/codex/thread-store-config
Apr 20, 2026
Merged

Add experimental remote thread store config#18714
wiltzius-openai merged 1 commit into
mainfrom
wiltzius/codex/thread-store-config

Conversation

@wiltzius-openai
Copy link
Copy Markdown
Contributor

@wiltzius-openai wiltzius-openai commented Apr 20, 2026

Add experimental config to use remote thread store rather than local thread store implementation in app server

@wiltzius-openai wiltzius-openai marked this pull request as ready for review April 20, 2026 18:53
@wiltzius-openai wiltzius-openai requested a review from a team as a code owner April 20, 2026 18:53
@wiltzius-openai wiltzius-openai force-pushed the wiltzius/codex/thread-store-config branch from 2930d1d to 6205503 Compare April 20, 2026 18:53
Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6205503298

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +647 to +648
match config.experimental_thread_store_endpoint.as_deref() {
Some(endpoint) => Arc::new(RemoteThreadStore::new(endpoint)),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Badge Limit remote store selection to supported thread operations

configured_thread_store swaps in RemoteThreadStore for all thread APIs whenever experimental_thread_store_endpoint is set. But RemoteThreadStore currently only implements list_threads; methods like read_thread, update_thread_metadata, archive_thread, and unarchive_thread return not_implemented errors (thread-store/src/remote/mod.rs). This makes endpoints such as thread/read and thread/archive fail once the config is enabled.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is a work in progress, it's OK for there to be failures in the remote case

analytics_events_client,
arg0_paths,
thread_store: LocalThreadStore::new(codex_rollout::RolloutConfig::from_view(&config)),
thread_store: configured_thread_store(&config),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Badge Route thread persistence to the configured remote store

The new config only changes CodexMessageProcessor.thread_store, but thread creation/runtime still persists through core sessions that hardcode LocalThreadStore::new(...) (core/src/session/session.rs). With experimental_thread_store_endpoint enabled, thread/start writes local state while thread/list/thread/read pull from remote, so newly updated threads can be missing or stale in API responses.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is a work in progress, not done migrating the thread writes yet

@wiltzius-openai wiltzius-openai force-pushed the wiltzius/codex/thread-store-config branch from 6205503 to d035ab9 Compare April 20, 2026 21:55
@wiltzius-openai wiltzius-openai enabled auto-merge (squash) April 20, 2026 22:18
@wiltzius-openai wiltzius-openai merged commit 46e5814 into main Apr 20, 2026
25 checks passed
@wiltzius-openai wiltzius-openai deleted the wiltzius/codex/thread-store-config branch April 20, 2026 22:20
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants