Skip to content

Preserve SQLite row metadata in thread listings - #61866

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/838036250d38e6ca1b403741de3e6dd3eafdd04b
Nov 16, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Preserve SQLite row metadata in thread listings

Why

Direct SQLite listings already contain thread titles and section ordering metadata. Converting those rows to rollout summaries and fetching metadata again discards the original per-row values.

What changed

Build thread listings directly from the collected SQLite rows, retaining their titles, section positions, and section entry times. Preserve row order and each occurrence's metadata when a thread appears more than once during pagination refill. Continue resolving legacy names from the session index with the existing title precedence.

Keep rollout listings and search name enrichment best effort, and avoid redundant metadata queries for direct SQLite listings.

Testing

Add coverage for repeated legacy rows retaining indexed names and distinct timestamps and section positions. Extend listing tests to check SQLite titles and section metadata in recent-thread results.

## Why

Direct SQLite listings already contain thread titles and section ordering metadata. Converting those rows to rollout summaries and fetching metadata again discards the original per-row values.

## What changed

Build thread listings directly from the collected SQLite rows, retaining their titles, section positions, and section entry times. Preserve row order and each occurrence's metadata when a thread appears more than once during pagination refill. Continue resolving legacy names from the session index with the existing title precedence.

Keep rollout listings and search name enrichment best effort, and avoid redundant metadata queries for direct SQLite listings.

## Testing

Add coverage for repeated legacy rows retaining indexed names and distinct timestamps and section positions. Extend listing tests to check SQLite titles and section metadata in recent-thread results.

GitOrigin-RevId: 838036250d38e6ca1b403741de3e6dd3eafdd04b
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/838036250d38e6ca1b403741de3e6dd3eafdd04b branch from 0654e72 to b8cbdbf Compare November 16, 2026 19:30
@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-16T19:30:37.912164Z 0654e72 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 b8cbdbf into main Nov 16, 2026
10 of 24 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/838036250d38e6ca1b403741de3e6dd3eafdd04b branch November 16, 2026 19:30
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 16, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — b8cbdbfe Deployed Nov 16, 2026 by sympho-ru via Generate label suggestions #63840
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