@bubuweiying2026 on X (#6835): Codex Desktop on the Claude subscription,
interactive mode. A Codex compaction while the thread was in Plan mode
started a new Claude Code run whose append.md held the Plan block ("Plan
Mode is not changed by user intent"), since the Responses read lifts the
developer messages before the first reply into the system prompt. Every
later switch back to Default came after a reply, so it went into its
turn as a <system-reminder>, pasted text to Claude Code, and the model
refused to execute on every turn. #6100 is the same on a Chat provider:
a thread started in Plan keeps Plan in its system message.
Now every <collaboration_mode> block lifted into the system prompt says
the conversation's latest mode (latestModeInSystem in responses.go).
Codex's own words are not changed, and the switch stays in its turn too.
Every path that builds a run's instructions reads req.System, so
append.md for a new or resumed run, -p's first message and the
compaction request itself all carry the current mode. A switch changes
the system prompt once (one new run, one cache write), not every turn.
Run, at 8aaae20fa rebased on 19794cc10, on mote:
- TestCollaborationModeInTheSystemIsTheLatest (parse, Chat build) and
TestClaudeRunTakesTheLatestCollaborationMode (interactive and -p) fail
on the old responses.go: back_to_default's system prompt still holds
Plan, Chat's system message holds Plan, and the run told "Please
implement the plan." was given Plan in append.md / its first message.
Both pass with the change; the interactive case checks the turn after
the switch goes on in the same run.
- gofmt -l clean; go vet ./..., GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./...; go build, GOOS=linux go build -tags nogui,
GOOS=windows go build; go test -tags nogui -timeout 45m -count=1 ./...
under a temp HOME: all ok.
Fixture: Default block from a real Codex 0.168 rollout; the Plan block
from the sentences #6835 quotes (no Plan rollout on hand).
Not tried: a real Codex Desktop thread compacted in Plan mode against a
real Claude account; a real Chat provider for #6100.