Skip to content

fix: DashScope and Moonshot endpoints misclassified as custom when the provider plugin is not installed - #100125

Merged
steipete merged 1 commit into
mainfrom
claude/nervous-moser-b63c4b
Jul 5, 2026
Merged

steipete merged 1 commit into
mainfrom
claude/nervous-moser-b63c4b

Conversation

@steipete

@steipete steipete commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where DashScope/Qwen, Moonshot, Z.AI, DeepSeek, Groq, Cerebras, and Chutes base URLs were misclassified as custom endpoints whenever the owning provider plugin was not installed. These provider plugins are externalized (excluded from dist packaging), so installed gateways had no source for their endpoint classes: DashScope image-describe prompts were moved out of user content (breaking vision requests), and streaming-usage / developer-role compat defaults regressed for anyone pointing a generic provider key at these endpoints.

The same root cause made src/media-understanding/image.test.ts ("places DashScope image prompts in user content before images") and the DashScope/Qwen cases in src/agents/model-compat.test.ts fail deterministically in any source checkout where pnpm build had run (bundled discovery prefers dist/extensions once it exists, and the built tree does not contain externalized plugins). This silently wedged local scripts/pr landing lanes, which run build → check → test in one worktree; two lanes looped on it for hours on 2026-07-04.

Why This Change Was Made

Endpoint classification is endpoint-keyed request policy — the code contract in resolveProviderRequestCapabilities explicitly says users can point a generic provider key at Moonshot or DashScope and still need native request policy. That contract broke when these plugins were externalized, because classification metadata only lived in plugin manifests. The official external provider catalog (scripts/lib/official-external-provider-catalog.json) is the core-shipped registry for exactly these plugins, so it now mirrors each plugin's manifest providerEndpoints, and provider-attribution appends catalog metadata after installed/bundled manifests (first match wins, so installed manifests stay authoritative).

Boundaries: classification reads the repo-bundled catalog JSON only — hosted marketplace feeds can never influence endpoint classification (it is SSRF/attribution policy surface). Endpoint classes core does not recognize (deepinfra-native, gmi-native, qwen-portal-native) are mirrored faithfully but stay inert via the existing allowlist filter, identical to installed-manifest behavior; widening the core class union is a separate product decision. providerRequest (provider-id-keyed metadata) is intentionally not mirrored: running a canonical provider id without its plugin is not a supported configuration.

Alternatives rejected: preferring the source extensions/ tree in built checkouts would fight deliberate, test-pinned bundled-dir behavior and leave shipped dist gateways broken; mocking the failing tests would hide a real shipped regression.

User Impact

Installed (dist) gateways classify DashScope, Moonshot, Z.AI, DeepSeek, Groq, Cerebras, and Chutes endpoints natively again without requiring the provider plugin: DashScope image description places prompts in user content, and streaming-usage / developer-role compat defaults apply by URL as documented. Local pnpm build && pnpm test is deterministic again in source checkouts, unwedging scripts/pr landing lanes. Installing a provider plugin still overrides catalog metadata.

Evidence

  • Repro fixed: pnpm build && pnpm test src/media-understanding/image.test.ts src/agents/model-compat.test.ts — previously 1 deterministic failure in image.test.ts plus DashScope/Qwen model-compat failures with a dist tree present; now green (29/29 image incl. the DashScope case, 104/104 agents shard, 54/54 plugins shard), and the same set is green pre-build.
  • Negative control: reverting only the provider-attribution catalog merge (dist present) reproduces exactly the reported failure (1 failed / 28 passed in image.test.ts); restoring it returns 29/29.
  • Verified dist/extensions in a built checkout contains no qwen/moonshot, confirming the failing state under test.
  • New regression tests: src/agents/provider-attribution.catalog-endpoints.test.ts simulates a dist tree (no ambient manifests) and pins classification, manifest-over-catalog precedence, and unknown-class inertness; src/plugins/official-external-provider-endpoints.test.ts enforces the catalog↔manifest mirror for every dist-excluded plugin that declares providerEndpoints (parses the package.json dist excludes), which would have caught the original externalization regression.
  • tsgo core + core-test lanes green; oxlint clean; Codex structured review (gpt-5.5) clean after addressing one finding about the intentionally-inert mirrored classes (now documented in code and pinned by tests).

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts agents Agent runtime and tooling size: M maintainer Maintainer-authored PR labels Jul 5, 2026
@clawsweeper

