Skip to content

[Windows Desktop] list_threads repeatedly returns projectId:null despite persisted membership; 10 chats across 7 projects, restart does not fix #54904

Open

Description

@SBA-Technik-Transfer

Component and environment

Codex desktop application on Windows, local saved projects, host local.

Observed repeatedly between September 28 and October 17, 2026. The first detailed investigation recorded installed package OpenAI.Codex_26.924.1866.0_x64__2p2nqsd0c76g0. The exact installed version for the October 17 occurrence was not successfully collected and should not be inferred from the September package version. Windows build and subscription tier were not collected.

Summary

The first-party list_threads tool repeatedly returns projectId: null for chats whose explicit local project assignment is independently present in persisted application state. The registered project exists, its root matches the chat working directory, and the chat is not explicitly marked projectless.

This is not a single-chat observation: local investigations document 10 distinct affected chats across 7 saved projects, with 4 additional documented chats showing the same symptom with less complete verification.

For multiple cases, move_thread_to_project acknowledges the correct project and thread IDs, but subsequent list_threads calls still return null. In the October 17 case, a user-reported full application close and reopen did not resolve the discrepancy.

Independently verified cases

Project aliases below consistently identify the same projects. Each row represents a distinct chat; repeated observations of one chat are not counted twice. Dates are evidence dates, not necessarily first onset.

Case Evidence date Project alias Evidence
A 2026-09-28 P1 Persisted explicit assignment, registered project, matching cwd, not explicitly projectless; list_threads returns null.
B 2026-09-30 P2 Persisted assignment and matching project root verified; list_threads returns null.
C 2026-09-30 P2 Separate chat; same independent verification and null result. The symptom was also documented on September 29.
D 2026-09-30 P3 Persisted assignment and matching project root verified; list_threads returns null.
E 2026-09-30 P4 Persisted assignment and matching project root verified; list_threads returns null.
F 2026-09-30 P5 Persisted assignment and matching project root verified; list_threads returns null.
G 2026-09-30 P6 Persisted assignment and matching project root verified; list_threads returns null.
H 2026-10-13 P7 Successful move acknowledgement and read-only verification of persisted local assignment; list_threads still returns null.
I 2026-10-14 P3 Persisted assignment, project registration, cwd and Git root verified. Reapply and remove/reapply acknowledged success; list_threads still returns null.
J 2026-10-17 P2 Same independent checks, successful reapply and remove/reapply, then full app restart reported by user; post-restart list_threads still returns null.

The September 30 investigation observed six affected chats simultaneously. It was a bounded tool snapshot, not an exhaustive inventory: the tool listed at most 50 non-pinned chats, with pinned chats returned separately.

Additional documented observations

These are not included in the 10 independently verified cases above, because the historical evidence does not separately establish persisted chat membership.

Case Evidence date Project Observation
K 2026-09-27 P8 Existing registered project and matching cwd; list_threads returned null.
L 2026-09-29 P1 Separate chat from case A; existing project and matching cwd; list_threads returned null.
M 2026-09-29 P9 Existing project and matching cwd; list_threads returned null.
N 2026-10-12 P3 Separate chat from D/I; two move calls acknowledged success, but subsequent enumeration still returned null.

Investigation / reproduction on an affected existing chat

This is an observed diagnostic sequence, not a deterministic fresh-profile reproduction. The original trigger is unknown.

  1. Call list_projects and identify the existing local project's ID and root.
  2. Call list_threads and locate an affected chat by its canonical thread ID. Observe the matching cwd but projectId: null.
  3. Read only the affected chat's entries from local persisted app state:
    • thread-project-assignments[threadId] contains {projectKind: "local", projectId: "<expected-project-id>"}.
    • thread-project-membership-host-ids[threadId] is local.
    • projectless-thread-ids does not contain the affected chat.
    • The corresponding local-projects entry exists and has the matching root.
  4. Call move_thread_to_project for that exact chat, host and project. It returns success with the intended IDs.
  5. Call list_threads again. It still returns null.
  6. For cases I and J, remove the assignment through the supported tool, then restore it through the supported tool. Both calls report success, but enumeration still returns null.
  7. For case J, the user closes and reopens the application. Repeat enumeration and the scoped persisted-state checks. The assignment remains present, but enumeration still returns null.

No application-state JSON, SQLite rows or installed application bundles were manually modified during these repair attempts.

Expected behavior

The first-party project-management tools should consistently expose effective saved project membership. A successful move should be reflected in subsequent reads, or should return an explicit pending/error state with a supported way to verify completion.

A null result should not silently imply confirmed projectlessness when the app has a valid explicit assignment.

Actual behavior and impact

Project mutation acknowledgements, persisted membership and thread-list results disagree. Agents relying on first-party tools incorrectly conclude that chats lack project membership, stop otherwise authorized work, ask users to repeat project assignment, or suggest replacement chats.

The repeated workaround attempts and project-verification blockers interrupt coordination across unrelated projects.

Historical implementation finding, not a confirmed current root cause

Read-only inspection of the September 28 installed desktop bundle identified a possible mismatch between canonical thread IDs and temporary client IDs: sidebar grouping normalized thread keys, while the tool's membership lookup did not appear to apply the same normalization. The same inspection found that runtime workspace state could override persisted membership in the grouping calculation.

The affected live client-ID/runtime state was not captured, so neither mechanism was conclusively tied to individual cases. This older bundle inspection does not establish the current implementation or prove that all 10 cases share one cause. Restart failure in case J also means restart should not be presented as a reliable fix.

Please investigate canonical/client-ID normalization, effective-membership resolution, runtime overrides and consistency between mutation acknowledgements and tool readback.

Related reports

This report adds repeated Windows local-project evidence, 10 independently verified chats across 7 projects, and an unsuccessful full restart.

Evidence and privacy

Detailed dated local reports and scoped evidence extracts were retained for September 28/30 and October 13/14/17. Exact chat IDs, project IDs, private titles and paths can be provided through a private support channel if requested by OpenAI.

Private repository/project names, chat content, absolute user paths, raw state files, credentials and unfiltered logs are omitted from this public report. The aliases above preserve case and project counts without exposing internal project details.

Activity

  1. added
    bug
    app
    windows-os
    session
    on Oct 17, 2026
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

    appbugsessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions