Codex treats null projectId as proof that a chat has no project despite sidebar evidence
What happened
I started a Codex chat from a saved local Git project. The desktop sidebar showed the active chat under that project, and its working directory matched the project folder. When the agent checked project membership, list_threads returned projectId: null. The agent treated that as proof that the chat had no project and asked for a project assignment I already had.
Observed sequence
- Start a local Codex chat from an existing project and confirm that the sidebar lists the chat under that project.
- In the affected chat,
list_threadsreturned the same chat withprojectId: nulland the correct working directory. move_thread_to_projectreturned the requested project ID and reported success. Subsequentlist_threadsreads in both recent and history modes still returned null.- I supplied a screenshot showing the chat under the project. The agent then accepted the sidebar evidence. Before that, the wrong conclusion delayed my local task's completion check even though the code had already been published.
This is a confirmed occurrence on one chat. I have not established what causes the API to return null.
Expected behavior
When projectId is null, the agent should say that the API did not confirm a project. It should use available sidebar evidence or the user's confirmation before calling the chat projectless or asking to move it. If the sidebar and API represent different kinds of association, document the distinction or expose the effective association in the response.
Environment
ChatGPT/Codex desktop 26.1103.31037, build 25241, macOS 26.6.2, local Git project. Observed November 8, 2026. Project names, local paths, internal IDs, and the screenshot are omitted from this public report.
Related metadata reports #60030 and #57127. This report focuses on the agent's interpretation of the null value and the resulting unnecessary reassignment request.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #60030
Powered by Codex Action
Re: duplicate suggestion.
I compared this with #60030. Both refer to the same observed metadata discrepancy, but the fixes address different behavior. #60030 tracks whether the move is reflected in recent/history listings. This issue tracks the agent treating a nullable field as conclusive proof that the chat has no project, even with sidebar and working-directory evidence. That inference should be corrected even when the metadata is genuinely unknown. I am keeping the agent-behavior report open separately.