Skip to content

fix(discord): refuse unavailable model runtime selections - #143322

Merged
obviyus merged 7 commits into
mainfrom
fix/discord-model-runtime
Sep 10, 2026
Merged

obviyus merged 7 commits into
mainfrom
fix/discord-model-runtime

Conversation

@obviyus

@obviyus obviyus commented Sep 9, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #136257, #143588.

What Problem This Solves

Fixes an issue where the chat model picker retained a runtime for another model or selected a different runtime when an old menu’s choices were reordered.

Why This Change Was Made

The picker consumes shared model-specific runtime choices with the effective session’s authentication context. Navigation carries stable runtime identities and rejects unavailable, retired or obsolete selections before command dispatch.

User Impact

Valid choices remain selectable; stale choices show a notice without changing saved state. Older supported installations retain model-only selection and refuse unsupported explicit runtime changes.

Consumers: the channel picker uses shared model/runtime eligibility and stable identities.

Evidence

Four rendering regressions failed before the fix. Targeted picker, catalog and authentication tests passed. Registered commands with a mocked Gateway proved available selection and unavailable/stale refusal with unchanged saved state. Live guild evidence covered replies and menu-component delivery; native commands and user component clicks were not driven.

@obviyus
obviyus requested a review from a team as a code owner September 9, 2026 18:35
@clawsweeper

clawsweeper Bot commented Sep 9, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord gateway Gateway runtime scripts Repository scripts commands Command implementations agents Agent runtime and tooling extensions: codex size: XL maintainer Maintainer-authored PR labels Sep 9, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 9, 2026
@clawsweeper

clawsweeper Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 10, 2026, 2:19 PM ET / 18:19 UTC (Revision 11).

ClawSweeper review

What this changes

Discord’s model picker uses model-specific runtime availability, preserves runtime identity across navigation, and refuses stale or unavailable selections before dispatch.

Merge readiness

⛔ Blocked before merge - 2 items remain

This remains a useful Discord fix that current main does not implement. No blocking code defect was found in the narrowed patch; earlier credential-import findings no longer belong to its introduced changes. Repository-required visual evidence remains outstanding.

Priority: P2
Reviewed head: 338bb7518d89f8378d22730ca6718ebd7bd44661

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The narrowed implementation and regression coverage are sound, with remaining uncertainty in visible behavior and supported-host upgrade proof.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Evidence reviewed 9 items Verified introduced scope: The pinned merge-base-to-head delta contains only Discord picker production code and tests. Credential import, provider policy, database changes, and the base-only plugin-state files are outside this PR’s introduced changes.
Current main still needs the Discord consumer fix: Current main’s picker reads provider-wide runtime choices and falls back to the built-in runtime. It does not implement the branch’s model-specific rendering and stable runtime tokens.
Shared producer landed separately: GitHub verifies #143588 merged at d9048fd. Its body explicitly identifies Discord as a separate consumer lane, so it does not supersede this PR. Earlier credential-import and profile-cutover findings concern that separate work.
Findings None None.
Security None None.

How this fits together

Discord’s model picker turns slash-command interactions into model-selection commands. It reads OpenClaw’s shared model catalog and session context, while normal command dispatch retains authorization and persistence.

flowchart TD
  A[Discord model picker] --> B[Resolve session context]
  B --> C[Shared model and runtime catalog]
  C --> D[Validate selected runtime]
  D -->|Unavailable or stale| E[Show recovery notice]
  D -->|Available| F[Authorized command dispatch]
  F --> G[Save and confirm selection]
Loading

Before merge

  • Resolve merge risk (P1) - Existing positional-runtime menus require reopening after upgrade. On v2026.9.3, native-pinned selections intentionally stop with an update notice; the supplied evidence does not demonstrate that plugin-upgrade experience in Discord.
  • Complete next step (P2) - Add before/after Discord picker captures and redacted selection output, including supported older-host behavior. Remove keys, IP addresses, phone numbers, and private endpoints. Update the PR body to trigger re-review; if needed, ask a maintainer to comment @clawsweeper re-review.
Agent review details

Security

None.

PR surface

Source +106, Tests +430. Total +536 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 5 275 169 +106
Tests 3 558 128 +430
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 833 297 +536

Review metrics

