Skip to content

feat: reuse compressed rollout search snippets#25814

Merged
jif-oai merged 1 commit into
mainfrom
jif/rollout-search-single-pass
Jun 2, 2026
Merged

feat: reuse compressed rollout search snippets#25814
jif-oai merged 1 commit into
mainfrom
jif/rollout-search-single-pass

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented Jun 2, 2026

Summary

  • teach rollout search to return precomputed snippets for compressed rollouts
  • reuse those snippets in local thread search instead of reopening matching compressed files
  • keep the no-rg fallback single-pass and add regression coverage for the compressed path

Why

thread/search currently decodes matching compressed rollouts twice: once to discover the matching path and again to extract the snippet shown in results. That defeats a meaningful part of the compressed-read optimization work.

Impact

Compressed rollout hits now pay one decode pass on the search path while plain .jsonl hits keep the existing ripgrep-driven flow.

Validation

  • just test -p codex-rollout
  • just test -p codex-thread-store
  • just fix -p codex-rollout
  • just fix -p codex-thread-store
  • just fmt

@jif-oai jif-oai changed the title [codex] reuse compressed rollout search snippets feat: reuse compressed rollout search snippets Jun 2, 2026
@jif-oai jif-oai marked this pull request as ready for review June 2, 2026 09:19
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented Jun 2, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. What shall we delve into next?

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

@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented Jun 2, 2026

CI failure is due to a windows flake

@jif-oai jif-oai merged commit 45912a6 into main Jun 2, 2026
29 of 31 checks passed
@jif-oai jif-oai deleted the jif/rollout-search-single-pass branch June 2, 2026 09:32
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 2, 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.

1 participant