clawsweeper Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed July 5, 2026, 5:09 AM ET / 09:09 UTC.

Summary
Adds providerEndpoint metadata to the official external provider catalog, appends that catalog to provider endpoint attribution, and adds docs/tests for externalized provider endpoint classification.

PR surface: Source +55, Tests +217, Docs +6, Other +82. Total +360 across 7 files.

Reproducibility: yes. from source: current main resolves endpoint classes only from discovered plugin manifests, while built source/dist excludes the affected external provider plugins, so generic DashScope/Moonshot-style URLs fall back to custom when the plugin is absent. The PR body also reports a focused build-plus-test reproduction and negative-control revert.

Review metrics: 1 noteworthy metric.

  • Endpoint policy metadata: 10 endpoint records added across 9 official provider catalog entries. These records change request and payload compatibility decisions for existing official provider base URLs, so they are the key compatibility surface before merge.

Stored data model
Persistent data-model change detected: vector/embedding metadata: src/agents/provider-attribution.catalog-endpoints.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🦞 diamond lobster
Patch quality: 🦐 gold shrimp
Result: needs maintainer review before merge.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P2] Fix the catalog fallback so installed official provider plugin manifests can fully override catalog endpoint metadata.
  • Rerun or triage the failing QA Smoke CI job on the repaired head.

Risk before merge

  • [P2] Provider endpoint classification drives request, payload compatibility, and SSRF-adjacent routing policy, so the catalog-backed fallback needs explicit maintainer acceptance after the installed-plugin override gap is fixed.
  • [P1] The latest head still has QA Smoke CI failing; source inspection did not tie that failure to this diff, but it needs rerun or triage before merge.

Maintainer options:

  1. Fix installed-provider override first (recommended)
    Skip catalog endpoint metadata for official provider plugin ids already present in discovered manifests, and add regression coverage for an installed plugin that intentionally omits a catalog URL.
  2. Accept stale catalog fallback risk
    Maintainers may intentionally accept that core-bundled metadata remains additive even when an installed plugin narrows endpoint policy, but that weakens plugin override semantics.
  3. Pause until policy is decided
    Keep the PR open while provider owners decide whether endpoint classification should be plugin-owned, core-owned, or a documented fallback hybrid.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Update the catalog endpoint fallback so catalog entries are ignored when the matching official provider plugin id is already present in installed/bundled/global manifest metadata; add a regression where an installed qwen or moonshot manifest intentionally omits one catalog URL and that URL no longer falls through to stale catalog classification.

Next step before merge

  • [P2] A narrow repair can fix the installed-plugin override defect on the PR branch, after which maintainers still need to accept the compatibility-sensitive endpoint fallback policy.

Maintainer decision needed

  • Question: After the installed-plugin override gap is fixed, should core ship repo-bundled endpoint fallback metadata for externalized official providers?
  • Rationale: This changes compatibility-sensitive provider request policy for existing base URLs, and automation cannot own the final product decision to make core catalog metadata a fallback policy source.
  • Likely owner: steipete — They authored the PR and recently carried the related provider/runtime extraction that made this boundary visible.
  • Options:
    • Accept fallback after override fix (recommended): Require the installed-plugin skip repair first, then allow core to classify official provider endpoints when the plugin is absent.
    • Keep endpoint policy plugin-only: Reject the catalog fallback and instead require users to install the provider plugin for native endpoint policy.
    • Pause for provider-owner design: Hold the PR until maintainers define a more explicit core/plugin contract for externalized provider endpoint policy.

Security
Cleared: No concrete supply-chain regression was found; the remaining endpoint-policy concern is tracked as a compatibility finding rather than a direct security bypass.

Review findings

  • [P2] Skip catalog fallbacks for installed providers — src/agents/provider-attribution.ts:340-341
