Repository navigation
Description
Environment
- Windows desktop package: OpenAI.Codex 26.930.2377.0.
- Desktop release: 26.930.21537.
- Existing ChatGPT projects with legacy local mirror records.
- No account identifiers, project names/IDs, conversation contents/IDs, credentials, or personal filesystem paths are included.
User-observed problem
The user opens an existing ChatGPT project from the sidebar, types directly on the project page with Work selected, and sends. The resulting local Work task appears only in Recents and is absent from the intended project.
For one affected task, its initial backend projectId was null and its working directory was a newly allocated projectless directory. The desktop cache also explicitly classified it as projectless. Restoring that task's membership and restarting restored the existing task, but did not repair the new-creation path.
Reproduction conditions to verify
- Use an existing cloud project represented locally by a canonical g-p-* mirror record.
- Start with no global selected local project, or a different selected local project.
- With Work already selected, open the existing cloud project page through the sidebar.
- Type on that project page and send without reselecting the project in the composer.
- Compare the page's project with the actual creation request, backend membership, workspace, and sidebar assignment.
The user confirmed the direct project-page entry point. The original live in-memory selection was not captured. The code branch described below was reproduced in an isolated harness using the actual installed assets and local state; this is not a fresh end-to-end UI reproduction.
Installed-code findings
The route /g//project parses the cloud project correctly and passes it into the displayed home composer. However:
- The route scope does not populate a projectContext for that route.
- The native selected-project selector attempts an account-backed native-project lookup.
- That lookup excludes legacy g-p-* entries and requires an enabled account-owner context.
- On failure, the selector falls back to the global selected project rather than the explicit project page.
- The native Work composer receives this selector result separately from the project ID used for the displayed project control.
With no previous selection, the isolated installed selector returns null. With another previous selection, it returns the unrelated project. Explicitly selecting the intended project first makes that same branch work.
A fresh authenticated bootstrap response for the same account and installed version had the new project-page feature enabled, while the gate supplying account-owner context for native/cloud project linkage was absent. The installed gate getter defaults missing gates to false. This is a fresh server response, not a capture of the running renderer's memory.
Successful versus failed task comparison
A previously successful task in a different cloud project was created through the home composer. A later failed task was created directly on the cloud project page. Both local project records have identical field shapes and no account-backed native mapping. With the same route and prior-selection conditions, the current installed selector reproduces the failure for both projects. The observed difference therefore does not establish corruption of only one project.
The current package selector was tested again after the desktop updated: 14 isolated assertions passed, demonstrating the unchanged failure and the candidate correction. The complete candidate module passed syntax parsing. A newly fetched bootstrap still exposes the project-page feature without the unified-project linkage gate.
Prior local repair changes and causal limits
An attempted conversion to a separate UUID-backed native project created a duplicate sidebar project and was reversed. A shared helper-working-directory configuration was also added to address a separate, evidenced Windows mirror-lock failure.
The affected cloud project's legacy registry structure and empty backend project metadata predate those repairs. Running the current selector against a pre-repair cache reproduces the same selection mismatch. This does not reconstruct the older client or prove that every prior local change is irrelevant.
Please treat this as a case-specific route/configuration incompatibility with an observed user failure, not a claim that all users are affected or that the full historical cause has been established.
Candidate correction, not deployed
After the existing uniquely account-backed lookup, recognize an exact canonical legacy project record for the explicit project-page ID. Preserve the account-backed lookup's priority. Do not fall back to an unrelated global selection for an explicitly project-bound creation page.
Equivalent pseudocode:
if (nativeProjectForRoute != null) return nativeProjectForRoute;
if (routeCloudProjectId != null &&
localProjects[routeCloudProjectId]?.id === routeCloudProjectId) {
return { type: "local", projectId: routeCloudProjectId };
}The candidate passed isolated selector checks, including empty previous selection, different previous selection, and newer mapping priority. The modified complete JS module passed syntax parsing. The installed bundle was not modified. These checks do not establish complete creation-flow correctness.
Required acceptance
- Direct project-page submissions retain the intended original project with no previous selection and with a different previous selection.
- Switching between two original project pages does not reuse the previous project's selection.
- Project context sync, backend membership, sidebar grouping, and workspace agree.
- Behavior survives a cold restart.
- Existing projects, chats, and files remain intact; no duplicate project is created.
- Errors in required project binding must not silently produce an unrelated or unassigned task.
Please provide a supported correction for this specific creation path. No version update is claimed to fix it, and restoration of an existing task is not considered recurrence prevention.
Activity