Metric Value Why it matters
Production versus test growth production +106 net; tests/support +430 net Production growth supplies stable runtime identities, validation, and the released-host adapter; tests exercise their observable contracts.

Merge-risk options

Maintainer options:

  1. Verify the supported-host upgrade experience (recommended)
    Provide Discord evidence that built-in model selection remains usable after a plugin upgrade and unsupported native selections receive the intended recovery notice.

Technical review

Best possible solution:

Keep shared catalog ownership and normal command authorization, with demonstrated picker recovery and built-in model-only compatibility on the supported older host.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: current main derives runtime choices from the provider union, allowing another model’s runtime into the picker. The focused regressions exercise that distinction; no runtime reproduction was executed here.

Is this the best way to solve the issue?

Yes. Consuming shared model-specific decisions and retaining normal command dispatch is a focused repair without adding a competing availability or authorization owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 99cd8f569d25.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
  • remove merge-risk: 🚨 auth-provider: Current PR review merge-risk labels are merge-risk: 🚨 compatibility.
  • remove merge-risk: 🚨 security-boundary: Current PR review merge-risk labels are merge-risk: 🚨 compatibility.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This repairs a bounded Discord model-picker selection defect.
  • merge-risk: 🚨 compatibility: Older-host native selections and existing positional-runtime menus intentionally require recovery or an update after the plugin changes.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

Evidence

What I checked:

  • Verified introduced scope: The pinned merge-base-to-head delta contains only Discord picker production code and tests. Credential import, provider policy, database changes, and the base-only plugin-state files are outside this PR’s introduced changes. (338bb7518d89)
  • Current main still needs the Discord consumer fix: Current main’s picker reads provider-wide runtime choices and falls back to the built-in runtime. It does not implement the branch’s model-specific rendering and stable runtime tokens. (extensions/discord/src/monitor/model-picker.view.ts:213, 99cd8f569d25)
  • Shared producer landed separately: GitHub verifies feat(models): align native sign-in and model runtime choices #143588 merged at d9048fd. Its body explicitly identifies Discord as a separate consumer lane, so it does not supersede this PR. Earlier credential-import and profile-cutover findings concern that separate work. (d9048fd29eb0)
  • Selection validation and existing authority owner: The interaction checks the selected model’s choices, refuses unresolved runtime tokens, and rechecks catalog freshness after awaiting the applying notice. It then calls the existing apply/command pipeline. Core also validates runtime/profile selection at persistence; this diff adds no credential writer or transferred authorization capability. (extensions/discord/src/monitor/native-command-model-picker-interaction.ts:579, 338bb7518d89)
  • Dependency boundary: The changed code consumes OpenClaw’s models-provider-runtime SDK contract. Runtime identifiers in fixtures do not exercise Codex’s protocol or authentication implementation; the separately merged producer owns those contracts. No dependency-specific Codex inspection gate is established by this narrowed diff. (extensions/discord/src/monitor/model-picker.runtime.ts:1, 338bb7518d89)
  • Released-host compatibility boundary: The v2026.9.3 SDK exports the prepared catalog builder but lacks getModelsRuntimeChoices. The adapter tolerates that absence; the interaction preserves built-in model-only selection while explicitly refusing native pins and runtime changes. (src/plugin-sdk/models-provider-runtime.ts:9, 1391f7cd2d40)

Likely related people:

  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add sanitized before/after Discord picker captures with observed valid selection and unavailable-selection refusal.
  • Demonstrate built-in model-only selection and the intended native-runtime recovery notice on v2026.9.3.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-09T21:49:28.865Z sha 342cb86 :: blocked before merge. :: [P1] [P1] Preserve CLI-backed profiles until their upgrade path is qualified
  • reviewed 2026-09-10T01:36:55.934Z sha 844fd33 :: blocked before merge. :: [P1] [P1] Preserve CLI-backed profiles until upgrades are qualified
  • reviewed 2026-09-10T02:38:42.267Z sha 844fd33 :: blocked before merge. :: [P1] [P1] Preserve CLI-backed profiles until upgrades are qualified | [P1] [P1] Preserve Discord's declared minimum-host SDK compatibility
  • reviewed 2026-09-10T04:00:45.952Z sha ab7a620 :: blocked before merge. :: [P1] [P1] Preserve CLI-backed profiles until upgrades are qualified | [P1] [P1] Keep model selection usable on the advertised minimum host
  • reviewed 2026-09-10T04:32:27.288Z sha ab7a620 :: blocked before merge. :: [P1] [P1] Preserve CLI-backed profiles until upgrades are qualified | [P1] [P1] Keep model selection usable on the advertised minimum host
  • reviewed 2026-09-10T12:46:12.299Z sha 8e2d019 :: needs real behavior proof before merge. :: [P1] Preserve CLI-backed profiles until their upgrade path is qualified | [P1] Revalidate inherited accounts before filling the legacy profile
  • reviewed 2026-09-10T13:49:42.795Z sha 9368339 :: needs real behavior proof before merge. :: [P1] Reject a conflicting inherited account at the destination ID | [P1] Preserve CLI-backed profiles until upgrades are qualified
  • reviewed 2026-09-10T14:20:49.370Z sha 4088fa5 :: needs real behavior proof before merge. :: [P1] Reject a conflicting inherited account at the destination ID | [P1] Preserve CLI-backed profiles until upgrades are qualified

