Repository navigation
Description
Summary
On Windows, Settings > Archived chats > Delete all aborts the whole operation when one archived paginated thread is still referenced as history_base by an active fork. The UI only shows a generic failure toast and leaves every archived thread in place.
Environment
- Windows 10.0.19045 x64
- Codex Desktop package: 26.818.5229.0
- Bundled app-server / CLI runtime: 0.149.0-alpha.4.1
- Local archived Codex threads visible in the UI: 121
Reproduction and evidence
- Keep an active fork whose session metadata has history_base.thread_id pointing to an archived paginated parent.
- Open Settings > Archived chats. The referenced parent is the first listed archived item.
- Choose Delete all and confirm.
- The UI shows the generic localized equivalent of Archived chats could not be deleted. No visible archived thread is removed.
Sending thread/delete for that first parent directly to the bundled app-server returns JSON-RPC code -32600 with:
cannot delete thread <parent>: forked history still references it
Using the same bundled supported CLI path, codex delete --force , successfully deleted the other 120 visible archived threads. The referenced parent correctly remained protected. This isolates the bulk failure to one protected item rather than general filesystem corruption or permissions.
Expected behavior
Delete all should process items independently or preflight the full set. It should:
- delete every deletable archived thread;
- skip the fork-referenced parent;
- report the exact protected-thread reason and the number deleted/skipped;
- avoid reducing an intentional referential-integrity guard to a generic all-or-nothing error.
Related
- Archived chats show a Delete button, but deletion does not work #28095 covered the older single-delete failure and is closed as fixed.
- Session delete removes the archive payload but leaves a stale database row, then errors on every subsequent delete #36558 concerns payload/database residue; this report is specifically the bulk UI abort caused by an active fork reference.
I am omitting the screenshot and real thread IDs because they contain private task titles. The exact error, versions, counts, and before/after behavior above were captured from the live Windows installation.
Activity
edwardswhiskeyblues-alt commentedon Oct 24, 2026
Additional current-build repro: single-item sidebar delete hides the active-fork dependency
The affected user explicitly requested this sanitized follow-up. This appears to be the same protected-parent condition, now reproduced through the single-task permanent-delete action in the main sidebar, rather than Archived chats > Delete all.
Environment
26300.9711, x6426.1016.8622.0codex-cli 0.163.0-alpha.11.2Reproduction
A -> B -> C -> D.Das the active canonical task; the older ancestors are idle/not loaded.AorBindividually.Actual behavior
Cannot delete task.No direct
thread/delete, manual state edit, orcodex delete --forcewas attempted, specifically to avoid deleting the active descendant lineage.Why this matters
The refusal itself is safe, but the unexplained toast makes a referential-integrity guard look like corruption or a transient failure. A user may repeatedly retry, compact unrelated tasks, manually alter local state, or escalate to
codex delete --force. Official app-server behavior documents thatthread/deleteremoves the selected thread and spawned descendant threads, so an uninformed workaround can cause permanent loss of the active successor.Expected behavior
Before confirmation, or in the refusal UI, show a dependency-specific message such as:
The dialog should:
CancelandView descendants(or equivalent);Scope / evidence limits
Mapotofsky commentedon Oct 24, 2026
Additional reproduction on 2026-10-24: individual deletion from Settings > Archived chats still hides the fork-history reason.
26.1021.3705.00.164.0-alpha.11.1thread/deleterequests to that installed app-server returned-32600:cannot delete thread <redacted>: forked history still references it.history_base.thread_idinspection confirmed unarchived fork conversations depend on those archived histories, including references through historical rollout segments.The requested fix is frontend error clarity, while retaining the backend integrity protection:
Real thread IDs, chat titles, account identifiers, local paths, transcripts, and raw logs have been omitted. This is additional current-version evidence for this existing issue, not a request to bypass the history-reference guard.