Repository navigation
fix(doctor): suppress false empty groupAllowFrom warning when all accounts have populated allowlists - #93305
fix(doctor): suppress false empty groupAllowFrom warning when all accounts have populated allowlists#93305whiteyzy wants to merge 2 commits into
Conversation
…ounts have populated allowlists When every real account under a channel has its own populated groupAllowFrom or allowFrom, the top-level empty groupAllowFrom is never reached at runtime. Skip the warning in this case. Closes openclaw#92684.
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: the same doctor false-positive was fixed by the merged canonical PR and shipped in v2026.6.10, while this stale branch is narrower than current main and would drop current account-resolution safeguards. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Keep the merged current-main implementation from #93434; if a plugin-specific warning still false-positives on current main, track that as a fresh narrow issue with redacted So I’m closing this here and keeping the remaining discussion on #93434. Review detailsBest possible solution: Keep the merged current-main implementation from #93434; if a plugin-specific warning still false-positives on current main, track that as a fresh narrow issue with redacted Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible. The linked issue describes the parent-channel false warning, and current main has focused regression tests for the fixed scanner path; I did not run tests because this review is read-only. Is this the best way to solve the issue? No. This branch is not the best fix because the canonical merged path resolves runtime account identities and preserves conservative warnings, while this PR keeps a configured-account-only suppression strategy. Security review: Security review cleared: No concrete security or supply-chain issue was found; the diff only changes doctor warning logic in one TypeScript source file. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against d1b917120a47; fix evidence: release v2026.6.10, commit d697ecf1720e. |
|
@clawsweeper re-review This is a deterministic scope check in the doctor empty-allowlist scanner. When every real account under a channel has its own populated groupAllowFrom/allowFrom, the top-level empty allowlist is never reached at runtime. The fix checks this condition before generating the warning. 12/12 tests pass. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…wlist scan - Only skip top-level warning when at least one enabled account exists - Also suppress plugin extraWarningsForAccount for the top-level scope when all enabled accounts have populated allowlists - Disabled accounts no longer count as 'covered' Refs: openclaw#92684
|
@clawsweeper re-review Updated (per P1 review feedback):
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Summary
Fixes #92684:
openclaw doctorfalsely warns "all group messages will be silently dropped" when a channel hasgroupPolicy: "allowlist"with an empty top-levelgroupAllowFrom, but every real account under it carries its own populatedgroupAllowFrom/allowFrom.Fix: In
scanEmptyAllowlistPolicyWarnings, detect when all non-disabled accounts have populated allowlists and pass ashouldSkipGroupWarningfunction to suppress the false positive for the top-level scope.Real behavior proof
node scripts/run-vitest.mjs run src/commands/doctor/repair-sequencing.test.ts --reporter=verboseopenclaw doctorwith live multi-account channel config (requires gateway)Closes #92684.
🤖 Generated with Claude Code
Co-Authored-By: Claude Code [email protected]