Skip to content

Add occurrence search for paginated threads#33907

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e80160e0f83eb4e5db8de862307085093bee362b
Jul 17, 2026
Merged

Add occurrence search for paginated threads#33907
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e80160e0f83eb4e5db8de862307085093bee362b

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 17, 2026

Copy link
Copy Markdown

Add occurrence search for paginated threads

What changed

  • Add the experimental thread/searchOccurrences app-server method for case-insensitive literal search across visible user messages and final assistant messages without replaying the thread.
  • Return paginated snippets with UTF-16 match ranges and thread/turns/list cursors for navigating to each matching turn.
  • Index persisted item types to efficiently select searchable messages from paginated thread history.

Testing

  • Add an app-server integration test covering pagination, steering messages, final-answer selection, Markdown normalization, and UTF-16 offsets.

## What changed

- Add the experimental `thread/searchOccurrences` app-server method for case-insensitive literal search across visible user messages and final assistant messages without replaying the thread.
- Return paginated snippets with UTF-16 match ranges and `thread/turns/list` cursors for navigating to each matching turn.
- Index persisted item types to efficiently select searchable messages from paginated thread history.

## Testing

- Add an app-server integration test covering pagination, steering messages, final-answer selection, Markdown normalization, and UTF-16 offsets.

GitOrigin-RevId: e80160e0f83eb4e5db8de862307085093bee362b
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/e80160e0f83eb4e5db8de862307085093bee362b branch from d7b2853 to c1862b8 Compare July 17, 2026 21:25
@copyberry
copyberry Bot merged commit c1862b8 into main Jul 17, 2026
25 of 43 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/e80160e0f83eb4e5db8de862307085093bee362b branch July 17, 2026 21:26
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 17, 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