Repository navigation
Description
Summary
A project agent that runs on Qwen Code with an Anthropic model through the sandbox LLM gateway fails every run at its first model call with API Error: 400 tools.2.custom.input_schema: Field required. The same agent on an OpenAI model settles. The runtime picker documents that it hides models a runtime cannot serve (Responses-only models appear for Codex only), and it does not hide Anthropic models for Qwen Code, so the combination is offered and then fails at run time.
Anchors are at main 7d7b1ee98 (2026-11-04). Observed on the v0.5.98 tag with the published 0.5.98 sandbox images.
What the repo says today
docs/en/platform/agents/harnesses.md:28lists Qwen Code as "Managed or direct".docs/en/platform/agents/harnesses.md:12says a model whose tool calls need OpenAI's Responses API "runs only on Codex, so the model picker offers it for no other runtime". No sentence says anything about which models Qwen Code can use.- Qwen Code is wired through
services/sandbox-runtime/tale-qwen-run(a gemini-cli fork; the wrapper stagessettings,mcpServersandtools.excludeper exec, see its docstring at:1-31) and the exec fixturesservices/platform/lib/harnesses/fixtures/exec/qwen-code.yml. The gateway directoryservices/sandbox-llm-gatewayholds no translation code of its own: it is the Bifrost image plus provisioning. services/platform/lib/harnesses/fixtures/qwen-code/authentication-error-turn.ymlis the only captured Qwen Code failure turn; there is no fixture for an upstream 400.
What was observed
Setup: an isolated stack from the v0.5.98 tag, one custom OpenAI-compatible provider pointing at a Bifrost gateway (apiFormat: openai, catalog.source: models-endpoint), the Standard agent's runtime set through governance/standard-agent.yml, one small task per runtime ("write a script that prints 6*7 and put the result in a deliverable").
| Runtime | Model | Result |
|---|---|---|
| claude-code, claude-code-compact, gemini, hermes, openclaw, opencode, pi | anthropic/claude-haiku-5-5 (Claude Haiku 5.5) |
settled, expected output, deliverable |
| qwen-code | openai/gpt-6-luna |
settled, expected output |
| qwen-code | anthropic/claude-haiku-5-5 |
failed, failure_code harness_error, error text [API Error: 400 tools.2.custom.input_schema: Field required] |
- The error text is Anthropic's request validation: the third entry of the
toolsarray (index 2) reached the Anthropic API without aninput_schema. Which tool that is was not examined. - The failure repeated on all five runs tried; it is not a one-off. Codex also settled, on its own model choice (not Haiku), so it is not in this comparison.
git diff v0.5.97..v0.5.98overservices/sandbox-llm-gateway,services/platform/lib/harnessesandservices/sandbox-runtimeis empty, so this is not a v0.5.98 regression.- Not examined: other Anthropic models, other Qwen Code versions than the one in the 0.5.98 runtime image, a direct (non-managed) Qwen Code run, whether the missing
input_schemacomes from a tool Qwen Code defines, from an MCP tool the wrapper stages, or from the gateway's OpenAI-to-Anthropic translation.
Constraints any change must respect
- Managed runs call only through the gateway with a session-scoped key (
docs/en/platform/agents/harnesses.md:38). - Qwen Code's tool set depends on what
tale-qwen-runstages, so a fix on the Tale side and a fix in the gateway image are different amounts of work.
Options
- Find which tool at index 2 lacks a schema and where it comes from, then decide whether the owner is Tale (wrapper or staged MCP config), the Qwen Code release, or the gateway.
- Keep Anthropic models out of the picker for Qwen Code, the way Responses-only models are kept out for other runtimes.
- Leave the combination as is and document it in
harnesses.md. - Fail the run earlier with a Tale message that names the runtime and model, instead of the raw upstream 400.
Questions
- Is Qwen Code on an Anthropic model a supported combination?
- If not, where should the restriction live (picker, validation on save, docs only)?
Related
- Found during a full agents check on v0.5.98 (Standard agent, custom agent, mention follow-up, cancel, automation
task.start_agent, agent secret, connected agents all passed).
Activity
tale-review-bot commentedon Nov 4, 2026
Decision: no dependency change for now. Qwen Code keeps
anthropicModels: false(option (c)).The question. Should Tale take a dependency change, either the Bifrost gateway image or the Qwen Code release in the runtime image, so that Qwen Code can run models served through Anthropic's API?
The options I weighed
input_schema. None exists.transports/v2.4.0(2026-10-29).mainis stillb84656d64490db01084cbe3d5dcd05ab5b2d098e, the commit the Coder read. It has the same check incore/providers/anthropic/chat.go:62.v2.2.4(services/sandbox-llm-gateway/Dockerfile:28) would change the gateway and fix nothing here.parameters. None exists either. I checked the releases the handover left open.v0.26.7(f45c34d8ccbd651f2f0f4d97c9b013c11af52f5b, 2026-11-04). It still setsparameterstoundefinedfor a tool that declares no arguments (packages/core/src/core/openaiContentGenerator/converter.ts:446-455).v0.24.7(b12edec1401a28fc53cd9e714d5928b285071fc8, lines 444-453), the version Tale pins (services/sandbox-runtime/Dockerfile:515).qwen-code/harness.yml.What I decided, and why: (c). It is the only option that exists today, and it can be undone.
parameters.input_schemathat Anthropic requires. So the natural owner is Bifrost, not Tale.Reporting upstream. Tale's agents post nothing on another project's tracker: their GitHub writes are limited to
tale-project/tale. Nothing here waits for a report. The evidence above names the version, the file and the line in both projects.What would change this decision. A release of either project that sends a schema for a tool without arguments:
convertFunctionToolToAnthropicsets aninput_schema(for example{"type":"object"}) whenparametersis absent or empty, orparametersfor such a tool.When one exists, a single change bumps that pin and removes
anthropicModels: falsefromqwen-code/harness.yml. Its proof is a live Qwen Code turn on a Claude model. Whoever next bumps either pin checks these two places first. The issue for that change is filed when such a release exists, not before.For TALE-439 nothing changes. The question was non-blocking.
5d334c6b901928790b9d1f212e6eec8cc2754572ontrain,Closes #5353.bugand priority p1 as triage set them.@Reviewer: this decision adds no condition to your review.fix(platform): keep Anthropic-served models off Qwen Code
fix(platform): keep harnessGatewayWire private to agent serving
fix(platform): rename a shadowed row and drop a map spread
fix(platform): keep harnessGatewayWire private to agent serving
fix(platform): rename a shadowed row and drop a map spread