mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
## Why Metadata-only `thread/read` requests for loaded threads reread the store to attach a title after already loading persisted metadata. ## What changed Reuse persisted metadata and overlay live settings, returning metadata-only responses without another store read. Keep history loading conditional on `includeTurns` and centralize stored-title trimming and legacy preview fallback handling. ## Testing Extend the in-memory store test to verify that a loaded thread without a rollout path returns its trimmed stored title with exactly one metadata read, while requests with turns still return stored history. GitOrigin-RevId: 74f20914afb44901d7586eb8e944afdae2640c31