Review details

Best possible solution:

Land a version that uses catalog endpoint metadata only when the corresponding official provider plugin is absent from discovered manifest metadata, with tests for absent-plugin fallback, installed-manifest precedence, and installed-plugin removal/narrowing, then rerun focused provider/media tests and the failing CI lane.

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

Yes from source: current main resolves endpoint classes only from discovered plugin manifests, while built source/dist excludes the affected external provider plugins, so generic DashScope/Moonshot-style URLs fall back to custom when the plugin is absent. The PR body also reports a focused build-plus-test reproduction and negative-control revert.

Is this the best way to solve the issue?

No as submitted. The central provider-attribution boundary is the right place, but the catalog fallback must be suppressed for installed provider plugin ids so upgraded plugins remain authoritative for endpoint policy.

Full review comments:

  • [P2] Skip catalog fallbacks for installed providers — src/agents/provider-attribution.ts:340-341
    Late catch: this same loop was present in the previously reviewed head. When an external provider plugin is installed but has newer or narrower providerEndpoints, appending the bundled catalog afterward means any URL the installed manifest intentionally removed can still be classified by stale core metadata. First-match only protects URLs the installed manifest still matches, so an upgraded qwen/moonshot/etc. plugin cannot fully override endpoint policy until core updates too.
    Confidence: 0.87
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.87

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against b6f4cf5ac432.

Label changes

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (terminal): The PR body includes after-fix terminal validation, focused green counts, and a negative-control reproduction for the changed provider classification behavior.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P1: The PR targets a provider endpoint classification regression that can break installed-gateway vision requests and OpenAI-compatible streaming/developer-role defaults for real provider workflows.
  • merge-risk: 🚨 compatibility: The diff changes core provider endpoint metadata and currently prevents installed external provider plugins from fully withdrawing stale catalog endpoint policy.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (terminal): The PR body includes after-fix terminal validation, focused green counts, and a negative-control reproduction for the changed provider classification behavior.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes after-fix terminal validation, focused green counts, and a negative-control reproduction for the changed provider classification behavior.
Evidence reviewed

PR surface:

Source +55, Tests +217, Docs +6, Other +82. Total +360 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 3 55 0 +55
Tests 2 217 0 +217
Docs 1 6 0 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 1 82 0 +82
Total 7 360 0 +360

Acceptance criteria:

  • [P1] pnpm test src/agents/provider-attribution.catalog-endpoints.test.ts src/plugins/official-external-provider-endpoints.test.ts src/agents/provider-attribution.test.ts.
  • [P1] pnpm test src/media-understanding/image.test.ts src/agents/model-compat.test.ts.
  • [P1] pnpm check:changed -- src/agents/provider-attribution.ts src/plugins/official-external-provider-endpoints.ts src/agents/provider-attribution.catalog-endpoints.test.ts src/plugins/official-external-provider-endpoints.test.ts scripts/lib/official-external-provider-catalog.json docs/plugins/manifest.md.

What I checked:

  • Repository policy applied: Root and scoped docs/scripts/src/agents/src/plugins AGENTS.md files were read; provider routing and plugin metadata compatibility guidance affected the review. (AGENTS.md:17, b6f4cf5ac432)
  • Current-main behavior: Current main collects provider endpoint classes only from discovered plugin manifests, with no external provider catalog fallback. (src/agents/provider-attribution.ts:329, b6f4cf5ac432)
  • Externalized provider manifests are missed in built dist: Built source checkouts prefer dist/extensions, while package files exclude qwen, moonshot, deepseek, groq, cerebras, chutes, gmi, and zai provider plugin trees from dist. (src/plugins/bundled-dir.ts:171, b6f4cf5ac432)
  • PR implementation: The PR appends manifest-shaped official external provider catalog entries after installed/bundled/global manifest metadata. (src/agents/provider-attribution.ts:340, 0c18009489b0)
  • Installed-plugin override gap: The new precedence test covers a URL the installed manifest still matches, but not the case where an installed provider plugin intentionally removes or narrows a catalog URL. (src/agents/provider-attribution.catalog-endpoints.test.ts:60, 0c18009489b0)
  • Contributor proof: The PR body reports a focused build-plus-test run, focused green counts, and a negative-control revert that reintroduced the image test failure with dist present. (0c18009489b0)

Likely related people:

  • steipete: Authored this repair and authored/landed the recent reusable AI runtime extraction that introduced or made visible the current provider attribution and externalized provider packaging surface. (role: recent area contributor and likely follow-up owner; confidence: high; commits: 062f88e3e3af, 0c18009489b0; files: src/agents/provider-attribution.ts, src/plugins/bundled-dir.ts, package.json)
  • WhatsSkiLL: The shallow/grafted checkout blame points current provider attribution and package dist-exclusion lines at commit 1c83c2d, but PR-history evidence is stronger for routing this follow-up to steipete. (role: line-history author signal; confidence: low; commits: 1c83c2d4a626; files: src/agents/provider-attribution.ts, src/plugins/bundled-dir.ts, package.json)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.
Review history (5 earlier review cycles)
  • reviewed 2026-07-05T00:51:34.940Z sha b43271d :: needs maintainer review before merge. :: none
  • reviewed 2026-07-05T01:04:11.351Z sha b43271d :: needs maintainer review before merge. :: none
  • reviewed 2026-07-05T01:54:12.153Z sha d02c593 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-05T02:07:07.305Z sha d02c593 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-05T07:04:34.707Z sha 0d1a6fd :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 5, 2026
@steipete
steipete requested a review from a team as a code owner July 5, 2026 01:49
@openclaw-barnacle openclaw-barnacle Bot added channel: slack Channel integration: slack app: android App: android app: web-ui App: web-ui gateway Gateway runtime size: XL and removed size: M labels Jul 5, 2026
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Jul 5, 2026
@github-actions

github-actions Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph guard cleared

This PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh /allow-dependencies-change comment after the guard blocks that new head SHA.

  • Current SHA: 0c18009489b01ec5bacd6441c651cff72f06d37d

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d02c5936ea

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +2560 to +2564
const queuedAbort = abortAuthorizedQueuedTurnsForSession({
context: params.context,
sessionKeys,
sessionId: params.sessionId,
agentId: params.agentId,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve queued BTW turns during session abort

When TUI sends a session-scoped stop it passes preserveSideRuns, and the active/pending run paths below honor that by skipping turnKind: "btw"; queued chat turns are aborted here before those filters run, and the queued-turn entry never stores turnKind. If a user sends /btw while the main turn is busy and the prompt is waiting in followup/collect, pressing Esc for the main turn will cancel that side question too, contradicting the new preserve-side-runs behavior.

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Jul 5, 2026
@steipete
steipete force-pushed the claude/nervous-moser-b63c4b branch from d02c593 to 74385bc Compare July 5, 2026 04:49
@openclaw-barnacle openclaw-barnacle Bot removed channel: slack Channel integration: slack app: android App: android app: web-ui App: web-ui gateway Gateway runtime labels Jul 5, 2026
@github-actions github-actions Bot removed the dependencies-changed PR changes dependency-related files label Jul 5, 2026
@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 5, 2026
@steipete
steipete force-pushed the claude/nervous-moser-b63c4b branch 2 times, most recently from cfedbf9 to 0d1a6fd Compare July 5, 2026 06:47
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 5, 2026
…t installed plugins

DashScope/Moonshot/Z.AI/DeepSeek/Groq/Cerebras/Chutes endpoint classes lived
only in their provider plugin manifests. Those plugins are excluded from dist
packaging, so dist gateways (and built source checkouts, where bundled
discovery prefers dist/extensions) classified their base URLs as custom unless
the plugin was installed: DashScope image describe prompts left user content,
streaming-usage and developer-role compat defaults regressed, and
src/media-understanding/image.test.ts plus the model-compat DashScope/Qwen
cases failed deterministically after pnpm build, wedging local scripts/pr
landing lanes.

The official external provider catalog now mirrors each externalized plugin's
manifest providerEndpoints, and provider attribution appends catalog metadata
after installed/bundled manifests (first match wins, installed manifests stay
authoritative). Classification reads the repo-bundled catalog only; hosted
feeds never influence it. Endpoint classes core does not recognize
(deepinfra-native, gmi-native, qwen-portal-native) stay inert via the existing
allowlist filter, matching installed-manifest behavior. A contract test
enforces the catalog-manifest mirror; a dist-simulation test covers
classification without any plugin manifests.

Repro fixed: pnpm build && pnpm test src/media-understanding/image.test.ts src/agents/model-compat.test.ts
@steipete
steipete force-pushed the claude/nervous-moser-b63c4b branch from fe69ca6 to 0c18009 Compare July 5, 2026 08:57

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0c18009489

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +340 to +341
for (const manifest of listOfficialExternalProviderEndpointManifests()) {
entries.push(...readManifestProviderEndpoints(manifest));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Skip catalog endpoints for installed providers

When an external provider plugin is installed but has newer or narrower providerEndpoints, this loop still appends the bundled catalog entries for the same provider afterward. First-match precedence only helps for URLs the installed manifest also matches; any URL the installed plugin intentionally removed or changed can still be classified by stale core-bundled catalog metadata, so an upgraded qwen/moonshot/etc. plugin cannot fully override its endpoint policy until the core catalog is updated too.

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added 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. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 5, 2026
@steipete

steipete commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready verification for head 0c18009489b01ec5bacd6441c651cff72f06d37d (7 files, +360):

Exact-head CI: workflow run 28735487409 — CI concluded success on attempt 2 (attempt 1 failed only on the QA smoke scenario native-command-session-target, a mock-openai timing e2e with prior flake history per #99743/#99656; it passed unchanged on rerun and on an earlier identical-diff head). CodeQL success; remaining non-success runs are concurrency-cancelled noise (Auto response, Real behavior proof).

scripts/pr flow: review-init → review artifacts completed and validated (review artifacts validated) → prepare-run completed for this exact head (OPENCLAW_TESTBOX=1, hosted exact-head gates passed at 09:48 UTC). merge-run repeatedly failed only on its mainline-drift freshness check: main landed merge-critical infra files (pnpm-lock, build scripts, package.json) during every throttle window between prepare and merge — none of them files this PR touches. Merging directly with --match-head-commit after proving a clean merge against current origin/main tip (git merge-tree --write-tree exit 0 vs 0720b322fed), following the #99893 precedent for gate wedges with green exact-head CI.

Local proof (from the PR work):

  • pnpm build && node scripts/run-vitest.mjs src/media-understanding/image.test.ts src/agents/model-compat.test.ts — previously deterministic failures with a dist tree present, now green (29/29 + 104/104 + 54/54 across the affected shards); same set green pre-build.
  • Negative control: reverting only the provider-attribution catalog merge reproduces exactly the reported failure (1 failed / 28 passed in image.test.ts).
  • tsgo core + core-test lanes green; oxlint clean; Codex structured review clean.

Known proof gaps: none for the changed surface; the QA smoke flake is unrelated (channel-native /stop targeting, mock-openai profile).

@steipete
steipete merged commit 49302fc into main Jul 5, 2026
170 of 177 checks passed
@steipete
steipete deleted the claude/nervous-moser-b63c4b branch July 5, 2026 09:53
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 6, 2026
…e provider plugin is not installed (openclaw#100125)

Externalized provider plugins (qwen, moonshot, zai, deepseek, groq, cerebras, chutes) are excluded from dist packaging, so their manifest-declared endpoint classes were invisible to installed gateways and built source checkouts: DashScope/Moonshot-class base URLs classified as custom, breaking image prompt placement, streaming-usage and developer-role compat defaults, and deterministically failing image.test.ts / model-compat DashScope cases after pnpm build. The official external provider catalog now mirrors each plugin's providerEndpoints and provider attribution appends catalog metadata after installed/bundled manifests (first match wins; repo-bundled catalog only, hosted feeds never influence classification). Includes a catalog-manifest mirror contract test and a dist-simulation regression test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant