Skip to content

[app-server] improve thread list and resume rpc paths#28801

Open
anaiskillian wants to merge 2 commits into
mainfrom
anais/create-rpc-improvement-codex-app
Open

[app-server] improve thread list and resume rpc paths#28801
anaiskillian wants to merge 2 commits into
mainfrom
anais/create-rpc-improvement-codex-app

Conversation

@anaiskillian

Copy link
Copy Markdown
  • This pr adds a SQLite list path for thread/list, using list-specific row types so the app-server only reads the fields needed for list responses instead of materializing the full thread. It preserves the existing filters, parent filtering, ordering, anchors, and repair validation while reducing the amount of DB work on the hot list path.
  • On the synthetic RPC grader, thread/resume has a 1.56x improvement on cold resume and 4.47x on exclude-turns resume, while thread/list improves about 3.45x on the 100 thread DB-backed case, about 4.39x on the 6000-thread DB-backed case, about 4.76x when listing 6000 threads with source filters, 11.72x when listing child threads for one parent, and 6.76x on the scan-and-repair case. I ran just fmt, CARGO_INCREMENTAL=0 just fix -p codex-app-server -p codex-core -p codex-rollout -p codex-state -p codex-thread-store, CARGO_INCREMENTAL=0 just test -p codex-app-server --test all thread_list, CARGO_INCREMENTAL=0 just test -p codex-app-server --test all thread_resume, CARGO_INCREMENTAL=0 just test -p codex-state, CARGO_INCREMENTAL=0 just test -p codex-rollout -p codex-thread-store, and CARGO_INCREMENTAL=0 just test -p codex-core --lib locally.

@anaiskillian anaiskillian marked this pull request as ready for review June 17, 2026 23:29
@anaiskillian anaiskillian requested a review from a team as a code owner June 17, 2026 23:29
@anaiskillian

Copy link
Copy Markdown
Author

@codex review

@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: 135772bf29

ℹ️ 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 thread codex-rs/rollout/src/recorder.rs Outdated
Comment thread codex-rs/rollout/src/recorder.rs Outdated
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