Skip to content

Codex mobile lists subagent threads as workdir projects #29769

Open

Description

@cjh11497

Title: Codex mobile lists subagent threads as workdir <hash> projects and floods the project list

Summary

When subagents are spawned from Codex Desktop/App, Codex mobile shows many top-level folder entries named workdir <8-char hash> for the same host. These entries do not appear as normal projects in the desktop app project list, but they appear on mobile and can flood the mobile UI until it becomes hard to use.

Environment

  • Host OS: macOS
  • Codex Desktop: 26.616.81150, build 4306
  • Local codex --version: codex-cli 0.140.0
  • Current desktop/app session state reported CLI version: 0.142.0
  • Mobile app: Codex iOS, version not checked
  • Feature involved: subagents / multi-agent thread spawning

Steps To Reproduce

  1. Open Codex Desktop/App on macOS.
  2. Start a normal project thread.
  3. Ask Codex to use multiple subagents for parallel work or review.
  4. Let the subagent threads complete or remain open.
  5. Open Codex mobile and connect to the same desktop host.
  6. View the mobile project/thread list for that host.

Expected Behavior

Subagent threads should either:

  • stay hidden from the top-level mobile project list,
  • be grouped under the parent thread, or
  • be clearly labeled as subagent threads rather than shown as project folders.

Actual Behavior

Codex mobile shows many top-level folder entries named like workdir 12283408, workdir 37c83c7c, etc. Some expanded entries show subagent prompt preview text. Desktop does not show these as normal saved projects, so there is no obvious desktop-side way to clean them up from the same UI.

In one local state, there were 156 unarchived rows with thread_source='subagent'. These corresponded to source values containing subagent.thread_spawn. After deleting those subagent threads locally, the mobile clutter disappeared from the normal thread/project list.

Impact

The mobile app becomes difficult or impossible to use after several desktop subagent workflows because the list is dominated by generated workdir entries.

Diagnostics

  • list_projects showed only real saved projects, not the workdir <hash> entries.
  • The active local state database had many rows where thread_source='subagent'.
  • The issue appears to be a mobile/remote host listing problem: subagent worker threads are being exposed as top-level mobile project/thread entries, while desktop hides or presents them differently.

Suggested Fix

Hide subagent worker threads from the mobile top-level project list, or group them under their parent thread using thread_spawn_edges. If they must be visible, label them as subagents and provide a bulk cleanup/archive action.

Activity

  1. added
    bugSomething isn't working
    iOSIssues related to the Codex iOS app
    subagentIssues involving subagents or multi-agent features
    sessionIssues involving session (thread) management, resuming, forking, naming, archiving
    on Jun 24, 2026
  2. github-actions commented on Jun 24, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. matthew-s-ford commented on Oct 4, 2026

    @matthew-s-ford

    I’m seeing similar mobile project-list clutter from ordinary projectless chats and scheduled automation runs, rather than subagent threads.

    My setup is a Windows desktop host with Codex Remote in the ChatGPT iOS app. Each projectless chat gets a generated working folder. Those folders appear as separate project-like entries on the phone, including in the new-chat project picker, even though they aren’t registered desktop projects. Repeated runs keep adding entries.

    Expected behavior: generated projectless working folders should not each become a separate top-level project choice.

    Could this be another case of the same listing problem, or would you prefer a separate issue?

  4. spnvt63995 commented on Oct 11, 2026

    @spnvt63995

    Additional occurrence on a macOS host, observed/reported on 2026-10-11. This also affects ordinary code-review/projectless chats, consistent with the earlier projectless-chat report in this issue; it is not limited to subagent workdir <hash> entries.

    Environment

    • ChatGPT/Codex desktop app on macOS: 26.1007.21159, build 20052 (read from the installed app's Info.plist).
    • Host: macOS 26.6.2, arm64.
    • Client: ChatGPT mobile Codex/Remote. Exact mobile app and OS versions were not captured.

    User-reported sequence and impact

    1. Start ordinary code-review tasks on the Mac. The user did not explicitly create projects for many of these tasks.
    2. Generated task folders, with labels such as pr-main, pr-main-2, new-chat, and new-chat-2, accumulate in the mobile Projects list.
    3. Remove the unwanted project entries from the Mac desktop app.
    4. The entries remain visible in the mobile list, making remote navigation cumbersome.

    The user explicitly clarified that the affected work originated on the Mac. Another computer being visible in the mobile host selector does not establish that these are projects from that computer.

    Checks performed

    • The supplied mobile screenshot shows a long Projects list containing these generated folder labels.
    • Several labels were matched to the working directories of existing local review chats.
    • The desktop local-projects registry was empty at inspection time, and the app's project-listing tool returned no saved local projects.
    • As a separate cleanup, 42 completed local chats were archived through the supported chat management tool and their archived status was read back. The mobile list was not independently inspected again after that archive operation, so I am not claiming that archiving fixed or definitively failed to fix the list.

    This is an occurrence from an existing installation, not a clean-install reproduction. The precise source of the mobile project inventory has not been established; a specific caching or indexing cause remains unconfirmed.

    Expected behavior

    Generated projectless task directories should not each become a persistent top-level project choice. Explicit project removal on the desktop should be reflected in Remote, or Remote should provide a supported way to hide/remove these directory groupings while preserving chats and files.

    Screenshots, private project names, full local paths, device/account identifiers, thread IDs, and raw logs are omitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingiOSIssues related to the Codex iOS appsessionIssues involving session (thread) management, resuming, forking, naming, archivingsubagentIssues involving subagents or multi-agent features

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions