Skip to content

hotfix(config): remove invalid channels.whatsapp.enabled key crash-looping the gateway (staging down) + CI guard test - #52

Merged
supmo668 merged 2 commits into
mainfrom
mangyinm/fix-staging-config-whatsapp-enabled
Jul 7, 2026
Merged

supmo668 merged 2 commits into
mainfrom
mangyinm/fix-staging-config-whatsapp-enabled

Conversation

@supmo668

@supmo668 supmo668 commented Jul 7, 2026 •

Copy link
Copy Markdown

P0 STAGING-DOWN hotfix. The openclaw#1926 redeploy surfaced PRE-EXISTING drift in committed openclaw.json: channels.whatsapp.enabled=true, rejected by the now-.strict() WhatsAppConfigSchema ('Unrecognized key: enabled') → gateway crash-loop ~20s. Removes that one key (slack.enabled kept — valid). Adds a guard test running the gateway's validateConfigObject on the committed openclaw.json so this drift class fails CI, not a live deploy. QG: tsgo 0, oxlint 0/0, guard 1/1, sealed 60/60; QGR 01a8e0f VERIFIED. Off main c8a6c63. Landed by CTO (P0 expedite).

Summary by CodeRabbit

  • Bug Fixes

    • Updated the app’s channel settings so the WhatsApp configuration is cleaner and remains valid.
  • Tests

    • Added automated validation for the committed configuration to catch invalid settings before deployment.
  • Documentation

    • Added a new internal review record for the configuration update and validation checks.

supmo668 and others added 2 commits July 7, 2026 14:08
…rom openclaw.json (crash-loops gateway startup) + guard test validating the committed deploy config against the gateway schema

Generated-With: Claude Code
Co-Authored-By: cto <[email protected]>
Co-Authored-By: Claude <[email protected]>
…tfix (whatsapp.enabled)

Generated-With: Claude Code
Co-Authored-By: cto <[email protected]>
Co-Authored-By: Claude <[email protected]>
@supmo668
supmo668 merged commit 82729c6 into main Jul 7, 2026
@coderabbitai

coderabbitai Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 73a6fa3b-2ef4-4074-9373-6b96ff42eb93

📥 Commits

Reviewing files that changed from the base of the PR and between c8a6c63 and 70fbf28.

📒 Files selected for processing (3)
  • openclaw.json
  • src/config/deployed-config.test.ts
  • workstreams/openclaw/qgr/SyntropyHealth-Applications-mo-referee-openclaw-openclaw-qgr-pr-prep-20260707-1409-01a8e0f.md

Disabled knowledge base sources:

  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.


📝 Walkthrough

Walkthrough

Removes an invalid enabled field from the whatsapp channel configuration in openclaw.json, adds a Vitest test validating the deployed config against the gateway schema, and adds a QGR receipt document recording the fix.

Changes

Config Fix and Validation

Layer / File(s) Summary
Remove invalid config field and add validation test
openclaw.json, src/config/deployed-config.test.ts
Removes the enabled key from channels.whatsapp and adds a Vitest suite that validates openclaw.json via validateConfigObject, asserting success and reporting issues on failure.
QGR receipt documentation
workstreams/openclaw/qgr/...pr-prep-20260707-1409-01a8e0f.md
Adds a receipt markdown recording hashes, attestation log, and a review summary describing the config fix and new test.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Poem

A stray "enabled" hopped out of place,
I nibbled it clean, left no trace.
A test now stands guard by the config gate,
With a receipt to log the fixed state.
Hop hop, all schemas straight! 🐇✅

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch mangyinm/fix-staging-config-whatsapp-enabled

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

⚠️ Formal models conformance drift detected

The formal models extracted constants (generated/*) do not match this openclaw PR.

This check is informational (not blocking merges yet).
See the formal-models-conformance-drift artifact for the diff.

If this change is intentional, follow up by updating the formal models repo or regenerating the extracted artifacts there.

@supmo668
supmo668 deleted the mangyinm/fix-staging-config-whatsapp-enabled branch October 17, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant