Repository navigation
refactor(qqbot): install plugin from Tencent package - #107295
Conversation
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency removals notedThis PR only removes dependencies from the dependency graph, so the dependency guard is informational and does not require
A later push that adds or changes dependency graph entries will require a fresh security approval. |
e1c4444 to
0efc586
Compare
|
Codex review: found issues before merge. Reviewed August 11, 2026, 6:00 PM ET / 22:00 UTC. ClawSweeper reviewWhat this changesThe PR removes bundled QQ Bot and moves catalog, installation, upgrade, setup, documentation, and secret compatibility support to Tencent’s external npm plugin. Merge readinessThis PR is still necessary, but it is not ready to merge: the public guide keeps the removed QQ Bot package command, the SecretRef guidance contradicts the added compatibility bridge, the fallback can activate secrets for an unavailable plugin, and a new SDK export widens approval authority. Priority: P1 Review scores
Verification
How this fits togetherQQ Bot settings select an official catalog entry, which installs and loads Tencent’s plugin before the Gateway runs the channel. Upgrade, setup, and secret-resolution paths must preserve existing operators’ configuration while moving the plugin owner. flowchart LR
A[QQ Bot configuration] --> B[Official channel catalog]
B --> C[Install and update bridge]
C --> D[Tencent QQ Bot plugin]
A --> E[Secret resolution]
E --> D
D --> F[Gateway channel runtime]
F --> G[Approval actions]
Decision needed
Why: This is a public authority-boundary expansion; the thread records temporary acceptance, but repository policy requires explicit SDK and security-owner acceptance before widening that trust boundary. Before merge
Findings
Agent review detailsSecurityNeeds attention: The new public gateway-runtime export exposes a token-bearing approval client that can establish device-less approval authority from any installed plugin. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the catalog-based QQ Bot migration, but correct the Tencent install and SecretRef documentation, gate fallback resolution on the active external owner, and use the existing injected closure-bound approval runtime instead of exporting token-bearing authority publicly. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection reproduces the stale install command and the approval-authority path; the fallback’s missing active-origin guard follows directly from its unconditional catalog return in the supplied PR diff and current runtime collector contract. Is this the best way to solve the issue? No. Externalizing QQ Bot fits the plugin ownership direction, but public device-less approval authority and an ungated host fallback are broader than the existing injected-runtime and active-owner seams. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 459c70e14a2c. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (25 earlier review cycles; latest 8 shown)
|
49f57f1 to
b93f133
Compare
2e2002a to
ce9be43
Compare
|
Heads up: this landed without regenerating the config-docs baseline, so Reproduced with a bisect on unmodified checkouts, no local diff:
The gap is exactly this change: counting entries in the generated channel and plugin baselines at
The practical damage is on contributor PRs rather than the repo itself. Any branch that touches config surface and correctly reruns the generators now commits the smaller, accurate counts, and automated review reads that as an unexplained contraction. Six of my open PRs picked up findings this round saying the branch "erases unrelated baseline coverage" or "records a broad unexplained surface contraction", when the branches are right and the committed budget is stale. The fix looks like Not urgent for correctness at runtime, since the baseline is a drift guard rather than a validation input. It is just currently guarding the wrong number. |
What Problem This Solves
QQBot is still maintained and released from the OpenClaw monorepo, unlike the other externally owned Tencent channels. This duplicates ownership and prevents Tencent Connect from shipping the channel independently.
Why This Change Was Made
extensions/qqbotimplementation and its root-only dependencies.@tencent-connect/openclaw-qqbotpackage in the official external channel catalog and follow npm'slatesttag.qqbot, and update onboarding, generated runtime metadata, release/build guards, and tests.User Impact
New installs and onboarding now fetch Tencent Connect's external package from npm
latest. Existing string credentials and theQQBOT_APP_ID/QQBOT_CLIENT_SECRETenvironment variables remain supported. The external package currently requires structuredSecretRefusers to move those credentials to environment variables before upgrading. QR login remains available in the external package. The documentation uses the unversioned package spec so future Tencent releases are picked up automatically.AI-assisted: yes.
Evidence
latestcurrently resolves to 2.0.0.src/infra/tsdown-config.test.tspassed after removing the finalqrcode-terminalbuild exclusion.git diff --checkpassed.