Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Unified ChatGPT/Codex Desktop 26.930.61225 (reported from installed app metadata, not independently transcribed from the About dialog). Bundled Codex CLI observed as 0.162.0-alpha.17.2 on October 9, 2026.
What subscription do you have?
ChatGPT Pro.
What platform is your computer?
macOS on Apple silicon. Exact uname -mprs output was not captured.
What issue are you seeing?
A Desktop-owned parent task successfully creates a separate task in an existing, saved local Git project using first-party create_thread with an explicit saved projectId and environment: { "type": "local" } (not a managed worktree).
Creation returns a real canonical threadId and hostId: "local". The child starts and completes read-only Git commands in the intended repository, as corroborated by its read-only session session_meta.cwd and turn_context.cwd records.
However, from the same parent:
read_threadaddressed by the returned realthreadIdandhostIdsucceeds but reportscwd: "/"and omitsprojectId.- Fresh
list_threads({ "limit": 50 })results omit that newly created child, while showing older tasks in the saved project. This was checked repeatedly while the child was active. The result is not a claim of exhaustive inventory across every possible page. - In an earlier independent local-project canary, the task was visible under the intended project on Desktop and iPhone while running, but moved under the
/project on iPhone after completion. Desktop still showed it under the intended project.
The task's execution workspace is correct. The first-party task identity / project association / inventory metadata is inconsistent. A caller using strict project isolation cannot safely rely solely on a matching title, prompt, command cwd, or local rollout metadata to override read_thread and list_threads.
What steps can reproduce the bug?
- Open a Desktop-owned parent task in an existing saved local Git project.
- Call
list_projectsand identify the project's unique saved ID, canonical repo path,hostId: "local", andisGitRepository: true. - Call first-party
create_threadonce (using the exact ID returned above):
{
"title": "Local project identity canary",
"prompt": "Read-only: run git rev-parse HEAD and git status --short in this project's repository, then finish.",
"target": {
"type": "project",
"projectId": "<saved-local-project-id>",
"environment": { "type": "local" }
}
}- Observe
{ "threadId": "<real-canonical-id>", "hostId": "local" }fromcreate_thread(not a pendingclientThreadId). - While the child is active, call
list_threads({ "limit": 50 })and check for that exact ID. In the reproduction it is absent. - Call
read_thread({ "threadId": "<real-canonical-id>", "hostId": "local", "turnLimit": 1 }). It returns that same task and its initial prompt but showsthread.cwd: "/"and no project ID. - Verify from read-only command/session evidence that the child's actual
gitcommands ran in the saved repository. Do not recreate a child after the inconsistent metadata. - Optionally inspect the task in Codex Remote on iPhone before and after completion; in an earlier canary, its sidebar grouping changed to
/after completion.
Frequency: the cwd: "/" / project-inventory mismatch was observed in a controlled local-project canary on October 9, 2026, with corroborating mobile grouping behavior from an earlier October 7 canary. No clean-profile reproduction or exhaustive list pagination was performed.
What is the expected behavior?
After create_thread successfully targets an existing saved local project, the resulting canonical task should consistently expose the same thread ID, local host, saved project ID, and actual canonical repository cwd across create_thread, read_thread, list_threads, Desktop sidebar, and connected mobile Remote.
If project association is still pending, expose a structured pending state and a documented, bounded readiness/refresh operation. New user-facing tasks should become discoverable without an extra ordinary user message, pinning, private-state mutation, or duplicate task creation.
Additional information
- No worktree was requested or created for this reproduction.
- No private Codex database/session files were modified, and no private pipe or internal credentials were inspected.
- The internal cause has not been established. A listing filter/preview issue, task registry race, or project-association propagation issue are hypotheses, not confirmed fixes.
- Closely related but different reports: #48472 (managed-worktree child omitted from inventory after pending client ID), #39764 (worktree project ID initially null), #51021 (worktree task read returns
cwd: "/"), and #49794 (Remote missing worktree tasks until pinned). - Local repository names/paths, task IDs, transcripts, authentication details, and private execution metadata are intentionally omitted. Specific IDs may be supplied privately to maintainers if needed.
Activity
github-actions commentedon Oct 9, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
michaelinvest365 commentedon Oct 25, 2026
Additional macOS evidence for native project ownership before the first turn
Adding a related creation-time ownership finding on a newer build. In these observations, the working directory was correct; this does not reproduce the
/cwd symptom or establish the same root cause as the original report.Environment: desktop build
26.1021.31345observed in local artifacts/logs; bundled CLI0.164.0-alpha.11.1; macOS. These values were not transcribed from the About dialog. Persistent local project creation used default mode; logs show no prewarmed thread reuse.Observed sequence, twice:
create_thread, withtarget.type = projectandenvironment.type = local.project_id = null, despite the explicit selection and matching working directory.This is an observed incident sequence, not a deterministic clean-profile reproducer or a measured failure rate. The historical effective capability values and raw native start requests/responses were not retained, so these observations cannot establish the exact triggering branch or rule out a subsequent native-state change.
Shipped-client evidence: inspection and five isolated tests demonstrate a path where unavailable project-membership capability returns no native project identity; the start-request builder can omit that field, and a null-owner response can still commit desktop membership without a mandatory native-owner admission check. This is demonstrated client behavior under mocked conditions, not proof that this branch caused either historical incident.
Expected behavior: resolve the selected desktop project key to the native identity before creation, pass it in the initial
thread/start, and verify the native owner before admitting the first work turn. On null or mismatched ownership, preserve any returned identity and existing owner, stop only that request's work admission, and report the incomplete state. An unconditional later reassignment or replaying uncertain creation is not a safe substitute.Bounded impact: in an ownership-gated workflow, affected chats required recovery before project work could continue.
A separate single disposable native-protocol experiment successfully created with a project identity, verified owner and title while there were zero turns, then ran one synthetic acknowledgement turn and archived the chat without a metadata assignment call. Thirteen isolated tests accompany that proof. This establishes observed ordering through a separate supported route, not a fix to desktop
create_thread, server transaction semantics, or cross-client atomic admission.Private names, paths, actual chat/project/account identifiers, prompts, credentials and raw log bundles are omitted. No diagnostic bundle is attached.