openai / openai/codex

[Windows Desktop] Agent-requested cross-task archive fails with "already has an active writer", while manual UI archive succeeds

Open
#46,433 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug session windows-os
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

Summary

In Codex Desktop on Windows, asking the agent in one task to archive another task fails with:

already has an active writer

Clarification from the user: At the time of the failed archive request, the target task appears idle/completed in the Desktop UI: no running work or unfinished work is shown. This describes the visible UI state; the underlying writer-lock state has not been independently inspected.

Manually archiving the target task through the Desktop UI succeeds without an error. The user reports that agent-requested cross-task archiving previously worked.

This report concerns the difference between agent-requested archiving and manual UI archiving. It does not ask to bypass an active writer lock.

Environment

Current installation, verified during the related diagnostic:

  • Windows, local Codex Desktop project.
  • Installed Windows package: OpenAI.Codex 26.915.3509.0.
  • Desktop-managed CLI on PATH: codex-cli 0.155.0-alpha.9.

The exact previously working version and the version at each historical archive attempt have not been established.

User-reported workflow

  1. Identify an existing task B that shows no running or unfinished work in the Desktop UI, then ask Codex in task A to archive it.
  2. Codex reports that the operation cannot complete because the target already has an active writer.
  3. Archive the target manually through the Desktop UI.
  4. Manual archiving succeeds with no error.

The user recalls this cross-task workflow working previously. The user confirms that the target appears idle/completed in the UI. The exact tool/command used by the failing agent, the backend writer ownership/state, and the underlying request trace have not been captured, so these steps describe the reported UI workflow rather than an independently verified minimal reproducer.

Expected behavior

For a user-authorized archive request, the agent should have a supported path that performs the same lifecycle coordination as the Desktop UI. If the target genuinely cannot be archived safely, explain the specific blocker and recovery path.

An agent-requested operation should not get stuck at a writer-conflict error while the corresponding manual UI action succeeds.

Actual behavior and impact

The agent reports an active-writer conflict, and the user has to archive the task manually. This interrupts cross-task cleanup and coordination that the user previously relied on.

Evidence boundary and related reports

  • The archive behavior above is reported directly by the user; it was not replayed in the reporting task, to avoid archiving unrelated tasks just for reproduction.
  • In a separate diagnostic on this installation, native task-management tools were absent from the active agent's callable registry. See our comment on #44044: https://github.com/openai/codex/issues/44044#issuecomment-5730831382.
  • A separate codex exec resume fallback also encountered an active-writer conflict. That was a resume attempt, not an archive reproduction, and is not used as proof of this archive bug.
  • #39734 mentions archive-related active-writer conflicts, but its primary error is a Windows path/os error 2 problem. We have not established that it shares the same cause.

Please investigate whether the failing agent operation is routed through a separate writer owner or a fallback that lacks the Desktop UI's archive coordination. This is a diagnostic question, not an established root cause.

No task IDs, private paths, conversation contents, credentials, or raw logs are included. No locks or state databases were modified.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the agent-requested archive path with the Desktop UI archive path, using the agent callable registry and a captured request trace to inspect writer ownership. Done means identifying the cause of the differing behavior and either restoring equivalent coordination or documenting the specific blocker and recovery path.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.