Skip to content

Read conversation summaries through thread store#18716

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

Read conversation summaries through thread store#18716
wiltzius-openai merged 1 commit into
mainfrom
wiltzius/codex/conversation-summary-thread-store

Conversation

@wiltzius-openai

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

Copy link
Copy Markdown
Contributor

Migrate the conversation summary App Server methods to ThreadStore

Because this app server api allows explicitly fetching the thread by rollout path, intercept that case in the app server code and (a) route directly to underlying local thread store methods if we're using a local thread store, or (b) throw an unsupported error if we're using a remote thread store. This keeps the thread store API clean and all filesystem operations inside of the local thread store, which pushing the "fundamental incompatibility" check as early as possible.

@wiltzius-openai wiltzius-openai marked this pull request as ready for review April 20, 2026 19:03
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ 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".

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

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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: da18087cb2

ℹ️ 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 +5125 to +5133
GetConversationSummaryParams::ThreadId { conversation_id } => self
.thread_store
.read_thread(StoreReadThreadParams {
thread_id: conversation_id,
include_archived: true,
include_history: false,
})
.await
{
Ok(Some(p)) => p,
_ => {
let error = JSONRPCErrorError {
code: INVALID_REQUEST_ERROR_CODE,
message: format!(
"no rollout found for conversation id {conversation_id}"
),
data: None,
};
self.outgoing.send_error(request_id, error).await;
return;
}
}
.map_err(|err| conversation_summary_thread_id_read_error(conversation_id, err)),

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 Guard ThreadId summaries when remote store lacks read_thread

get_thread_summary now always calls thread_store.read_thread for ThreadId requests. In remote mode, RemoteThreadStore::read_thread still returns not_implemented, so getConversationSummary by thread id now fails with an internal error instead of a usable/not-found response. This is a functional regression for configs using experimental_thread_store_endpoint.

Useful? React with 👍 / 👎.

@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 requested a review from a team as a code owner April 20, 2026 21:55
@wiltzius-openai wiltzius-openai force-pushed the wiltzius/codex/conversation-summary-thread-store branch from da18087 to ec3765e Compare April 20, 2026 21:55
Base automatically changed from wiltzius/codex/thread-store-config to main April 20, 2026 22:20
@wiltzius-openai wiltzius-openai enabled auto-merge (squash) April 20, 2026 22:21
@wiltzius-openai wiltzius-openai force-pushed the wiltzius/codex/conversation-summary-thread-store branch from ec3765e to 2cf2f43 Compare April 20, 2026 22:23
@wiltzius-openai wiltzius-openai merged commit a718b6f into main Apr 20, 2026
25 checks passed
@wiltzius-openai wiltzius-openai deleted the wiltzius/codex/conversation-summary-thread-store branch April 20, 2026 22:39
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants