[Windows app] Active task lost immediately after contextCompaction; continuation only acknowledges project rules
Summary
In Codex Desktop on Windows, an active document-editing task was lost immediately after a recorded contextCompaction event. The assistant ended the turn by acknowledging project rules instead of delivering the result. When the user said "continue", it said it only had project rules and asked the user to restate the task.
The user reports similar incidents occurring frequently recently. The sequence below is one directly inspected occurrence; frequency has not been measured.
Environment
- Product: Codex Desktop on Windows
- Installed package:
OpenAI.Codex, version26.1103.3517.0(queried locally when filing) - Incident date: 2026-11-06, Asia/Shanghai
- Exact model and backend build at the affected boundary: not independently verified
Observed sequence
The affected chat's recent turn history was inspected through read_thread, including user messages, assistant replies, command execution records and the explicit compaction event.
- The user asked to fix page numbering after page 9 in an existing contract.
- The assistant identified broken two-digit page numbers on pages 10–13, created a corrected document and exported a PDF.
- Completed command records showed verification of 13 pages and continuous page numbers. The assistant opened rendered images for visual inspection.
- A
contextCompactionevent occurred in that same unfinished turn. - Immediately afterward, the assistant listed a few files in the working directory and ended with a generic acknowledgment of project rules, without delivering the current task result.
- The user replied "继续" ("continue").
- The assistant replied: "我这边目前只看到项目规则,缺少上一项具体任务内容。请补一句要继续的任务名称或目标,我会接着执行。" Translation: "I currently only see the project rules and lack the previous specific task. Please provide the task name or objective to continue."
- After the user restated the original page-numbering request, the assistant could inspect recent history, locate the existing corrected artifact, and resume verification.
Expected behavior
After compaction, retain or recover the active user request, completed actions, current verification state, output locations and pending delivery. A generic rule acknowledgment should not terminate an unfinished task. A short "continue" should resume that task without requiring the user to reconstruct it.
Actual impact
Work had already reached verification, but task delivery was abandoned. The user had to restate the task, and some verification was repeated. The original history remained readable: this report concerns loss of usable task state during continuation, not deletion of the saved conversation or artifacts.
Evidence limits
The event ordering and visible replies were directly inspected. The compaction replacement payload and actual model input were not inspected, so the underlying cause is not established. This report does not claim a particular feature flag, model or server-side mechanism caused the failure.
Private contract contents, customer names, local paths, thread identifiers and raw logs are omitted.
Related reports
- #57806 — Context compaction loses all context and asks what to work on
- #57608 — Active task lost while saved rollout remains available
- #57983 — Current instructions lost following automatic compaction
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #58708
- #58798
Powered by Codex Action
Additional confirmed occurrence on macOS, with local compaction-record evidence (reported at the affected user's explicit request).
Environment:
- Installed app bundle ID: com.openai.codex
- Version: 26.1106.51428, build 26605 (read from the installed bundle's Info.plist)
- macOS 26.4.1 (25E253); Darwin 25.4.0 arm64
- Incident: 2026-11-12 at 12:30 UTC (20:30 UTC+08:00)
Observed sequence:
- In a long-running chat, the user requested research and an execution plan, then explicitly authorized proceeding with the researched plan at 12:25:16 UTC.
- The saved local rollout contains a
compactedevent at 12:30:16.732 UTC. - Immediately following this boundary, the assistant ended with a generic acknowledgment of the project's AGENTS.md rules instead of continuing the authorized task.
- When challenged, the assistant said it lacked the earlier task and asked the user to restate it.
- A subsequent inspection of the local rollout recovered the original request and authorization. The saved conversation was still present.
New diagnostic evidence compared with the original report:
- The affected
compactedpayload'smessageis an empty string. - Its
replacement_historycontains five entries: one additional-tools entry, three developer-message entries, and one user-message entry containing project/environment instructions. - There are no assistant entries, no task-progress summary, and no prior task request or authorization in that replacement history.
- Another
compactedevent in the same saved rollout, at 04:00:11.779 UTC, has the same empty-message and replacement-entry pattern. Only the later incident's immediate user-visible failure is documented here. - These are structural observations from the persisted local JSONL, not a capture of the actual server-side model input. They support investigating compaction output and continuation-state restoration, but do not establish the underlying server-side cause.
Expected: Preserve the active request, authorization, completed work, and next action across compaction. Do not terminate unfinished work by acknowledging project rules or require the user to reconstruct the task.
Impact: An explicitly authorized task was abandoned at the compaction boundary even though its earlier messages remained on disk.
No full transcript, business data, credentials, local account paths, or internal instruction text is attached. This is one locally inspected occurrence, not a deterministic minimal reproduction or a claim about all compactions.
Related reliability problem from a multi-session frontend development workflow on Windows.
I maintain project rules in AGENTS.md and also keep explicit project decisions/context in separate project documentation. After starting a new chat or resuming long work, Codex sometimes behaves as if earlier project agreements and constraints are unknown, requiring me to restate decisions and remind it to consult the project instructions. The behavior is intermittent: other sessions follow the same workflow correctly.
This makes long-running multi-page projects difficult to manage, especially when changes span static templates, a backend integration, and visual checks.
Expected: on each new session, load and apply the actual project instructions from the selected workspace consistently, and make it clear which project-state documents were loaded. After a compaction boundary, preserve the active task, completed changes, constraints, and pending checks, or recover them from history rather than improvising.
Evidence limits: I have not confirmed a specific contextCompaction event in my case, nor proved that memory of arbitrary past chats is guaranteed. The missing agreements may reflect context-loading/discovery rather than the exact compaction mechanism reported here. A visible “loaded instructions and sources” diagnostic would help distinguish these cases.