Repository navigation
Description
Environment
- OpenClaw 2026.6.1 (commit 2e08f0f)
- Node 24.14.1
- Linux 6.8.0-124-generic x86_64 (Ubuntu 24.04.4 LTS)
- Install: npm, single instance, gateway running as systemd user service
Symptom
Every openclaw doctor run shows a "Doctor changes preview" box: "Normalized talk.provider/providers shape (trimmed provider ids and merged missing compatibility fields)."
Running openclaw doctor --fix succeeds, claims to have applied the normalization, and updates the .bak file. But the next openclaw doctor run immediately re-suggests the same normalization — endlessly.
Reproduction
- Have any
talkblock with both top-levelproviderandrealtime.providers.<id>, e.g.:
"talk": {
"provider": "openai",
"realtime": {
"mode": "realtime",
"transport": "provider-websocket",
"brain": "agent-consult",
"provider": "openai",
"model": "gpt-realtime-2",
"voice": "cedar",
"providers": {"openai": {"apiKey": {"source": "env", "provider": "openai", "id": "OPENAI_API_KEY"}}}
}
}- Backup
openclaw.json. - Run
openclaw doctor --fix. diff -u <(jq .talk backup.json) <(jq .talk ~/.openclaw/openclaw.json)- Run
openclaw doctoragain.
Expected
Either the normalize op changes something (then no re-suggestion), or doctor recognizes the no-op and stops showing the preview box.
Actual
- Step 4 diff is empty — the
talkblock is byte-for-byte identical before and after--fix. Onlymeta.lastTouchedAt,wizard.lastRunAt, and end-of-file newline change. - Step 5 doctor shows the same "Normalized talk.provider/providers shape" preview again.
Impact
- Operators see a persistent "needs repair" hint that points at nothing.
- Easy to mistake for an unrelated config drift problem.
- Encourages mechanical "yes" to all repair prompts (which is dangerous because some repairs would remove intentional config).
Likely cause
The detect step computes a normalized form and compares it back, but the comparison or canonicalization is off by a small detail (key ordering, whitespace, empty compat field), so detect always finds a difference even though the write step produces the same bytes.
Workaround
Ignore the preview box; verify after each --fix run that the actual talk config diff is empty before assuming anything changed.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 4, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 4, 2026, 3:26 PM ET / 19:26 UTC.
Summary
Keep open: current main still has a plausible source-level path for the repeated Talk normalization preview, and the existing convergence tests do not cover the reporter's top-level
talk.providerplustalk.realtime.providersshape.Reproducibility: yes. source inspection gives a high-confidence reproduction path: feed the reported
talkblock throughnormalizeCompatibilityConfigValuesor a two-run doctor config-flow test and assert that the second run emits no Talk normalization. I did not run the CLI in this read-only pass.Next step
This is a narrow doctor/config convergence bug with clear likely files and a focused regression-test path.
Review details
Best possible solution:
Add a focused regression for the reported Talk shape and adjust doctor normalization so it only previews or applies a repair when the persisted canonical config would actually change.
Do we have a high-confidence way to reproduce the issue?
Yes, source inspection gives a high-confidence reproduction path: feed the reported
talkblock throughnormalizeCompatibilityConfigValuesor a two-run doctor config-flow test and assert that the second run emits no Talk normalization. I did not run the CLI in this read-only pass.Is this the best way to solve the issue?
Yes: a narrow doctor-normalizer/test fix is the best path, because the runtime Talk schema and docs already define the canonical fields and no new config surface is needed.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
openclaw doctor; the fix PR should prove the exact persisted output with a two-run doctor regression.Codex review notes: model gpt-5.5, reasoning high; reviewed against 3140bb695d69.
Label changes
Label changes:
P2: This is a normal-priority doctor/config bug with limited blast radius but real operator confusion.impact:other: The issue affects doctor repair trust and operator config diagnostics, which is maintainer-visible but outside the specific owned impact classes.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:queueable-fix: Current issue advisory state selects this label.clawsweeper:fix-shape-clear: Current issue advisory state selects this label.Label justifications:
P2: This is a normal-priority doctor/config bug with limited blast radius but real operator confusion.impact:other: The issue affects doctor repair trust and operator config diagnostics, which is maintainer-visible but outside the specific owned impact classes.Evidence reviewed
Acceptance criteria:
What I checked:
normalizeLegacyTalkConfignormalizes the rawtalksection, compares the normalized object back to the raw object, and pushes the reported Talk normalization message whenever they differ. (src/commands/doctor/shared/legacy-talk-config-normalizer.ts:51, 3140bb695d69)normalizeTalkRealtimeConfigderivesspeakerVoicefrom legacyvoicewhile preservingvoice, which matches the reporter's sample and can make the detector see a difference even when provider/providers are already present. (src/config/talk.ts:113, 3140bb695d69)talk.provider/providersonly, not the reportedtalk.realtime.provider/providersandvoicecombination. (src/commands/doctor-config-flow.test.ts:2897, 3140bb695d69)v2026.6.1and current main, so the reported release behavior does not appear fixed on main. (src/config/talk.ts:1, 3140bb695d69)a26b844b88437406ea93d03dec151db207fa918cadded the prior repeat-normalization key-order regression test, but it did not cover the realtime Talk shape from this report. (src/commands/doctor-legacy-config.migrations.test.ts:1231, a26b844b8843)Likely related people:
src/commands/doctor/shared/legacy-talk-config-normalizer.ts,src/config/talk.ts,src/commands/doctor-config-flow.test.ts)src/commands/doctor-legacy-config.migrations.test.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.vincentkoc commentedon Jun 6, 2026
Fixed on
maininb77ef4d6df347aa38c8ffba202469d12239c0433.What changed:
src/commands/doctor/shared/legacy-talk-config-normalizer.tsno longer treatstalk.realtime.speakerVoicederived only from an existing deprecatedtalk.realtime.voicealias as a persisted provider-shape repair.voicetospeakerVoicefor clients; doctor just stops re-suggesting a no-op config write.Proof:
node scripts/run-vitest.mjs src/commands/doctor/shared/legacy-config-migrate.provider-shapes.test.ts src/commands/doctor-legacy-config.migrations.test.ts -t "talk provider normalization|Talk provider repair|realtime voice aliases|existing realtime voice alias"-> 3 passed.node scripts/run-vitest.mjs src/commands/doctor-config-flow.test.ts -t "talk provider normalization"-> 1 passed.OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs src/commands/doctor/shared/legacy-config-migrate.provider-shapes.test.ts src/commands/doctor-legacy-config.migrations.test.ts src/commands/doctor-config-flow.test.ts-> 101 passed across 3 touched test files../node_modules/.bin/oxfmt --check --threads=1 src/commands/doctor/shared/legacy-talk-config-normalizer.ts src/commands/doctor/shared/legacy-config-migrate.provider-shapes.test.ts src/commands/doctor-legacy-config.migrations.test.ts src/commands/doctor-config-flow.test.ts-> clean.node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.json src/commands/doctor/shared/legacy-talk-config-normalizer.ts src/commands/doctor/shared/legacy-config-migrate.provider-shapes.test.ts src/commands/doctor-legacy-config.migrations.test.ts src/commands/doctor-config-flow.test.ts-> clean.git diff --check-> clean..agents/skills/autoreview/scripts/autoreview --mode local-> clean, no accepted/actionable findings.tbx_01ktesn1h8dhgfhpj4a2ctfghw, Actions run27066616852,check:changedlanescore, coreTests-> exit 0. The wrapper reported a non-fatal portal sync 401 after the completed green run.Duplicate search for the doctor talk/provider normalization wording only returned this issue.