Repository navigation
Description
Account: aprilliucs
Environment
- OS: macOS.
- Application:
/Applications/ChatGPT.app, bundle IDcom.openai.codex. - Application version:
26.903.71938, build8576; bundled app-server version:0.153.4. - Task:
Integrate code optimization example. - Task ID:
01a061a4-423f-7ff2-bece-4e389e57ed63. - Affected history segment:
01a08a07-4298-7fb2-9ec8-e19a1ae275bb.
Symptoms and Direct Evidence
- The history retrieval API returns empty
itemsfor some completed turns. The latest turn returned is the test run that began at 16:41 on September 10, 2026, Singapore time; subsequent completed messages are not returned correctly. - The raw session segments still contain the continued testing, deployment, memory-related explanations, and MR creation responses from 17:59 onward.
- Creating a side chat fails. The
thread/forkfailure persists after restarting the application.
Exact error:
method=thread/fork errorCode=-32603
failed to prepare paginated fork: thread-store internal error:
thread history projection for 01a08a07-4298-7fb2-9ec8-e19a1ae275bb
expected ordinal 49397, got 49396Timeline (Singapore Time, UTC+8)
Local Log Locations
~/Library/Logs/com.openai.codex/2026/09/10/codex-desktop-770a787b-d79a-4613-9caf-3098401e79ae-7253-t0-i1-095807-0.log: history projection error around line 943; side chat failure around line 3361.~/Library/Logs/com.openai.codex/2026/09/10/codex-desktop-ac6293b1-8e3b-4a73-8d07-64c865a35a29-46951-t0-i1-122741-0.log: failure persists after restart, around line 483.
Read-Only Verification
- The affected thread is not archived.
- All 15 raw JSONL segments for this task are readable and parseable.
- The affected segment’s projection state records byte offset
39505864and ordinal49397. - This byte offset falls exactly at the start of the
thread_settings_appliedrecord for the new turn at 17:59:22. - The internal write or replay mechanism that triggered the mismatch has not been confirmed. No hypothesis has been treated as the root cause.
Recovery Measures Taken
Visible user messages, assistant responses, and locally available attachments were extracted through read-only access to create independent copies and a source verification manifest. During this recovery process, no Codex databases, raw session files, or configuration files were modified or deleted; the application was not restarted; and no chat content was publicly uploaded.
Requested Support
Please investigate the ordinal consistency issue affecting segmented history projection for long conversations in this version, and provide a supported method to rebuild or repair the index for this task alone. The goal is to restore history display in the original window and thread/fork functionality without losing raw messages or affecting other tasks.
This report contains no conversation content or credentials. Before formally submitting it, please verify that the environment details are appropriate to share. Do not directly attach complete logs, raw session files, or private project conversations.
Activity
github-actions commentedon Sep 10, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
goodman-oai commentedon Nov 16, 2026
Tracked in #42027. Opening a side chat fails at
thread/forkwithexpected ordinal 49397, got 49396, and restarting leaves the mismatch in place. #42027 records the same one-position history mismatch during a paginated fork and tracks repair of the affected chat. Matching fork trace