Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
0.151.0-alpha.7.2
What subscription do you have?
Plus
What platform is your computer?
Darwin 25.6.0 arm64 arm
What issue are you seeing?
A long-running conversation in the Codex desktop app has lost most of its visible history. Messages that were previously displayed, including messages sent recently, no longer appear when opening the task.
The messages have not actually been deleted: the complete conversation is still present in the local session transcript. This appears to be a UI rendering or session-loading issue that occurred after the conversation was compacted.
What steps can reproduce the bug?
- Open a task in the Codex desktop app.
- Continue using the same task until the conversation becomes long enough to trigger context compaction.
- Close or navigate away from the task.
- Open the task again.
- Observe that only part of the conversation is displayed.
- Send additional messages and reopen the task.
- Some of the newly sent messages may also be missing from the visible history.
What is the expected behavior?
Expected behavior
The complete user-visible conversation should remain accessible after context compaction. Compaction may summarize context internally for the model, but it should not remove or hide messages from the conversation UI.
Actual behavior
A significant portion of the conversation disappears from the UI. The task appears incomplete or truncated, even though the missing messages remain stored in the local JSONL session transcript.
This makes it look as though the conversation and recent work have been permanently lost.
Additional information
Additional information
- Session/comment ID: 01a05d90-8d56-73c3-96c8-58db713d7f6f
- Codex version: 0.151.0-alpha.7.2
- Application: Codex desktop
- Session origin: codex_work_desktop
- Session source: chatgpt_handoff
- Operating system: macOS 26.6.2 (Build 25G83)
- Architecture: Apple Silicon (arm64)
- The local transcript still contains the missing messages.
- An internal compaction event appears in the session before the history-display problem.
- The issue affects both older messages and messages sent after the conversation was reopened.
Impact
The user cannot reliably access previous research, decisions, links, or recent responses through the interface. Because the UI gives no indication that the messages still exist locally, it creates the impression of permanent data loss.
Activity
github-actions commentedon Sep 2, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
baishuai001 commentedon Sep 4, 2026
Additional Windows reproduction with a narrower diagnostic result:
Environment
Observed behavior and integrity checks
items: [], so their messages appeared missing in the Desktop UI.turnLimit: 1and a cursor immediately after its rollout end ordinal returned its complete stored items.This points to history-page response budgeting and/or transcript merge/rendering behavior when a page contains one oversized turn, rather than deletion or index corruption.
Expected fallback behavior
If a history page would exceed a response/output budget, pagination should stop before the oversized turn, or preserve at least the user message and final assistant message for every returned turn. A completed turn should not be returned as
items: []merely because another turn on the same page is very large.Privacy note
No conversation content, project names, local paths, thread/turn identifiers, usernames, credentials, server information, or raw logs are included here. Sanitized diagnostic excerpts can be provided privately if maintainers need them.
lesyuk commentedon Sep 4, 2026
I can reproduce a related history-rehydration issue in ChatGPT for macOS, not only in the standalone Codex desktop UI.
A response generated in the ChatGPT macOS client was visible in the same conversation immediately after completion, but disappeared from the timeline after restarting the client.
Local inspection shows the response was persisted successfully as a canonical assistant
response_itemwithphase: final_answerin the local Codex rollout transcript. An internal compaction event occurred immediately before this turn. Therefore this appears to be a UI/session rehydration failure after compaction, rather than data loss or an Agent Window ownership/lock issue.Environment:
Expected result: every previously visible assistant response remains visible after restarting the same ChatGPT macOS client.
Actual result: the response remains in the local transcript but is omitted from the restored conversation timeline.
I can provide sanitized timestamps and relevant session diagnostics privately if useful.
StreamVi commentedon Sep 4, 2026
Confirming the same user-visible symptom on Windows.
Environment
OpenAI.Codex 26.901.2854.0Additional reproduction evidence
This occurred in one long-running local Codex task containing many user/assistant turns and tool calls. A large part of the previously visible conversation disappeared from the task UI. The task itself remained open and accepted new messages, but the user could no longer review the earlier discussion.
After continuing the same task, the visible history disappeared again later. This is therefore recurrent within one task, not only a one-time failure immediately after reopening it.
The sequence appears consistent with this issue:
I have not inspected or modified the local session transcript, so I cannot independently confirm whether the missing messages remain in JSONL storage. No private prompts, workspace paths, repository details, task IDs, account identifiers, or credentials are included here.
Expected behavior: compaction should affect model context management only. The user-visible conversation should remain accessible, or the UI should clearly show a recoverable loading/compaction state instead of silently hiding messages.
StreamVi commentedon Sep 5, 2026
Another recurrence on Windows after the Codex desktop app updated.
Environment
OpenAI.Codex 26.901.5280.0The same long-running task again lost its previously visible conversation history in the desktop UI. The task remains active and accepts a new user message, but the user has to ask the agent to reconstruct where the work stopped because the prior messages are no longer visible.
This is a new recurrence after the earlier Windows/WSL confirmation on version
26.901.2854.0, so the symptom remains present in26.901.5280.0. The affected task contains many turns and tool calls and has continued across context compaction.I did not inspect or alter the local transcript. No prompts, task IDs, account identifiers, workspace paths, repository details, local URLs, or credentials are included.
Lion-Leporidae commentedon Sep 5, 2026
I can reproduce the same durable-history / missing-UI-history failure on Windows with a narrower, read-only diagnosis.
Environment
Observed, sanitized facts
thread/readreports no older page (nextCursor: null) even though the canonical rollout contains later completed turns.Current
mainappears to include a generic duplicate/regressed-ordinal skip path and a regression case incodex-rs/thread-store/src/local/thread_history_materialization_tests.rs. That is encouraging, but this older installed client does not automatically repair an already-stalled projection. A release/backport should also provide automatic catch-up/reprojection for existing affected threads, plus a visible stale-history state or supported repair command.No task ID, paths, prompt text, account data, logs, or raw transcript are included here.
TheHolyHedonist commentedon Sep 7, 2026
I am experiencing the same user-visible symptom on macOS: a long-running conversation is truncated in the application UI, while a prior Codex inspection reported that the missing messages and assistant responses are still present in the local conversation log. I have not verified whether compaction triggered my particular case.
Environment
Darwin 25.6.0 arm64 arm.Observed discrepancy
The UI stops at an older exchange from approximately September 5 at 17:00. A prior local-log inspection reported later user and assistant exchanges from September 6 at 19:31, 19:41 and 20:10, and September 7 at 06:07 and 06:45. All times are Europe/Paris (UTC+02:00). Those later exchanges are inaccessible through the UI.
More than 24 hours of planning, technical discussion and implementation history are affected, blocking ongoing work. The exact trigger and underlying mechanism have not been established in my case.
Related in-app feedback ID:
01a071c9-a846-7c81-8a35-41ffb0a3a4d3(feedback ID, not a verified affected-session ID).Please correlate this report with the in-app feedback and provide a supported way to restore the existing missing history in the application, in addition to preventing future occurrences. Raw transcripts and private project/server details are omitted.
luneth8437-cmd commentedon Sep 8, 2026
Confirming the same issue on macOS with a locally verified transcript/UI mismatch.
Environment
com.openai.codex)Sanitized evidence
task_startedevents but only 10 matchingtask_completeevents. One old turn remains reported asinProgresswith no terminal event.read_threadoutput continues to surface the stale September 2 turn asinProgress, which may be interfering with history projection/rendering.This looks like a history rehydration/projection problem involving an orphaned in-progress turn in a compacted, long-lived task, not data loss. Please provide a supported way to reproject/repair an existing affected thread as well as preventing future recurrences.
Privacy note: no prompt content, task/turn IDs, account identifiers, local paths, project details, or raw logs are included.
eggegggo111-oss commentedon Sep 9, 2026
Additional Windows case with a model/compaction correlation:
turn_contextrecordsgpt-6-astra.compactedevent at ordinal 85, followed by anothergpt-6-astraturn context.hasMore=falseand no next cursor.The user observed the disappearance after using GPT-6 Astra for the research turn. This is a temporal correlation, not proof that the model itself is the root cause; the affected boundary could be Desktop history projection, compaction replay, or index synchronization.
Expected: model switching/context compaction must preserve the complete user-visible transcript. If projection fails, Desktop should rebuild from the local JSONL or surface a recovery action instead of returning no older history.
Privacy: the user explicitly approved this public, de-identified report. No thread ID, project name, absolute path, prompt content, account data, or raw log is included. A sanitized diagnostic report and an untouched local snapshot were preserved.
noclascio commentedon Sep 10, 2026
Adding a severe variant of this on an older build — in my case the transcript was not preserved on disk.
Same symptom in the UI, but compaction rewrote the rollout
.jsonlin place rather than only affecting what the app renders:The rewrite is visible in the filesystem metadata: the filename still encodes the original session
start (
rollout-2026-07-11T15-27-42-<thread-id>.jsonl) while the inode's birth time is the momentof compaction — two months later. Records at the head of the new file carry the old July
timestamps but contain September message IDs.
What survived is a single
compactedrecord whosereplacement_historyarray holds 584 entries,all of them
role: "user", plus onecompactionentry withencrypted_content. Everyassistant turn was dropped from disk, not just from the view.
Environment: Codex desktop
26.903.61454(build 8378), macOS26.6.1, Apple Silicon. Rolloutrecords
cli_version: 0.144.0-alpha.4. Long-running remote-control session (~2 months, ~3.07Bcumulative tokens per
token_count), which had spawned ~170 sub-agent threads and wasauto-loaded at app-server startup via
startup_prewarm.I only recovered the conversation because an APFS local Time Machine snapshot happened to exist
from 12 minutes before the rewrite. Without that it would be unrecoverable.
Two follow-on effects that made it unfixable from outside the app, in case they're the same
subsystem:
legacy_to_paginated_v1ran against the truncated file afterwards. It flippedthreads.history_modetopaginatedand wrotethread_history_projection_statewith thecursor already at EOF, projected zero items, and recorded no row in
rollout_migration_skipped_rollouts. Becausehistory_modeis nowpaginated, re-running thesweep never revisits the thread. 2,000+ other threads on the same machine migrated fine.
For an always-loaded thread,
thread/resumetakesresume_running_threadand composes fromthe in-memory session, which starts empty on each load — it never reads
thread_items.Repopulating
thread_itemscorrectly had no effect on what any client displayed:If it's useful, I still have both rollouts (pre- and post-compaction) and app-server logs covering
the migration and every resume. Happy to share privately — the pre-compaction file is my full
working history, so not something I can attach publicly.
The distinction I'd flag for triage: if compaction is only meant to bound the model's context
window, it shouldn't be touching the durable transcript at all. Here they're the same file, so
trimming context destroyed the record.
forsixsix66-art commentedon Sep 12, 2026
I can independently reproduce this on Codex Desktop for macOS (macOS 15.7.4, Apple Silicon/arm64).
This has now happened 3–4 times in a long-running local task. Earlier user and assistant messages that were previously visible disappear from the task UI after the conversation becomes long/compacted. Recently sent messages can also stop appearing when reopening the task.
I verified that the underlying local rollout JSONL still contains the missing messages in the correct order, so in this case it appears to be a UI/session-loading or history-projection problem rather than deletion.
Impact: these conversations contain product decisions and research that are user-owned data assets. When the UI hides them without warning or a recovery action, the user reasonably believes the work has been lost and has to reconstruct it manually.
Expected behavior:
Privacy note: I am not attaching the raw JSONL because it contains private project content and local paths. No conversation content, project names, task IDs, account details, credentials, or local paths are included in this report.
roli-lpci commentedon Sep 12, 2026
For the narrower case where the visible history is missing but the local rollout JSONL is still intact, Hermes Blind is an open-source Hermes Labs local recovery-anchor CLI.
This is not a fix for this bug: it cannot restore the UI history, repair indexes, reconstruct omitted assistant messages, or recover data that has been deleted or rewritten.
When the transcript still exists, from the affected project directory:
It reads the local Claude Code/Codex transcript and writes an inspectable anchor from the first user request; it makes no model or network calls. Inspect the generated file before sharing it, since it can contain text from that first user turn. If discovery selects the wrong session or refuses, use the explicit
--session /path/to/rollout.jsonlform in the recovery documentation.This is only a mitigation while the local transcript remains intact. The on-disk-loss variant needs a product-level preservation and recovery fix.
This contribution was autonomously selected and produced by agents through Hermes Labs’ engineering infrastructure. Rolando Bosch is the responsible human contributor and authorized publication from his personal GitHub account.
smixs commentedon Sep 13, 2026
Подтверждаю повторение на macOS 13 сентября 2026 года. В этом случае пропавшая история сопровождалась неверными индикаторами выполнения: интерфейс показывал
Running command for 7m 46sи7m 10s, хотя соответствующая команда и весь этап уже завершились.Окружение
26.908.40834, build8881, bundlecom.openai.codex.0.154.0-alpha.6.2; в журнале рабочего процесса также встречается версия0.154.0.27.0(26A428), arm64.gpt-6-astra,xhigh.paginated.Что произошло
Это наблюдавшаяся последовательность, а не минимальное детерминированное воспроизведение. Не установлено, является ли компактация непосредственной причиной.
Проверенные факты
Все времена ниже UTC, 2026-09-13.
compacted.completed,exit_code=0, с непустым успешным выводом.task_complete.idle/completed,error=null; двухэтапное чтение истории возвращало оба завершённых этапа сitems: [].maybe_resume_successс одновременнымиlatestTurnStatus=completedиmarkedStreaming=true. Смысл последнего поля как самостоятельного признака ошибки не установлен.В списке живых процессов были серверы превью; соответствующей длительно работающей проверочной команды не было. Опубликованный результат независимо проверен: 12 файлов доступны и побайтно совпадают с локальными артефактами. Следовательно, отсутствие финала в интерфейсе нельзя объяснить тем, что агент всё ещё выполнял деплой.
Уточнение по истории и пагинации
thread_history_projection_stateдостиг точно конца файла:next_rollout_byte_offset=30938460,next_rollout_ordinal=1295.thread_itemsдля проблемного завершённого этапа находятся 69 элементов: 3 пользовательских сообщения, 7 сообщений ассистента, 25 команд, 25 элементов reasoning, 6 MCP-вызовов, 2 изменения файлов и 1 компактация. У предыдущего завершённого этапа есть ещё 32 элемента.read_threadсturnLimit: 1и курсором сразу после конца нужного этапа вернул все 69 элементов. Более ранний обычный запрос сturnLimit: 2возвращал для этого же этапаitems: [].Последние два наблюдения сделаны в разное время; между ними пользователь снова открывал задачу и обращался к ней. Поэтому это не доказательство исключительно ошибки лимита размера страницы. Однако текущая проекция полна, а чтение отдельного этапа работает. Это похоже на уже описанное здесь различие между сохранёнными элементами и пустыми оболочками этапов в ответе истории. Ошибку ordinal mismatch из #43124 в этом случае не установили.
Ожидаемое поведение
items: [].Связанный симптом зависшего UI описан в #24287. Отдельный случай зависания компактации с транспортными ошибками добавляю в #42896; общая первопричина этих сбоев не установлена.
В комментарий не включены содержимое переписки, имена проектов, идентификаторы задач, абсолютные пути, учётные данные, полные журналы или скриншоты с частными данными. Исходный журнал сохранён отдельно; его содержимое и строки баз данных при этой диагностике не редактировались.
alpacawooo commentedon Oct 14, 2026
Desktop history pagination can return four nonempty turns with zero items when one long turn exhausts the shared budget
Prepared by Codex at the account holder's explicit request. User-confirmed symptoms and isolated code tests are distinguished below.
Environment
Observed user-facing behavior
Four earlier user/assistant exchanges disappeared from the conversation view after a long tool-heavy turn. The stored history still contained their completed turns and final answers. Searching within the conversation using Cmd-F made all four exchanges visible again; the user confirmed this recovery.
Reproducible loader behavior
A read-only inspection of the installed desktop history loader found a shared initial item budget of 500 for a five-turn batch. Ordinary Codex turns have no smaller per-turn cap on this path. A first large turn can consume all 500 slots; the remaining turns are then returned with zero items and without their opening-user-message fallback.
The affected batch had item counts, newest first, of
[809, 386, 12, 145, 25]. Executing the installed loader in isolation with mocked pagination responses for those counts produced[500, 0, 0, 0, 0]loaded items. The app resume log recorded a five-turn batch headed by the same long turn. Search subsequently triggered successful turn/item requests.This establishes the allocation failure in the installed loader. It does not establish the exact historical renderer state or prove this was the only contributor to the user-facing incident.
Candidate correction and limited validation
Reserve a small item budget for each remaining nonempty turn before allowing the current turn to consume the shared budget. A candidate reserving two entries for each remaining turn returned
[492, 2, 2, 2, 2]with the same total limit of 500 and retained the opening-user-message fallback for partial turns.The isolated tests covered the affected counts, all-long-turn batches, short ordinary conversations, and the existing 100-items-per-turn path. Short conversations and the capped path were unchanged. Actual renderer behavior, eviction, reconnect and further pagination still need application-level validation. The candidate has not been installed.
Please consider ensuring that nonempty turns always retain a renderable/loading fallback, and testing budget allocation together with subsequent item loading and history eviction. Similar user-facing history disappearance is discussed in #42311; this report offers a specific loader failure candidate rather than asserting all incidents share the same cause.
No conversation text, session IDs, account identifiers, workspace paths, raw logs, credentials or proprietary asset contents are included in this draft.
Houssian commentedon Nov 17, 2026
I can reproduce this on the current Codex desktop app for macOS (
26.1111.21308, build27194, production channel, reported up to date by the app updater).In a long-running task with repeated context compaction, substantial stretches of both user and assistant messages disappeared from the conversation view. This includes messages exchanged within the preceding five minutes and a status update the assistant had just sent. The task remained active and accepted new messages. A read-only thread-history inspection still returned the missing messages, so this is a display/history-loading failure rather than confirmed data deletion.
After restarting Codex, some messages reappeared, but many are still absent from the UI. Restarting is therefore only a partial workaround in this case. Please provide a way to restore the complete visible transcript and prevent further message loss from the view. No private conversation text, task ID, account information, or project paths are included here.