codex icon indicating copy to clipboard operation
codex copied to clipboard

Failed to archive conversation + seeing threads that do not have any reason for existing?

Open ebarti opened this issue 5 months ago • 12 comments

What version of the Codex App are you using (From “About Codex” dialog)?

26.609.41114

What subscription do you have?

Pro 20x

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

Trying to archive a chat fails with "Failed to archive conversation".

This seems to happen in threads that "magically" appeared. By "magically" I mean that I did not spawn them via CLI or Codex App, and that the original thread where they would be spawned in (as they are part of a given worktree + git branch) does NOT signal any agent created events. Furhtermore, AFAIK, subagent threads do not show in the main UI anyway.

Feedback IDs: 019ec7c8-ecba-7a73-9d0d-4d17abb29905 019ec7e5-544d-7560-974d-0e25902cae81 (random thread)

What steps can reproduce the bug?

I am not sure at this time.

What is the expected behavior?

Thread archiving should work correctly.

(Potentially - unconfirmed) Subagent threads should not show up in the Codex App.

Additional information

Feedback IDs:

019ec7c8-ecba-7a73-9d0d-4d17abb29905 019ec7e5-544d-7560-974d-0e25902cae81 (random thread)

ebarti avatar Jun 15 '26 08:06 ebarti

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #28080
  • #27202
  • #27513
  • #28204

Powered by Codex Action

github-actions[bot] avatar Jun 15 '26 08:06 github-actions[bot]

Issue is still happening after updating to 26.609.71450

ebarti avatar Jun 16 '26 13:06 ebarti

Looks like 26.611.61753 is not displaying those random threads in the sidebar anymore.

ebarti avatar Jun 17 '26 08:06 ebarti

Issue happens again on 26.616.71553 - random threads reappeared

ebarti avatar Jun 23 '26 14:06 ebarti

I’m seeing this on Codex Desktop 26.616.81150 on macOS as well.

Local evidence from one affected thread:

  • UI archive action shows Failed to archive conversation.
  • The app-server log records a thread/archive RPC for the thread: 019ea801-c5a4-70f2-a825-20f3f52d210f
  • After the RPC, the canonical row in ~/.codex/state_5.sqlite still has: archived = 0 archived_at = null
  • The rollout file still exists: ~/.codex/sessions/2026/06/09/rollout-2026-06-09T00-12-29-019ea801-c5a4-70f2-a825-20f3f52d210f.jsonl
  • The app-level thread archive API cannot see the same thread ID and returns: No Codex thread found for threadId: 019ea801-c5a4-70f2-a825-20f3f52d210f
  • Searching for the thread from the app thread index also returns no rows, even though SQLite still has the thread.

This seems like the archive RPC is being invoked, but the archive state is not persisted, and then the app/index layer cannot resolve the still-existing thread. I’m also seeing this pattern across multiple recent thread/archive RPCs, not just this one thread.

Audacity88 avatar Jun 24 '26 23:06 Audacity88

I’m seeing what looks like the same issue on Codex Desktop 2026.06.28.063306-1 / codex-cli 0.142.3.

Symptoms:

  • Sidebar gets polluted with many New chat entries.
  • This seems to happen when subagents spawn or when new chats are created.
  • Archiving those entries from the UI fails with Failed to archive conversation.
  • Clicking/resuming one of them can fail with: Failed to resume chat: no rollout found for thread id <id>.

Local evidence:

  • ~/.codex/state_5.sqlite had many unarchived rows with source='subagent'.
  • The app archive API failed on those leaked subagent IDs with No Codex thread found.
  • Launcher logs also showed IAB_LIFECYCLE entries for client-new-thread:*.

Workaround:

  • Manually archiving the leaked source='subagent' rows in SQLite cleaned the sidebar.
  • Disabling features.in_app_browser = false appears to reduce or stop the recurrence, but I’m still testing after reload.

This looks like subagent, ephemeral, or browser-sidebar threads are being surfaced as normal conversations, but later cannot be archived or resumed because they do not have a normal rollout/thread backing record.

OmerFarukOruc avatar Jun 28 '26 10:06 OmerFarukOruc

Had same happening. Can't perform basic stuff like archiving the chats. Wow.

MoralStrike avatar Jun 29 '26 00:06 MoralStrike

Still happening on Version 26.623.61825 • Released Jun 29, 2026

ebarti avatar Jun 29 '26 08:06 ebarti

Finally fixed for me in "ChatGPT Codex"! The name is lame but good job on the bugfix.

Audacity88 avatar Jul 09 '26 18:07 Audacity88

Not for me - I actually have a new bug I guess

Image

🤷🏼

Image

ebarti avatar Jul 09 '26 18:07 ebarti

Finally fixed for me in "ChatGPT Codex"! The name is lame but good job on the bugfix.

Thought it was fixed but I guess not.... aargh.

Image

Audacity88 avatar Jul 12 '26 00:07 Audacity88

Seeing this on Windows app (see 019f63bb-0dd1-79d1-b5ad-7f5adc61a2bb)

kendonB avatar Jul 18 '26 09:07 kendonB

The archive failure and “threads with no agent-created events” look related through missing ownership/provenance, not just archive UI state.

I would expect each thread to carry an owner record: visible user-created task, internal helper/title run, subagent/fork, recovered orphan, or imported/local-only session. Archive should then operate on that owner state and fail with a typed reason if ownership is missing or inconsistent. A random thread with no creation event should be repairable as an orphaned/recovered session, not left in a state where archive cannot decide what it is allowed to mutate.

I maintain Better Agent (https://github.com/ofekron/better-agent), where hidden/background sessions are still modeled as durable owners for exactly this reason. If useful, a star helps other desktop-agent builders find it.

ofekron avatar Jul 21 '26 03:07 ofekron

I am also seeing this underlying issue in ChatGPT/Codex desktop 26.715.72359 (build 5718) on macOS 26.5.2.

In my case, an ephemeral/helper thread is exposed in the desktop UI as a resumable local task. Opening it causes thread/read to succeed, followed by an automatic thread/resume that fails with:

Failed to resume chat
no rollout found for thread id [redacted]

The persisted parent task remains healthy and resumable. The exposed helper has no saved rollout and is identified as ephemeral, so retrying cannot succeed.

Expected behavior: ephemeral/helper threads should not be exposed as resumable local tasks. If shown, they should be read-only or route back to the persisted parent, and the app should not issue thread/resume for a thread with no rollout.

I have the exact thread IDs, timestamps, and desktop log sequence available for maintainers through a private support channel if needed.

SamZhang0 avatar Jul 23 '26 05:07 SamZhang0

019f8cae-9822-7ef1-bb7d-f54ded3be374

kendonB avatar Jul 25 '26 20:07 kendonB