Skip to content

fix: avoid loading unconfigured channel runtimes for profiles - #190033

Merged
steipete merged 1 commit into
mainfrom
fix/profile-channel-identity-cold-load
Nov 1, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/profile-channel-identity-cold-load

Conversation

@steipete

@steipete steipete commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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

Check Result
Regression on unchanged handler Cold unconfigured status fails as expected; other 8 tests pass
Focused handler suite on fix 9/9 pass; 53.79 s including compilation, about 5 s test work
Work count Unconfigured status/disconnect load the bundled channel zero times
Core typecheck / targeted lint / format Pass
Full build Pass; 3m30s
Independent review Autoreview P0–P2, complete source context, no actionable findings
Profile real-Gateway test PR CI will exercise the prebuilt runtime; no inherited-failure claim

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.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T03:24:16.357050Z d6f310b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S labels Nov 1, 2026
@steipete
steipete enabled auto-merge (squash) November 1, 2026 03:28
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@steipete
steipete merged commit 7938ab3 into main Nov 1, 2026
130 of 132 checks passed
@steipete
steipete deleted the fix/profile-channel-identity-cold-load branch November 1, 2026 03:34
@steipete

steipete commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Keep ordinary native-locale CI selection on the next PR run. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. gateway Gateway runtime size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant