Repository navigation
Conversation
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes are blockedOpenClaw does not accept dependency graph changes through PRs unless a repository admin or security explicitly authorizes the current head SHA. Dependency updates are generated internally by maintainers so external PRs cannot change the resolved graph. Detected dependency graph changes:
Auto-scrub was not attempted because this PR changes package manifest dependency graph fields:
Dependency graph changes must be reviewed by security or handled by maintainers internally. Please remove lockfile changes manually if they are not needed. To remove lockfile changes, restore them from the target branch: git fetch origin
git checkout 'origin/main' -- 'extensions/zalouser/npm-shrinkwrap.json' 'pnpm-lock.yaml'
git commit -m 'chore: remove dependency lockfile change'
git pushIf this PR intentionally needs a dependency graph change, ask a repository admin or member of The action will approve the current head SHA ( |
There was a problem hiding this comment.
Pull request overview
Removes the bundled zalouser channel plugin and scrubs its references across core registries, tests, docs, and CI/gates. Adds config-validation + openclaw doctor --fix support so existing channels.zalouser configs don’t hard-fail after the channel id disappears, plus a doctor health check to clean up leftover credential state.
Changes:
- Delete
extensions/zalouser/**and remove all remaining references from tests, registries, docs, and CI boundary tooling. - Add
REMOVED_BUNDLED_CHANNEL_IDS+isRemovedBundledChannelIdand update config validation + doctor stale-config repair to warn/stripchannels.zalouserand dependent references. - Add a doctor health check to detect/remove legacy
state/credentials/zalouser/remnants, and wire it into doctor health contributions.
Best-fix verdict: Acceptable and likely best (clean removal + migration + state cleanup, consistent with prior bundled-plugin retirement patterns).
Alternatives considered: (1) Keep the plugin but mark “unsupported” (would still ship risky code + dependency); (2) move it to external-only while keeping in-tree compatibility (still retains maintenance burden in core).
Code read: src/flows/doctor-removed-zalouser-state-check.ts, src/flows/doctor-removed-workspaces-state-check.ts, src/config/validation.ts, src/channels/ids.ts, src/commands/doctor/shared/stale-plugin-config.ts, src/plugin-sdk/core.ts, src/infra/outbound/outbound-session.test.ts, docs/cli/directory.md.
Remaining uncertainty: I did not re-audit every generator/regenerated artifact end-to-end (beyond the diff) to confirm there are zero lingering zalouser mentions outside the listed changes.
Reviewed changes
Copilot reviewed 148 out of 152 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| ui/src/pages/plugins/presentation.ts | Remove zalouser from plugin art slug allowlist. |
| test/vitest/vitest.extension-zalo-paths.mjs | Drop extensions/zalouser from scoped Zalo extension test roots. |
| test/vitest-scoped-config.test.ts | Update scoped vitest config expectations to exclude zalouser. |
| test/scripts/test-extension.test.ts | Remove zalouser from extension test planning and Zalo lane coverage. |
| src/wizard/i18n/locales/zh-TW.ts | Remove zalouser wizard locale strings and primer blurb. |
| src/wizard/i18n/locales/zh-CN.ts | Remove zalouser wizard locale strings and primer blurb. |
| src/wizard/i18n/locales/en.ts | Remove zalouser wizard locale strings and primer blurb. |
| src/security/audit-channel-readonly-resolution.test.ts | Switch test fixture channel id from zalouser to zalo. |
| src/routing/resolve-route.test.ts | Replace zalouser routing test case with zalo. |
| src/plugins/manifest-registry.test.ts | Replace zalouser duplicate-manifest test fixtures with zalo. |
| src/plugins/contracts/plugin-sdk-runtime-api-guardrails.test.ts | Remove zalouser from unguarded runtime API ids list. |
| src/plugins/contracts/plugin-sdk-package-contract-guardrails.test.ts | Remove zalouser from owner-name scan regex. |
| src/plugins/contracts/package-manifest.contract.test.ts | Remove zalouser from manifest contract test matrix. |
| src/plugin-sdk/status-helpers.test.ts | Replace zalouser fixture with zalo. |
| src/plugin-sdk/command-auth.test.ts | Replace zalouser fixture with zalo in auth resolution tests. |
| src/logging/subsystem.ts | Remove zalouser from channel subsystem prefixes. |
| src/infra/outbound/outbound-session.test.ts | Replace outbound session route fixture from zalouser to telegram. |
| src/infra/outbound/outbound-session.test-helpers.ts | Replace test-only outbound route resolver from zalouser to telegram. |
| src/gateway/test-helpers.channels.ts | Remove stub gateway test channel entry for zalouser. |
| src/flows/doctor-removed-zalouser-state-check.ts | Add doctor health check to detect/remove legacy credentials/zalouser state. |
| src/flows/doctor-removed-zalouser-state-check.test.ts | Add coverage for new doctor health check detect/repair behavior. |
| src/flows/doctor-health-contributions.ts | Wire new check into doctor legacy-state health contribution. |
| src/flows/doctor-core-checks.ts | Register new doctor health check in core check registry. |
| src/flows/channel-setup.status.ts | Remove zalouser channel setup primer mapping. |
| src/config/validation.ts | Downgrade removed bundled channel ids (e.g. zalouser) to warnings instead of fatal config errors. |
| src/config/config.plugin-validation.test.ts | Add test asserting removed bundled channel id warns instead of failing config load. |
| src/commands/doctor/shared/stale-plugin-config.ts | Seed removed bundled channel ids so doctor can strip stale channels.<id> blocks without plugin evidence. |
| src/commands/doctor/shared/stale-plugin-config.test.ts | Add test for stripping channels.zalouser plus dependent modelByChannel / heartbeat refs. |
| src/commands/doctor/shared/empty-allowlist-policy.test.ts | Replace zalouser test fixture with zalo. |
| src/commands/doctor/channel-capabilities.test.ts | Remove doctor channel capabilities test case for zalouser. |
| src/commands/doctor-config-flow.test.ts | Remove zalouser mocked capabilities and repoint mutable-allowlist warning test to msteams. |
| src/cli/channel-auth.test.ts | Replace zalouser login ambiguity fixture with zalo. |
| src/channels/turn/message-turn-guardrails.test.ts | Remove extensions/zalouser file references from channel turn guardrail lists. |
| src/channels/plugins/setup-helpers.test.ts | Replace zalouser config fixture with zalo. |
| src/channels/plugins/contracts/test-helpers/surface-contract-registry.ts | Remove zalouser from contract registries and directory presence-only set. |
| src/channels/plugins/contracts/channel-import-guardrails.test.ts | Remove zalouser from guarded extension lists. |
| src/channels/plugins/configured-state.test.ts | Remove zalouser from configured-state metadata expectations. |
| src/channels/plugins/bundled.shape-guard.test.ts | Remove extensions/zalouser doctor-path checks from bundled shape guard suite. |
| src/channels/ids.ts | Add REMOVED_BUNDLED_CHANNEL_IDS + isRemovedBundledChannelId helper. |
| src/auto-reply/reply/inbound-context.test.ts | Replace zalouser inbound context fixture with zalo. |
| security/opengrep/precise.yml | Remove zalouser-specific GHSA opengrep rule. |
| scripts/lib/optional-bundled-clusters.mjs | Remove zalouser from optional bundled clusters list. |
| scripts/lib/official-external-channel-catalog.json | Remove @openclaw/zalouser entry from official external channel catalog. |
| scripts/generate-plugin-inventory-doc.mjs | Remove zalouser from humanized plugin id map. |
| scripts/check-channel-agnostic-boundaries.mjs | Remove zalouser from channel id allowlist used by boundary checker. |
| pnpm-lock.yaml | Remove extensions/zalouser importer and zca-js transitive packages from lockfile. |
| package.json | Remove dist include override for dist/extensions/zalouser/**. |
| extensions/zalouser/tsconfig.json | Deleted: remove plugin subtree. |
| extensions/zalouser/test-api.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/zca-js-exports.d.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/zca-constants.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/zca-client.test.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/zalo-js.test-mocks.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/types.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/test-helpers.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/status-issues.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/status-issues.test.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/shared.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/setup-test-helpers.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/setup-core.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/session-state.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/session-scope.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/session-route.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/session-route.test.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/send-receipt.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/security-audit.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/security-audit.test.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/runtime.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/reaction.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/reaction.test.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/qr-temp-file.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/probe.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/probe.test.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/monitor.send.test-mocks.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/monitor.account-scope.test.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/message-sid.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/message-sid.test.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/ingress.test-support.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/group-policy.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/group-policy.test.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/doctor.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/doctor.test.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/doctor-contract.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/directory.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/config-schema.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/channel.setup.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/channel.setup.test.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/channel.runtime.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/channel.directory.test.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/channel-api.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/accounts.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/accounts.test-mocks.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/src/accounts.runtime.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/setup-plugin-api.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/setup-entry.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/secret-contract-api.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/runtime-api.ts | Deleted: remove plugin subtree. |
| extensions/zalouser/README.md | Deleted: remove plugin docs in extension subtree. |
| extensions/zalouser/package.json | Deleted: remove plugin package definition. |
| extensions/zalouser/openclaw.plugin.json | Deleted: remove plugin manifest. |
| extensions/zalouser/index.ts | Deleted: remove plugin entrypoint. |
| extensions/zalouser/contract-api.ts | Deleted: remove plugin contract exports. |
| extensions/zalouser/channel-plugin-api.ts | Deleted: remove plugin contract exports. |
| extensions/zalouser/api.ts | Deleted: remove plugin public API barrel. |
| extensions/policy/src/policy-state-tool-posture.ts | Remove zalouser from implicit default account fields registry. |
| docs/tools/reactions.md | Remove zalouser reactions tool notes. |
| docs/start/hubs.md | Remove zalouser plugin hub link. |
| docs/plugins/zalouser.md | Deleted: remove plugin doc page. |
| docs/plugins/reference/zalouser.md | Deleted: remove plugin reference page. |
| docs/plugins/reference/clickclack.md | Adjust surface line and add manual block markers (regen support). |
| docs/plugins/reference.md | Update generated inventory count after removal. |
| docs/plugins/plugin-inventory.md | Remove zalouser entry and update totals. |
| docs/gateway/security/index.md | Remove zalouser dangerous config key mention. |
| docs/docs.json | Remove channels/zalouser + plugins/zalouser from docs nav map. |
| docs/docs_map.md | Remove docs-map entries for removed zalouser pages. |
| docs/concepts/multi-agent.md | Remove zalouser from multi-account channel list. |
| docs/cli/directory.md | Remove zalouser directory-id docs and update examples. |
| docs/channels/pairing.md | Remove zalouser from supported pairing channel list. |
| docs/channels/index.md | Remove zalouser from channels index. |
| docs/.generated/config-baseline.sha256 | Regenerated config baseline hash after removal. |
| docs/.generated/config-baseline.counts.json | Regenerated baseline counts after removal. |
| config/max-lines-baseline.txt | Remove extensions/zalouser from max-lines baseline. |
| .github/workflows/codeql-critical-quality.yml | Remove extensions/zalouser from CodeQL paths and routing switch. |
| .github/labeler.yml | Remove channel: zalouser labeler rules. |
| .github/codeql/codeql-channel-runtime-boundary-critical-quality.yml | Remove extensions/zalouser from CodeQL boundary config. |
Files not reviewed (3)
- extensions/browser/chrome-extension/modules/copilot-runtime.js: Generated file
- extensions/zalouser/npm-shrinkwrap.json: Generated file
- pnpm-lock.yaml: Generated file
| const entries = await readdir(target); | ||
| return entries.some((entry) => entry === "credentials.json" || entry.startsWith("credentials-")); | ||
| } |
Retire the unofficial zca-js Zalo personal-account (web-spoof) channel. Zalo automation via zca-js carries account-ban risk and has no official vendor backing; the official path is the external @zalo-platforms/openclaw-zaloclawbot plugin. - Delete extensions/zalouser and its docs; purge every registry, catalog, labeler, CodeQL, Opengrep, i18n, and generated-metadata reference. - Config migration: an orphaned channels.zalouser now loads with a warning instead of failing config load, and `openclaw doctor --fix` strips the stale key plus dependent modelByChannel/heartbeat refs (REMOVED_BUNDLED_CHANNEL_IDS in src/channels/ids.ts). - Add core/doctor/removed-zalouser-state to clean leftover state/credentials/zalouser credential files. The plugin-sdk/zalouser compat facade is intentionally retained for external published plugins that import it.
2fd2440 to
e01e523
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
Codex review: needs real behavior proof before merge. Reviewed August 6, 2026, 7:39 PM ET / 23:39 UTC. ClawSweeper reviewWhat this changesRemoves the bundled Zalo Personal channel and adds config, Doctor, documentation, registry, and state-cleanup changes for existing operators. Merge readiness⛔ Blocked until stronger real behavior proof is added - 11 items remain Keep open: current main still bundles and registers Zalo Personal, but this retirement patch leaves its current SQLite-held credentials behind and can over-delete the legacy credential directory. Priority: P1 Review scores
Verification
How this fits togetherBundled channel metadata feeds configuration validation and gateway plugin discovery. Doctor is the migration owner that removes retired channel configuration and credential state before the next normal startup. flowchart LR
A[Existing Zalo Personal setup] --> B[Config validation]
B --> C[Gateway plugin discovery]
A --> D[Doctor repair]
D --> E[Legacy files and SQLite state]
E --> F[Clean retired-channel setup]
Decision needed
Why: Removing a shipped channel is a product and upgrade decision; the security label and incomplete persisted-credential migration make it unsafe to infer that choice from the branch alone. Before merge
Findings
Agent review detailsSecurityNeeds attention: The retirement migration leaves current cookie-bearing credentials in shared SQLite after its advertised cleanup. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: If maintainers sponsor the retirement, make Doctor clear only the Do we have a high-confidence way to reproduce the issue? Yes, from source: seed a Is this the best way to solve the issue? No: retirement plus Doctor migration is the right owner boundary, but the current implementation does not clean the credential store used by main and its legacy-file fingerprint is broader than the original contract. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7c9596b0077c. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Summary
Removes the bundled
zalouserchannel plugin — the unofficialzca-jsZalo personal-account (web-spoof) integration. Zalo automation viazca-jscarries account-ban risk and has no official vendor backing; the official, vendor-backed path is the external@zalo-platforms/openclaw-zaloclawbotchannel plugin, so the unofficial in-tree channel is retired.This mirrors the recent bundled-plugin removal recipe (
refactor(plugins)!: remove experimental workspaces plugin, #110416) and the channel-removal precedent (bluebubbles): delete the extension tree, purge every registry/doc/test reference, regenerate generated artifacts, and add anopenclaw doctor --fixmigration so existing configs keep loading.Breaking change: operators who configured
channels.zalouserwill need to migrate (handled gracefully — see below).What changed
extensions/zalouser/**(the whole plugin) and its docs (docs/channels/zalouser.md,docs/plugins/zalouser.md,docs/plugins/reference/zalouser.md).optional-bundled-clusters,official-external-channel-catalog, policy tool-posture, logging subsystem prefixes, channel-setup blurbs, plugin-art slugs, channel-agnostic-boundary list, labeler, CodeQL boundary configs, the zalouser Opengrep GHSA rule, wizard i18n (en/zh), and thepackage.jsonfiles-exclude.channels.zalouserblock would otherwise fail config load fatally once the channel is unknown. AddedREMOVED_BUNDLED_CHANNEL_IDS(src/channels/ids.ts); config validation now downgrades it to a non-fatal warning pointing atopenclaw doctor --fix, and the stale-plugin-config doctor sweep stripschannels.zalouserplus dependentmodelByChannel/heartbeat references.core/doctor/removed-zalouser-statecheck removes leftoverstate/credentials/zalouser/credential files onopenclaw doctor --fix(modeled on the retired-workspaces state check).Note: the
plugin-sdk/zalousercompat facade insrc/plugins/compat/registry.tsis intentionally left in place — it is an external Plugin-SDK re-export (kept for published third-party Lark/Zalo plugins) with its own deprecation window, independent of this bundled channel.Verification
pnpm build— passpnpm tsgo:core+pnpm tsgo:core:test— passoxfmt --check+oxlinton changed files — cleanReal behavior proof
zalouserchannel + ensuring existingchannels.zalouserconfigs keep loading (downgraded to a warning) and are cleaned up byopenclaw doctor --fix.pnpm build+ Vitest.pnpm install; regenerate (config:channels:gen,config:docs:gen,plugins:inventory:gen,docs:map:gen, max-lines--prune);pnpm build;pnpm tsgo:core+pnpm tsgo:core:test;oxfmt --check+oxlinton changed files; targeted Vitest for the migration/doctor/contract suites.config.plugin-validation(orphanedchannels.zalouser→ warning, not fatal),stale-plugin-config(doctor --fixstrips the key + dependent refs),doctor-removed-zalouser-state-check(credential-dir cleanup), plus the updated bundled-channel contract/guardrail suites.channels.zalouserno longer fails config load;openclaw doctor --fixremoves the stale channel key, dependentmodelByChannel/heartbeat refs, and leftoverstate/credentials/zalouser/files. No remaining references to the plugin except intentional frozen CHANGELOG history and the deliberately-retained externalplugin-sdk/zalousercompat facade.