Environment
- Surface: Codex desktop app
- Codex version: 26.1016.51333 (build 21161)
- OS: macOS (Apple silicon)
- Authentication: ChatGPT account
- Mode: New chat using Worktree
Bug
Starting a new chat in Worktree mode fails immediately with this toast:
Error starting chat
Cannot serialize value: (couldn't stringify value)
Expected behavior: Codex should create the worktree and start the chat.
Actual behavior: the renderer fails while serializing the local request parameters. The request does not reach the backend. Existing chats continue to work, and switching the new chat to Local mode is a temporary workaround.
Reproduction
- Open an existing Git repository in the macOS Codex desktop app.
- Start a new chat.
- Select Worktree as the environment.
- Enter any prompt and submit it.
- The error toast appears and no chat is created.
This reproduced repeatedly (at least six attempts) in the same session.
Diagnostics
Relevant renderer log excerpt (personal paths removed):
[electron-message-handler] [Composer] submit failed
errorMessage="Cannot serialize value: (couldn't stringify value)"
errorName=TypeError
followUp=none mode=worktree
TypeError: Cannot serialize value: (couldn't stringify value)
at e.devaluateImpl (.../app-shared-60f4bb85435f.js)
at Tft.sendCall (.../app-shared-60f4bb85435f.js)
at Object.z [as submit] (.../app-primary-9bb8fd8d770a.js)
- First observed: October 22, 2026 at approximately 11:55 PM PDT
- Frequency: Every Worktree-mode submission attempted during that session
- Repository health check: Git repository and registered worktrees were readable; no invalid worktree entry was found.
- Update status: version 26.1016.62342 (build 21477) was available but had not yet been installed/tested when this report was prepared.