Repository navigation
fix: avoid parent group allowlist false positive - #93434
Merged
vincentkoc merged 5 commits intoJun 16, 2026
Merged
Conversation
vincentkoc
force-pushed
the
fix/doctor-account-allowlist-scan
branch
from
June 16, 2026 08:49
628db97 to
da2ce68
Compare
Member
|
Land-ready after maintainer repair.
Known proof gap: wrapper |
Member
|
Merged via squash.
Thanks @kingrubic! |
2 tasks done
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jun 17, 2026
Merged via squash. Prepared head SHA: da2ce68 Co-authored-by: kingrubic <[email protected]> Co-authored-by: vincentkoc <[email protected]> Reviewed-by: @vincentkoc
This was referenced Aug 16, 2026
ggeutzzang
added a commit
to ggeutzzang/openclaw
that referenced
this pull request
Aug 16, 2026
…t-time setup Operators running Telegram with multiple accounts saw doctor report the channel as unconfigured -- "Telegram is in first-time setup mode ... Group messages stay blocked" -- while those bots replied in those groups normally. Two layers caused it. resolveDoctorChannelAccountIds resolved channels through the plugin registry, which is empty during a doctor run because doctor inspects config without starting channels. It therefore returned undefined for every channel, pinning hasImplicitActiveAccount to true and leaving suppressParentGroupAllowlistWarning (added in openclaw#93434 for this same class of parent-scope false positive) permanently dead in production. Doctor was already inconsistent with itself here: channel-doctor.ts finds adapters through the config-driven read-only path, so the warning was produced, while channel-capabilities.ts needed the registry, so the data that suppresses it was missing. Account resolution now falls back the same way doctor already does elsewhere: the bundled catalog for bundled channels, and the read-only configured-plugin loader for external ones, so configured third-party channels resolve too. The parent container scope is also checked as if it were an account, and the scanner's suppression signal never reached the channel-supplied extraWarningsForAccount hook. The scope now carries its active child accounts as an optional childAccounts field, and Telegram skips first-time guidance only when every active account defines groups. childAccounts is withheld when an implicit runtime account inherits the container scope, and when no active accounts exist, so it is always non-empty when present. The field is additive: existing channel plugins that ignore it keep their current behavior, and the hook keeps being called on every scope it is called on today. Verified on the real CLI, not only tests: with neither layer the warning appears, with layer 1 alone it still appears, with both it is gone. Note the reach: because account resolution previously failed for every channel, this makes parent-scope suppression live across all channels, not just Telegram. Prepared with AI assistance (Claude Code). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #92684
Tests
CI=1 NO_COLOR=1 pnpm vitest run --config test/vitest/vitest.commands.config.ts src/commands/doctor/shared/empty-allowlist-scan.test.tsCI=1 NO_COLOR=1 pnpm vitest run --config test/vitest/vitest.commands.config.ts src/commands/doctor/shared/channel-doctor.test.tsCI=1 NO_COLOR=1 pnpm vitest run --config test/vitest/vitest.extension-telegram.config.ts telegram/src/doctor.test.tspnpm check:test-typesgit diff --check