Skip to content

Add thread ID exclusions to thread/list - #51595

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e9a884e642ae25d166aff7e275469d1d43179c6c
Oct 7, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Add thread ID exclusions to thread/list

Why

Clients displaying a saved manual thread order need to list the remaining threads without repeating those already loaded separately.

What changed

Add optional excludedThreadIds to thread/list and the generated protocol bindings. Apply exclusions before the result limit, refilling pages until the requested limit is reached or history is exhausted while preserving existing filters and ordering. Clients must send the same exclusions on each page.

Accept up to 100 entries, counting duplicates toward the bound. Reject invalid IDs or oversized lists with JSON-RPC error -32602 rather than truncating them. Omitted, null, and empty lists preserve existing behavior.

Testing

Add integration coverage for page refill across database-only and scan/repair paths, archived threads, sort directions, and project/section scopes. Cover duplicate and unknown IDs, the 100-entry boundary, invalid input, and preservation of section order.

## Why

Clients displaying a saved manual thread order need to list the remaining threads without repeating those already loaded separately.

## What changed

Add optional `excludedThreadIds` to `thread/list` and the generated protocol bindings. Apply exclusions before the result limit, refilling pages until the requested limit is reached or history is exhausted while preserving existing filters and ordering. Clients must send the same exclusions on each page.

Accept up to 100 entries, counting duplicates toward the bound. Reject invalid IDs or oversized lists with JSON-RPC error `-32602` rather than truncating them. Omitted, null, and empty lists preserve existing behavior.

## Testing

Add integration coverage for page refill across database-only and scan/repair paths, archived threads, sort directions, and project/section scopes. Cover duplicate and unknown IDs, the 100-entry boundary, invalid input, and preservation of section order.

GitOrigin-RevId: e9a884e642ae25d166aff7e275469d1d43179c6c
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/e9a884e642ae25d166aff7e275469d1d43179c6c branch from efc666e to 1fbe15c Compare October 7, 2026 06:07
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-07T06:07:59.708188Z efc666e 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 merged commit 1fbe15c into main Oct 7, 2026
13 of 18 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/e9a884e642ae25d166aff7e275469d1d43179c6c branch October 7, 2026 06:08
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 7, 2026
@Immtar
Immtar deployed to issue-triage October 7, 2026 06:11 — with Image GitHub Actions Active
@Immtar
Immtar deployed to issue-triage October 7, 2026 06:11 — with Image GitHub Actions Active
@Immtar
Immtar deployed to issue-triage October 7, 2026 06:11 — with Image GitHub Actions Active
@nekoshrimp
nekoshrimp deployed to issue-triage October 7, 2026 06:14 — with Image GitHub Actions Active
@nekoshrimp
nekoshrimp deployed to issue-triage October 7, 2026 06:14 — with Image GitHub Actions Active
@nekoshrimp
nekoshrimp deployed to issue-triage October 7, 2026 06:14 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
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.

7 participants