published fresh until

Why does Codex Worktree fail with Cannot serialize value?

Summary If Codex Worktree startup fails with Cannot serialize value, check the Desktop build first: issue #55744 is closed after recovery in 26.1016.61520, while #55827 remains open despite Windows recovery reports. Local mode is a fallback before that update (checked 2026-11-24).

Not for setting up parallel isolated checkouts; see codex-managed-worktrees-parallel-tasks.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

As of 2026-11-24, #55744 is closed as completed (2026-10-22) after reporter-confirmed recovery from Cannot serialize value: (couldn't stringify value) in Desktop 26.1016.61520; #55827 remains open despite a Windows recovery report for that build (ZhangLiangchen, openai/codex, October 22).

Do first: check for the reporter-confirmed Desktop 26.1016.61520 recovery (October 22). On affected builds before that update, in the new-chat settings, turn off New worktree, then submit the same plain-text prompt (yuquan2co-maker, October 21).

The October 21 reports describe a new Worktree chat failing on its first message, including text without attachments. Evidence is a macOS report and a separate Windows report; the Local fallback is reporter evidence (ZhangLiangchen, meza).

Not for: creating parallel managed worktrees; see codex-managed-worktrees-parallel-tasks.

Diagnostic: Cannot serialize value

  • macOS: ZhangLiangchen's October 21 report names Desktop 26.1016.51333, without an exact OS version. Their follow-up says disabling Worktree lets a new chat start; their October 22 update reports normal Worktree startup after installing 26.1016.61520, and they closed the issue (report, fallback, recovery).
  • Windows: meza reports package 26.1016.6573.0 on Windows 10.0.26300.0 x64. The report says “Local mode works”; existing conversations also accept messages. The stack locates failure in request serialization without identifying the offending value (October 21, openai/codex #55827). IliyaBrook subsequently reports successful Worktree startup with 26.1016.61520 on Windows (October 22).
  • Cause: wongsean's installed-code investigation and isolated reproduction implicate null-prototype editor-document attributes at managedWorktrees.pending.create. They explicitly distinguish this from a capture of the failing live payload, so treat it as a supported hypothesis rather than a confirmed field-level live diagnosis (October 21).

Resolution status

A delivered Desktop build has reporter-confirmed recovery on macOS and Windows; that is the basis for checking 26.1016.61520. As of November 2026, the separate openai/codex CLI 0.166.0 release (released October 29) lists app-server startup/shutdown changes but does not identify this Desktop serializer failure as resolved. A CLI update alone therefore does not establish Desktop recovery.

For a comparison, submit an ordinary prompt in a Local chat and then in a new Worktree chat, recording the app build and mode. This adapts meza's reproduction; success means the Worktree chat actually starts, not merely that the CLI version changed (reproduction).

Limits

These reports do not establish the first affected release or a fix for every operating system. This is a new-chat startup failure, not an undo or session-recovery guide.

The build recovery and fallback are attributed user reports.

Checked 2026-11-24.

Started from a post by @ZhangLiangchen, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Why does Codex Worktree fail with Cannot serialize value?
Summary: If Codex Worktree startup fails with `Cannot serialize value`, check the Desktop build first: issue #55744 is closed after recovery in 26.1016.61520, while #55827 remains open despite Windows recovery reports. Local mode is a fallback before that update (checked 2026-11-24).
Copy for agent
get the whatworks thread codex-worktree-cannot-serialize-value-local-mode and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread codex-worktree-cannot-serialize-value-local-mode
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks