Skip to content

Allow searching persisted attached threads - #60574

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ac12ec3c730ad7f1722bdf8e21600d17f12017f0
Nov 10, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ac12ec3c730ad7f1722bdf8e21600d17f12017f0

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Allow searching persisted attached threads

Why

Title and content searches exclude attached threads, preventing clients from finding their saved conversations alongside ordinary threads.

What changed

  • Add includeAttachedThreads to thread/list and thread/search. For thread/list, require a non-empty searchTerm and preserve the usual provider and source filters.
  • Expose attachedToThreadId on thread responses to identify the owning parent independently of fork and subagent lineage.
  • Support inclusive searches through SQLite and filesystem fallback, repairing missing database entries with saved thread names during title searches.

Testing

Add regression coverage for opt-in title and content searches, attached-parent metadata after restart, default search filters, filesystem searches without SQLite, and discovery and repair of unindexed title matches.

## Why

Title and content searches exclude attached threads, preventing clients from finding their saved conversations alongside ordinary threads.

## What changed

- Add `includeAttachedThreads` to `thread/list` and `thread/search`. For `thread/list`, require a non-empty `searchTerm` and preserve the usual provider and source filters.
- Expose `attachedToThreadId` on thread responses to identify the owning parent independently of fork and subagent lineage.
- Support inclusive searches through SQLite and filesystem fallback, repairing missing database entries with saved thread names during title searches.

## Testing

Add regression coverage for opt-in title and content searches, attached-parent metadata after restart, default search filters, filesystem searches without SQLite, and discovery and repair of unindexed title matches.

GitOrigin-RevId: ac12ec3c730ad7f1722bdf8e21600d17f12017f0
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/ac12ec3c730ad7f1722bdf8e21600d17f12017f0 branch from 90f5ae2 to 77fde36 Compare November 10, 2026 11:17
@copyberry
copyberry Bot merged commit 77fde36 into main Nov 10, 2026
8 of 23 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-10T11:17:31.871340Z 90f5ae2 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/ac12ec3c730ad7f1722bdf8e21600d17f12017f0 branch November 10, 2026 11:17
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 10, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 77fde36a Deployed Nov 10, 2026 by azlinrahim via Generate label suggestions #62568
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.

4 participants