mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
## Why Default thread listings should stay in timestamp order without scanning subagent threads. Attached-thread listings should use both parent and archive filters even without planner statistics. ## What changed - Add partial indexes for visible interactive threads sorted by creation, update, or recency timestamps. - Use literal source predicates for default interactive listings so SQLite can select the partial indexes. - Extend the attached-parent index to include archive status. ## Testing Add a query-plan test verifying that the default sidebar listing uses the interactive update-time index. Extend app-server coverage to include `chatgpt` custom-source threads in default interactive listings. GitOrigin-RevId: 5844622b7af629cad71e15ec95a8960739d6d447