7eleven.eth (Discord #feedback) hit "Kimi Code: K3.1 Pro does not
support disabled thinking mode. Please enable thinking and try again,
or choose another model." in ZCode. On Anthropic Messages, ZCode's
default format, this was fixed in 72e8d9fa6 (v0.1.2216): alwaysThinks
matches the wording, and the request goes again without
"thinking":{"type":"disabled"}, and without it from then on. The same
refusal on the Chat side was still handed back:
- a Chat client's reasoning_effort none, relayed (a ZCode provider set
to OpenAI Chat, OpenCode's off variant): serve's retry for none
matched only levels named, OpenRouter's mandatoryReasoning or
effortRequired, and Kimi's words name no levels;
- a Responses or Chat client's none translated to Chat (Codex, Claude
Desktop to a Kimi Code Chat endpoint): Kimi Code's catalog gives its
toggled models none (reasoningOffProviders), so none went out, and
forwardTranslated's retry read the same three.
needsReasoning is effortRequired, or for none and minimal alwaysThinks'
words, at both of those sites: asked again at the model's lowest
(onEffort), offRefused marked, so later requests go at it from the
start. Any other 400 still goes back as it came. Scoped by the
refusal's words, not by model name, so only a model that says it can't
stop thinking is changed.
Tests: TestKimiChatThinkingOffRefused (relayed and translated, Kimi's
literal sentence in Kimi's Chat error shape; turn 1 none then low, turn
2 low at once; a max_tokens 400 is not asked again).
Run (mote, macOS, Go 1.26.8, sandbox HOME by testenv):
- gofmt -l on the changed files: nothing.
- go vet ./..., GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet
./...: rc=0 each.
- go test -tags nogui -count=1 -timeout 45m ./... at this tree
(0bf5adb11 + the change, origin/main unchanged since): 80 ok, two red.
internal/proc TestNoCommandBypassesProc (claudetui/child_unix.go:32,
#4491, untouched here) and internal/gateway
TestRuleTimeWindowAtTurnStart ("a 5 b 2": a count changed between the
check and its message; passes alone; filed #4528). Every thinking,
effort, Kimi and mandatory-reasoning test in internal/gateway ok.
- Broken by hand: with needsReasoning back to effortRequired at both
sites, both subtests fail with Kimi's 400 handed back; with only the
translated site reverted, the translated subtest fails alone.
Not tried: the real Kimi Code endpoint (no account here), whether its
Chat endpoint answers none in these words (the Messages wording is the
reporter's; the Chat envelope is Kimi's usual {"error":{message,type}}),
a real ZCode session. Not changed: a Chat request with
"thinking":{"type":"disabled"} itself (no retry path reads it on Chat),
and #3739's second symptom (k3 losing thinking when
output_config.effort is asked).