Repository navigation
Description
Summary
Upgrading OpenClaw from 2026.3.x to 2026.6.5 with an existing ~/.openclaw/openclaw.json that contains channels.googlechat.streamMode causes openclaw config validate and openclaw-gateway.service startup to fail with channels.googlechat.streamMode: Unknown field. The field was valid in 3.x. The 6.5 schema is strict and rejects unknown keys instead of stripping or warning.
Steps to reproduce
- On a host that ran OpenClaw 2026.3.x with
channels.googlechat.enabled: trueandchannels.googlechat.streamMode: "replace"written into~/.openclaw/openclaw.json. - Upgrade:
npm install -g openclaw@2026.6.5 - Run
openclaw config validate
Expected behavior
Either:
- The unknown
streamModefield is stripped silently on first 6.5 read, or - A
openclaw config migratecommand exists that performs the strip, or - A clear deprecation/removal note in the upgrade changelog lists the fields to remove pre-upgrade
Any of the three would have prevented the failure.
Actual behavior
$ openclaw config validate
Error: channels.googlechat.streamMode: Unknown field
The gateway service refuses to start until the field is manually removed from ~/.openclaw/openclaw.json. The upgrade silently breaks production for anyone whose 3.x config still has the field.
OpenClaw version
2026.6.5
Operating system
Ubuntu 22.04 LTS (Linux 5.15)
Install method
npm global (npm install -g openclaw@2026.6.5)
Model
Not applicable — fails before any model call.
Additional context
Confirmed three workarounds, but each is a workaround, not a fix:
- Pre-upgrade strip via a small Python snippet:
import json, pathlib p = pathlib.Path("/home/ubuntu/.openclaw/openclaw.json") cfg = json.loads(p.read_text()) cfg.get("channels", {}).get("googlechat", {}).pop("streamMode", None) p.write_text(json.dumps(cfg, indent=2))
- Post-upgrade manual JSON edit (same result, manual).
- Restore the previous OpenClaw version, do the strip, then upgrade.
Suggested upstream remedies (in order of how invasive each is to the codebase):
- Migration command: add
openclaw config migratethat strips/renames deprecated fields based on a versioned migration table. Auto-run on first 6.x boot when last-seen version is older. - Strip-unknown policy: change the zod schema for
channels.googlechatto use.strip()instead of.strict(). Friendly to upgrades but loses typo detection. - Documented breaking changes: at minimum, list
streamModeas a removed field in 6.x upgrade docs and add it to a deprecation-keys list checked atconfig validatetime with a message like"channels.googlechat.streamMode" was removed in 4.x. Remove it from your config to continue.Cheapest fix; the user still has to act, but the failure becomes actionable instead of opaque.
Happy to send a PR for option (3) if a maintainer agrees that's the right shape.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 12, 2026
Thanks for the context here. I did a careful shell check against current
main, and this is already implemented.Current main and v2026.6.6 now provide the repository-prescribed Google Chat migration for legacy
streamMode, focused regression coverage, and an actionableopenclaw doctor --fixrecovery hint when strict validation blocks startup.So I’m closing this as already implemented rather than keeping a duplicate issue open.
Review details
Best possible solution:
Keep the shipped plugin-owned doctor migration and strict current schema; affected upgrades should run
openclaw doctor --fixand then retry validation or gateway startup.Do we have a high-confidence way to reproduce the issue?
Yes. The tagged legacy shape, current strict schema, and focused doctor migration fixture provide a high-confidence source reproduction of the upgrade failure and its repair path.
Is this the best way to solve the issue?
Yes. A Google Chat-owned doctor migration is the narrowest maintainable solution because it preserves strict typo detection and rewrites shipped legacy configuration into the canonical current shape.
Security review:
Security review: This is issue triage without a proposed patch or security-sensitive report.
AGENTS.md: found and applied where relevant.
What I checked:
streamModeat both the channel root and account level, preserving the strict canonical schema while making the old configuration repairable. (extensions/googlechat/src/doctor-contract.ts:69, 8c802aa68351)channels.googlechat.streamModeandchannels.googlechat.accounts.<id>.streamMode. (extensions/googlechat/src/doctor-contract.test.ts:6, 8c802aa68351)extensions/googlechat/src/channel.ts:127, 1bd04ac98389)openclaw doctor --fix, and config validation also prints the repair hint for invalid snapshots. (src/gateway/server-startup-config.ts:412, 1bd04ac98389)extensions/googlechat/src/doctor-contract.ts:69, 99d0bdc23ab3)extensions/googlechat/src/doctor-contract.ts:69, 8c802aa68351)Likely related people:
extensions/googlechat/src/types.config.ts,extensions/googlechat/src/channel.ts,extensions/googlechat/src/doctor-contract.ts)extensions/googlechat/src/doctor-contract.ts,extensions/googlechat/src/doctor-contract.test.ts)extensions/googlechat/src/doctor-contract.ts,extensions/googlechat/src/types.config.ts)Codex review notes: model internal, reasoning high; reviewed against 1bd04ac98389; fix evidence: release v2026.6.6, commit 8c802aa68351.
ayeshachohan commentedon Jun 12, 2026
Provenance for the regression claim, since the automated review flagged it:
streamModewas a first-class, schema-validated field on Google Chat in the tagged 2026.3.x line. InGoogleChatAccountSchemait was defined as:inside a
.strict()object — sochannels.googlechat.streamMode: "replace"was not only valid,"replace"was its default value. This was not a hand-added or silently-ignored key.In current
main, the field has been removed fromGoogleChatAccountSchema, the schema is still.strict(), and the legacystreamMode → streaming.modenormalization is registered only for Discord/Telegram/Slack (via theirdoctor-contract.ts); Google Chat has no equivalent migration, and that normalization runs in thedoctorpath rather thanconfig validate/ gateway startup. So a legacy Google Chat config reaches the strict schema unmigrated and is rejected:That confirms the upgrade-regression classification: a value that was the schema default in 3.x hard-fails validation after upgrade, with no migration path for this channel.
ayeshachohan commentedon Jun 12, 2026
@clawsweeper re-review
clawsweeper commentedon Jun 12, 2026
🦞🧹
ClawSweeper re-review requested.
I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow
sweep.yml, eventrepository_dispatch).Result: the existing ClawSweeper review comment will be edited in place when the review finishes.
Re-review progress:
ayeshachohan commentedon Jun 12, 2026
Thanks for the review confirmed on my end too. Current main (v2026.6.6) adds
extensions/googlechat/src/doctor-contract.tswhich handles legacystreamModemigration viaopenclaw doctor --fix. That's exactly what was needed. Happy to close this as already implemented.