@obviyus obviyus self-assigned this Sep 9, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 9, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 10, 2026
@openclaw-barnacle openclaw-barnacle Bot added the cli CLI command changes label Sep 10, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 10, 2026
@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 10, 2026
obviyus added a commit that referenced this pull request Sep 10, 2026
## Summary

Native Codex sign-in now supplies model availability without copying its credentials into OpenClaw profiles. CLI, chat, status, and Gateway model controls use one prepared owner for per-model runtime eligibility, physical routes, and authentication mode. Selections are revalidated before session persistence.

Native sign-in observations no longer masquerade as host-prepared credentials when the registered runtime evaluates model eligibility. Native credentials remain with Codex. Explicit profiles, account pins, authored routes, isolated agent homes, and remote server accounts retain their existing boundaries. Native local stdio uses the user home only when no prepared OpenClaw credential or explicit home selection owns the route. The separate Gateway authentication projection and ordinary-read Codex credential import are removed.

Explicit import preserves the supported declared `openai:default` profile reference. Apply now rechecks inherited account identity and usability at the destination, so an account inserted under the same profile ID after planning cannot be silently replaced. Matching shared accounts stay inherited. Native authentication enumeration also follows the captured plugin generation, including an explicitly empty generation, instead of unrelated ambient registry state.

Default local discovery asks the existing ordered-profile owner first and carries its selected profile and store into the shared client. Native login is the fallback when that owner selects no profile; an explicitly selected native home retains its authority.

Stdio proxies keep the destination server’s account and model catalog. Local login probing and the native user-home default apply only to owned local stdio runtimes; proxy arguments from configuration and environment use the existing proxy classifier.

Login-status probing also retains the official Node launcher prefix and native configuration arguments while removing the app-server transport suffix. Runtime verification rules are unchanged.

## Compatibility

The approved native-owner cutover requires explicit import or reselection for old CLI-backed pins outside the supported declared default-profile recovery. The credential documentation describes that recovery. Existing explicitly isolated homes and remote connections retain their selection. No configuration key, protocol version, or SQLite schema is added.

