Repository navigation
fix: avoid loading unconfigured channel runtimes for profiles - #190033
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
steipete
enabled auto-merge (squash)
November 1, 2026 03:28
Contributor
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 1, 2026
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.
What Problem This Solves
Opening a personal profile asks for Discord account-link status even when Discord is not configured. The handler falls through to the bundled channel resolver, which synchronously loads the full Discord runtime. The profile real-Gateway CI test stalled in this RPC for 15 seconds and then 38 seconds in run 41265660907, before the initial profile name rendered.
Why This Change Was Made
Resolve loaded and request-scoped channel adapters first, and allow bundled fallback only when the channel has an explicit configuration record. Use the same resolver when rechecking the adapter's identity during OAuth completion. Configured adapters remain usable before a channel runtime starts; stored identities remain visible as unavailable and can still be disconnected after configuration is removed.
This adds no cache or lifecycle state. A disabled but explicitly configured channel may still load its adapter; its existing adapter eligibility rules remain authoritative.
Evidence
The added cases cover empty status, saved-link status/disconnect without configuration, and configured fallback linking. Existing real Discord adapter and live-authority revocation tests remain intact. Production LOC: 214→221; test LOC: 329→377 (48 allocated regression lines). No UI markup, screenshot, or layout change.
Related diagnosis: #189949. This fix is separate from that model-picker performance change.
Release-note context: avoid loading an unconfigured channel runtime while opening a personal profile.