Repository navigation
Description
Summary
In Codex Desktop on macOS, a persistent agent thread acknowledged a current read-only research assignment delivered through codex_app.send_message_to_thread. After compaction, it resumed an unrelated user request from 24 days earlier and edited six files in a shared working tree.
This report documents one observed incident and a local transcript inspection. It is not a deterministic reproduction, and the internal root cause is not established.
Environment
- Codex Desktop on macOS.
- Locally observed macOS version: 27.0.1, build 26A434.
- Model recorded immediately before and after the affected compaction:
gpt-5.6-luna. - Reasoning effort:
low. - Persistent thread receiving assignments from a coordinating thread through
codex_app.send_message_to_thread. - Exact Desktop build at the time of the incident was not independently confirmed. A version recorded at session creation is not treated as the incident build.
Observed sequence
Times are UTC on 2026-10-16:
| Time | Observation |
|---|---|
| 15:43:29 | The thread received the current research assignment through inter-thread delivery. |
| 15:43:32 | The assistant explicitly acknowledged the current research scope. |
| 15:44:42.504 | A compacted record was persisted. |
| 15:44:45 | The assistant announced that it would carry out the unrelated historical UI modification request. |
| 15:45:18 | It applied a patch to six repository files. |
The historical direct user request was created on 2026-09-22. No new human authorization for that UI task was observed between the current research delivery and the patch.
The six-file patch changed a Workshop stylesheet and wrappers in five component stories. The changes were subsequently isolated and removed with explicit human authorization.
Sanitized diagnostic observations
The current research assignment was represented as a function_call_output in the pre-compaction record. It was still present in the compaction record's guardian_history and retained_context.sender_deliveries.
In contrast, the visible replacement_history user-message sequence ended with the historical UI write request. Its visible textual items did not contain the current research assignment. The replacement history also contained an opaque compaction item with encrypted_content; its internal contents were not inspectable.
The compaction record's attribution metadata included:
{
"mcp_attribution": {
"status": "attribution_error",
"error_reason": "history_missing_checkpoint"
}
}The attribution sources included codex_app.send_message_to_thread.
This attribution error is a diagnostic clue, not proof that it caused the task regression. It is also not established that the current assignment was absent from the opaque compacted context.
Expected behavior
Compaction should preserve the active delegated assignment and its restrictions. A historical user request should not regain current-task authority simply because it remains explicit in replacement history.
If the current assignment cannot be recovered reliably, the assistant should identify that uncertainty before executing unrelated writes. Filesystem write capability must not be confused with authorization to perform a historical task.
Actual behavior and impact
The assistant abandoned the acknowledged research assignment, treated a 24-day-old request as current, and modified six files in a working tree shared with concurrent development.
No deletion, credential access, or data exfiltration is claimed. No overlap with pre-existing edits in those six files was found in the retained pre-patch status and subsequent patch comparison. The scope violation nevertheless required investigation and a carefully bounded reversal.
Requested investigation
Please investigate:
- Preservation and prioritization of current inter-thread assignments across compaction.
- The distinction between historical direct-user instructions and current tool-delivered assignments.
- Whether missing attribution checkpoints can affect task reconstruction or authorization continuity.
- Regression coverage for a current read-only task continuing across compaction while an older write request remains in explicit history.
No relaxation of approval or safety controls is requested.
Related reports
- Codex App replays a completed request after compaction and abandons the active delegated task (macOS) #47592: completed request replay after compaction while an active delegated task is abandoned.
- [Bug] Inter-agent message can cause Codex to resurrect and answer an old user prompt #45894: historical user prompts resurfacing after inter-agent delivery.
- [Windows Desktop] Direct user approval becomes untrusted after history restoration (history_missing_checkpoint) #54456: authorization provenance and
history_missing_checkpoint.
These reports have related symptoms or diagnostic fields. A shared root cause is not established. This incident adds a read-only-to-write scope violation, a timestamped acknowledgement/compaction/patch sequence, and the visible replacement-history versus retained-delivery distinction.
Privacy
This public report intentionally excludes project names, local paths, account details, chat/session/turn identifiers, original conversation excerpts, source code, raw transcripts, screenshots, and attachments. Only sanitized technical observations are included.
Activity
briancl2 commentedon Nov 8, 2026
Historical replies interpreted as current after compaction
Observed on a macOS desktop chat: two completed, one-time user answers reappeared byte-for-byte as
role=useritems in two persisted compaction windows. Their text carried no original dates. Original message IDs and nestedcreate_timetimestamps were preserved, so total provenance loss is not established. After the later window the agent treated the old answers as current and announced unrelated follow-up work. It began read-only historical recovery before a parent correction, then explicitly withdrew the interpretation. No authentication/security change was observed in the reviewed detour.Current environment, observed November 8, 2026: ChatGPT desktop 26.1103.41825, build 25679, bundle com.openai.codex; bundled CLI reports 0.167.0-alpha.3.2; macOS 26.1/25B78, arm64. These are current installed metadata and matching running paths, not retrospective event-build or loaded-image attestations. The CLI version does not identify the desktop reconstruction implementation.
Reproduction is limited to inspection of two existing records. No deterministic synthetic reproducer, new compaction run or internal cause is established. Current-assignment retention inside encrypted content is unknown; sender-context retention does not prove assignment retention. Whether the model received or could use the original timestamp metadata is also unknown.
Requested product investigation: compare original authority, completed-question state, persisted replacement items, current assignment and actual model-visible input at reconstruction. Preserve historical identity/age without presenting a completed answer as a new instruction. Determine whether the boundary is serialization, retention selection, model-visible provenance or interpretation.
A prospective benign reproducer could complete a one-time formatting choice, select an unrelated read-only task, allow ordinary compaction, and inspect whether the old choice is treated as new authority. This is a proposed test, not a reproduced result.