Dependency contract personally inspected in Codex at `e5769939113536eb72752660bf7d1903f799d198`: [`codex-rs/app-server-protocol/src/protocol/v2/account.rs:524`](https://github.com/openai/codex/blob/e5769939113536eb72752660bf7d1903f799d198/codex-rs/app-server-protocol/src/protocol/v2/account.rs#L524) (`GetAccountParams` and `GetAccountResponse`), [`codex-rs/app-server/src/request_processors/account_processor.rs:826`](https://github.com/openai/codex/blob/e5769939113536eb72752660bf7d1903f799d198/codex-rs/app-server/src/request_processors/account_processor.rs#L826) (managed refresh and client-supplied token login), and [`codex-rs/cli/src/login.rs:443`](https://github.com/openai/codex/blob/e5769939113536eb72752660bf7d1903f799d198/codex-rs/cli/src/login.rs#L443) (native login status). `account/read` supplies account identity; an unknown remote subscription mode remains unknown. [`codex-rs/cli/src/main.rs:1344`](https://github.com/openai/codex/blob/e5769939113536eb72752660bf7d1903f799d198/codex-rs/cli/src/main.rs#L1344) confirms that stdio proxy forwards to the selected Unix socket.

## Validation

- Native Testbox: 300 selected tests passed across import/auth bridge, native login/logout, per-model choices, captured generation ownership, status, Gateway metadata, and CLI cleanup.
- The inherited-account and captured-registry regressions failed before their fixes and pass afterward.
- The registered-harness correction passed 60 focused tests. The proxy correction failed six regression cases before the fix, then passed all 76 focused tests.
- The profile-owned discovery correction passed 18 catalog cases and two selected shared-client cases after two expected regression failures. The launcher correction passed 31 native/transport cases after its expected regression failure.
- A required merge-conflict rebase retained all 17 PR patches. The auth-pin and selected-model setup tests passed all 23 cases on the rebased head; retained runtime captures keep their original tested build identities.
- Formatting and syntax lint passed for each correction. Type checks and full CI run on GitHub.
- Telegram Test Server commands on the compiled candidate: native runtime selection succeeds; status agrees; a missing explicit profile rejects without changing selection; verified native logout plus public catalog refresh rejects the native runtime. No inference requests were made.
- Enabled-discovery proof with the real Codex binary selects the profile-owned catalog while native login is absent or different, and the native catalog for explicit user-home selection. An official Node-launcher control with no host profiles reports native auth and an available native model. Synthetic host-token cases retain vendor auth-rejection diagnostics; this proof establishes catalog ownership, not vendor credential validity.
- Public interactive migration was paused at confirmation while a same-ID inherited account was inserted. A different account reports conflict; a matching usable account is reused; neither writes a child-local shadow. The unrelated shared profile and native source remain intact.
- Public CLI migration preserves the declared `openai:default` reference, configured model, and native source bytes. Repeating import with a separate backup output retains one profile and reports no credential write.
- Synthetic native credentials prove local command and ownership behavior; they do not establish vendor authentication or inference. Full GitHub CI and the exact-head landing review are tracked by the required checks and landing receipt.

Related: #136257. Builds on explicit import from #142933. Discord #143322 is a separate consumer lane.

Co-authored-by: Ayaan Zaidi <[email protected]>
@obviyus
obviyus force-pushed the fix/discord-model-runtime branch from 4088fa5 to b41be86 Compare September 10, 2026 18:04
@openclaw-barnacle openclaw-barnacle Bot removed docs Improvements or additions to documentation gateway Gateway runtime cli CLI command changes scripts Repository scripts commands Command implementations agents Agent runtime and tooling extensions: codex labels Sep 10, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 10, 2026
@obviyus

obviyus commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator Author

landpr-approve-admin-merge
pr: 143322
head: 338bb75
scope: owner-review

@obviyus
obviyus merged commit 639d930 into main Sep 10, 2026
106 of 107 checks passed
@obviyus
obviyus deleted the fix/discord-model-runtime branch September 10, 2026 18:36
@obviyus

obviyus commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks @obviyus!

Proof: The compiled, registered mock-Gateway flow saved an available model, refused an unavailable selection without changing saved state, and refused a stale generated control. Live QA bots completed a guild message round-trip; Discord also accepted and returned the generated menu components.

Before After
A provider-wide runtime could be offered for an incompatible model. The selected model's shared runtime choices control the menu and submission.
Runtime list reordering could change the meaning of a pending choice. Stable runtime identities and stale-selection refusal preserve the saved choice.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 11, 2026
…w#143588)

## Summary

Native Codex sign-in now supplies model availability without copying its credentials into OpenClaw profiles. CLI, chat, status, and Gateway model controls use one prepared owner for per-model runtime eligibility, physical routes, and authentication mode. Selections are revalidated before session persistence.

Native sign-in observations no longer masquerade as host-prepared credentials when the registered runtime evaluates model eligibility. Native credentials remain with Codex. Explicit profiles, account pins, authored routes, isolated agent homes, and remote server accounts retain their existing boundaries. Native local stdio uses the user home only when no prepared OpenClaw credential or explicit home selection owns the route. The separate Gateway authentication projection and ordinary-read Codex credential import are removed.

Explicit import preserves the supported declared `openai:default` profile reference. Apply now rechecks inherited account identity and usability at the destination, so an account inserted under the same profile ID after planning cannot be silently replaced. Matching shared accounts stay inherited. Native authentication enumeration also follows the captured plugin generation, including an explicitly empty generation, instead of unrelated ambient registry state.

Default local discovery asks the existing ordered-profile owner first and carries its selected profile and store into the shared client. Native login is the fallback when that owner selects no profile; an explicitly selected native home retains its authority.

Stdio proxies keep the destination server’s account and model catalog. Local login probing and the native user-home default apply only to owned local stdio runtimes; proxy arguments from configuration and environment use the existing proxy classifier.

Login-status probing also retains the official Node launcher prefix and native configuration arguments while removing the app-server transport suffix. Runtime verification rules are unchanged.

## Compatibility

The approved native-owner cutover requires explicit import or reselection for old CLI-backed pins outside the supported declared default-profile recovery. The credential documentation describes that recovery. Existing explicitly isolated homes and remote connections retain their selection. No configuration key, protocol version, or SQLite schema is added.

Dependency contract personally inspected in Codex at `e5769939113536eb72752660bf7d1903f799d198`: [`codex-rs/app-server-protocol/src/protocol/v2/account.rs:524`](https://github.com/openai/codex/blob/e5769939113536eb72752660bf7d1903f799d198/codex-rs/app-server-protocol/src/protocol/v2/account.rs#L524) (`GetAccountParams` and `GetAccountResponse`), [`codex-rs/app-server/src/request_processors/account_processor.rs:826`](https://github.com/openai/codex/blob/e5769939113536eb72752660bf7d1903f799d198/codex-rs/app-server/src/request_processors/account_processor.rs#L826) (managed refresh and client-supplied token login), and [`codex-rs/cli/src/login.rs:443`](https://github.com/openai/codex/blob/e5769939113536eb72752660bf7d1903f799d198/codex-rs/cli/src/login.rs#L443) (native login status). `account/read` supplies account identity; an unknown remote subscription mode remains unknown. [`codex-rs/cli/src/main.rs:1344`](https://github.com/openai/codex/blob/e5769939113536eb72752660bf7d1903f799d198/codex-rs/cli/src/main.rs#L1344) confirms that stdio proxy forwards to the selected Unix socket.

## Validation

- Native Testbox: 300 selected tests passed across import/auth bridge, native login/logout, per-model choices, captured generation ownership, status, Gateway metadata, and CLI cleanup.
- The inherited-account and captured-registry regressions failed before their fixes and pass afterward.
- The registered-harness correction passed 60 focused tests. The proxy correction failed six regression cases before the fix, then passed all 76 focused tests.
- The profile-owned discovery correction passed 18 catalog cases and two selected shared-client cases after two expected regression failures. The launcher correction passed 31 native/transport cases after its expected regression failure.
- A required merge-conflict rebase retained all 17 PR patches. The auth-pin and selected-model setup tests passed all 23 cases on the rebased head; retained runtime captures keep their original tested build identities.
- Formatting and syntax lint passed for each correction. Type checks and full CI run on GitHub.
- Telegram Test Server commands on the compiled candidate: native runtime selection succeeds; status agrees; a missing explicit profile rejects without changing selection; verified native logout plus public catalog refresh rejects the native runtime. No inference requests were made.
- Enabled-discovery proof with the real Codex binary selects the profile-owned catalog while native login is absent or different, and the native catalog for explicit user-home selection. An official Node-launcher control with no host profiles reports native auth and an available native model. Synthetic host-token cases retain vendor auth-rejection diagnostics; this proof establishes catalog ownership, not vendor credential validity.
- Public interactive migration was paused at confirmation while a same-ID inherited account was inserted. A different account reports conflict; a matching usable account is reused; neither writes a child-local shadow. The unrelated shared profile and native source remain intact.
- Public CLI migration preserves the declared `openai:default` reference, configured model, and native source bytes. Repeating import with a separate backup output retains one profile and reports no credential write.
- Synthetic native credentials prove local command and ownership behavior; they do not establish vendor authentication or inference. Full GitHub CI and the exact-head landing review are tracked by the required checks and landing receipt.

Related: openclaw#136257. Builds on explicit import from openclaw#142933. Discord openclaw#143322 is a separate consumer lane.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 11, 2026
…43322)

Use shared model-specific runtime and session authentication facts in Discord model menus. Preserve stable runtime identities through navigation and refuse unknown, unavailable, retired, or obsolete selections before normal command dispatch.

Related: openclaw#136257

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant