Skip to content

Microsoft Foundry DeepSeek V4 alias providers still inject thinking after #87737 fix #90520

Closed

Description

@wlassalle724

Summary

#87737 appears fixed for the literal provider id microsoft-foundry, but the same DeepSeek V4 suppression does not appear to apply to Microsoft Foundry alias providers such as microsoft-foundry-9433.

On current stable, the alias-backed model still fails with:

  • 400 Unrecognized request argument supplied: thinking

This looks like an OpenClaw provider-id gap rather than a deployment/auth/config problem.

Version

  • OpenClaw 2026.6.1

Repro

Configured model:

  • microsoft-foundry-9433/DeepSeek-V4-Pro

One-shot probe:

openclaw infer model run --gateway \
  --model microsoft-foundry-9433/DeepSeek-V4-Pro \
  --prompt 'Reply with exactly FOUNDRY_V4_PRO_OK and nothing else.' \
  --json

Observed result:

  • FailoverError: LLM request failed: provider rejected the request schema or tool payload.
  • raw provider error: 400 Unrecognized request argument supplied: thinking

Relevant gateway details from the failing run:

  • provider: microsoft-foundry-9433
  • model: DeepSeek-V4-Pro
  • failure kind: schema / format

A/B proof that this is provider-id specific

I performed a temporary config inversion to isolate whether this was our deployment setup or OpenClaw handling:

  1. Moved the working base Foundry resource behind a temporary alias.
  2. Promoted the exact same 9433 DeepSeek V4 Pro resource to plain microsoft-foundry.
  3. Re-ran the same explicit probe, now against microsoft-foundry/DeepSeek-V4-Pro.
  4. Restored the config immediately after the test.

Result under inverted config:

  • success
  • provider: microsoft-foundry
  • model: DeepSeek-V4-Pro
  • output: INVERT_TEST_OK

So the same Foundry deployment:

  • fails as microsoft-foundry-9433/DeepSeek-V4-Pro
  • succeeds as microsoft-foundry/DeepSeek-V4-Pro

Expected

Microsoft Foundry DeepSeek V4 protection should apply to Foundry aliases / equivalent provider profiles, not only the literal provider id microsoft-foundry.

Actual

Alias-backed Foundry DeepSeek V4 providers still appear to receive a top-level thinking field and fail with:

  • 400 Unrecognized request argument supplied: thinking

Likely fix shape

The suppression logic added for #87737 likely keys off provider === "microsoft-foundry" and should instead recognize alias-backed Foundry provider configs as equivalent for this compatibility rule.

Related

  • Fixed base issue: #87737

Activity

  1. clawsweeper commented on Jun 5, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 4, 2026, 10:45 PM ET / 02:45 UTC.

    Summary
    Keep open: current main still has a literal-provider-only Foundry exclusion, so microsoft-foundry-9433/DeepSeek-V4-Pro remains eligible for the fallback wrapper that injects top-level thinking.

    Reproducibility: yes. from source inspection: a provider id like microsoft-foundry-9433 is not equal to microsoft-foundry, so the DeepSeek V4 fallback wrapper can still patch the payload with thinking. I did not run the live Foundry probe because credentials and an external deployment are required.

    Next step
    A focused fix can update the Foundry-equivalence gate and add alias-provider regression coverage without adding config or changing unrelated provider behavior.

    Review details

    Best possible solution:

    Ship a narrow provider-equivalence fix so Foundry alias/configured provider ids skip top-level thinking like canonical microsoft-foundry, while unrelated OpenAI-compatible DeepSeek V4 proxies keep the wrapper.

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

    Yes from source inspection: a provider id like microsoft-foundry-9433 is not equal to microsoft-foundry, so the DeepSeek V4 fallback wrapper can still patch the payload with thinking. I did not run the live Foundry probe because credentials and an external deployment are required.

    Is this the best way to solve the issue?

    No current fix is present. The maintainable fix is to recognize Foundry-equivalent configured provider ids or honor the resolved compat contract before applying the generic DeepSeek V4 fallback.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • I did not run the live Microsoft Foundry alias probe because this read-only review has no deployment credentials; the verdict relies on the reporter's A/B proof plus current source behavior.
    • An older open PR, fix(agents): suppress DeepSeek thinking for Foundry aliases #87933, overlaps by honoring compat.thinkingFormat; maintainers should decide whether to refresh that PR or land a narrower alias-equivalence fix.

    Codex review notes: model gpt-5.5, reasoning high; reviewed against 2f00fbf28ed9.

    Label changes

    Label changes:

    • add P1: A released gateway model path is reported to fail at provider schema validation for a real Microsoft Foundry DeepSeek V4 configuration.
    • add impact:auth-provider: The affected behavior is model-provider routing and request-shape compatibility for a configured provider profile.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • add clawsweeper:queueable-fix: Current issue advisory state selects this label.
    • add clawsweeper:fix-shape-clear: Current issue advisory state selects this label.

    Label justifications:

    • P1: A released gateway model path is reported to fail at provider schema validation for a real Microsoft Foundry DeepSeek V4 configuration.
    • impact:auth-provider: The affected behavior is model-provider routing and request-shape compatibility for a configured provider profile.
    Evidence reviewed

    Acceptance criteria:

    • node scripts/run-vitest.mjs src/agents/embedded-agent-runner-extraparams.test.ts
    • node scripts/run-vitest.mjs src/agents/openai-transport-stream.test.ts

    What I checked:

    Likely related people:

    • silvesterxm: Authored the merged Foundry fallback fix that added the current literal microsoft-foundry exclusion and its regression test. (role: prior fix author; confidence: high; commits: 0c74f18a1c09; files: src/agents/embedded-agent-runner/extra-params.ts, src/agents/embedded-agent-runner-extraparams.test.ts)
    • steipete: Recently changed the embedded runner extra-params/provider edge-case area and carried the broader OpenAI provider identity/runtime refactors around this path. (role: recent area contributor; confidence: high; commits: 732d6972d74c, 4c33aaa86c16, bb46b79d3c14; files: src/agents/embedded-agent-runner/extra-params.ts, src/agents/embedded-agent-runner-extraparams.test.ts, src/agents/openai-transport-stream.ts)
    • lsdsjy: Introduced DeepSeek V4 provider support in the bundled DeepSeek plugin history, which is adjacent to the shared V4 thinking wrapper behavior. (role: DeepSeek V4 feature contributor; confidence: medium; commits: 7d1891e6e63d; files: extensions/deepseek/stream.ts)
    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.
  2. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    on Jun 5, 2026
  3. locked as resolved and limited conversation to collaborators on Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions