mirror of
https://github.com/openai/codex.git
synced 2026-10-25 15:56:38 +00:00
## Why Prompt history is client-owned state, but app-server thread lifecycle responses derived its metadata from the active server configuration. When server and local settings differ, the TUI can advertise metadata for the wrong history log. ## What changed - Pass `LocalSettings` through thread start, resume, and fork response handling. - Build message-history metadata from the local Codex home and history preferences while continuing to use the thread configuration for server-owned session fields. ## Testing - Cover local history metadata across embedded and remote start, resume, and fork flows with deliberately different server settings. - Verify single-entry and batched history lookups return entries from the local prompt history. GitOrigin-RevId: 8b47230a4e9f2d342b8d79fd575d474c9062b05e