Skip to content

chore: merge train 20261104-2339 - #5370

Merged
tale-code-bot merged 3 commits into
mainfrom
train-20261104-2339
Nov 5, 2026
Merged

tale-code-bot merged 3 commits into
mainfrom
train-20261104-2339

Conversation

@tale-code-bot

@tale-code-bot tale-code-bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Cut: 4f30243

The stable line's merge train: the one commit between c2107b925 (the merge of #5369) and the cut.

  • 4f30243c7 fix(platform): keep Anthropic-served models off Qwen Code (TALE-439, closes bug(platform): Qwen Code on an Anthropic model fails every run with a 400 on tools.2.custom.input_schema #5353)
    • The Reviewer landed it on train at 21:58 UTC.
    • The cause. Qwen Code 0.24.7 sends a tool that takes no arguments (get_goal, list_agents) without parameters, as OpenAI's chat wire allows.
      • Such a call can be translated onto Anthropic's Messages API, either by the gateway for an Anthropic-format connector or by an OpenAI-compatible upstream that serves a Claude model. The tool then arrives without input_schema.
      • So every turn failed with 400 tools.2.custom.input_schema: Field required.
      • Bifrost sets input_schema only when the parameters carry a type or properties, so neither Tale's wrapper nor a gateway bump can fix it.
    • The fix. The harness yml gains anthropicModels. Absent means true, and Qwen Code declares false.
      • servedByAnthropicApi flags such a model in the composer listing: one on an Anthropic-format connector, or with a Claude model id.
      • harnessRunsModel holds it off Qwen Code, beside the Responses-only rule, in these places:
        • the agent pickers and the MCP model listing;
        • the standard agent's chooser and the project-agent check on save;
        • the Agent runtimes status.
      • Pinned, workflow, task and legacy agent serving now refuse such a model with a reason that names the model and the harness, instead of the upstream 400.
      • The docs (en, de, fr) and the status note say which models Qwen Code can use.

The commit is stable-line: it is a fix of what main ships, and 40 of its 42 files exist on main, configs/platform/system/harnesses/qwen-code/harness.yml among them. So nothing moved to feature-train before this departure.

main has not moved since c2107b925, so the rebase merge replays the commit as it is. git merge-tree --write-tree origin/main <cut> gives the cut's own tree, 3aeb37099. The train changes 42 files: 906 lines added and 170 removed.

This pull request runs CI once for the whole train, in the scope its changed files select. A local reading of .github/ci-scope.yml places them in these scopes:

  • all, integration, cli;
  • build, build_image_inputs, build_platform, build_docs, build_storybook, build_sandbox-runtime, build_ci_tests;
  • e2e, e2e_platform, e2e_web, e2e_docs, e2e_session-manager.

That is not the full scope, and this pull request's scope job decides.

It rebase-merges when green (auto-merge). The Coder's merge-train role (TALE-234) works it until it is green, and while it is open no other stable-line train departs.

main's push CI on c2107b925:

Not checked before departure: no checking worker ran the fast gate or the platform's tests on the cut. Commitlint on the commit passed. This pull request runs the full CI.

git merge-tree --write-tree --name-only origin/feature-train <cut> conflicts in one file, with feature-train at caaad1972, which is release/0.6 and holds main.

  • The file is services/platform/app/features/settings/governance/components/standard-agent-editor.tsx.
  • Both lines change 20 files, and the other 19 merge cleanly.
  • Two feature-line commits change that file:
    • 9b75e284b feat(platform): offer only EU/EEA-processing models in the pickers;
    • 5530ca72f feat(platform): name a model by its provider wherever it stands alone.
  • So the feature-train role (TALE-239) should expect a conflict in that file when it rebases release/0.6 onto main after this lands.

Commits (1):

  • fix(platform): keep Anthropic-served models off Qwen Code

Task keys: TALE-439.

Fixed on this branch after departure, by the merge-train role (step 1):

Checks run 41935501926 on the cut failed in Knip (job 126942822844) and Lint (job 126942822918), in code TALE-439 changed. Two commits fix them:

  • a3c1f5da7 fix(platform): keep harnessGatewayWire private to agent serving. Knip found the export unused, because task serving now asks harnessModelFitFor.
  • 3d4aed0be fix(platform): rename a shadowed row and drop a map spread. oxlint found a shadowed row in agent-equipment.ts and an oxc/no-map-spread in the harness-status route.

Neither commit changes behaviour. On 3d4aed0be, Knip (job 126948330214) and Lint (job 126948330400) passed in Checks run 41937015050.

train holds neither commit: it still ends at the cut, and the rebase merge carries all three to main.

Qwen Code 0.24.7 sends a tool that takes no arguments (get_goal,
list_agents) without `parameters`, as OpenAI's chat wire allows. Once a
call is translated onto Anthropic's Messages API (by the gateway for an
Anthropic-format connector, or by an OpenAI-compatible upstream serving a
Claude model), such a tool arrives without `input_schema`, and every turn
failed with "400 tools.2.custom.input_schema: Field required" (index 2 is
get_goal in the CLI's name-sorted headless tool list). Bifrost sets
input_schema only when the parameters carry a type or properties, through
v2.2.4 and on its main branch as of 2026-11-02, so neither Tale's wrapper
nor a gateway bump can fix it.

The harness yml gains `anthropicModels` (absent means true; Qwen Code
declares false). `servedByAnthropicApi` (an Anthropic-format connector, or
a Claude model id) flags such a model in the composer listing, and
`harnessRunsModel` holds it off Qwen Code beside the Responses-only rule
in the agent pickers, the MCP model listing, the standard agent's chooser,
the project-agent check on save, the Agent runtimes status, and pinned,
workflow, task and legacy agent serving, which now refuse with a reason
naming the model and the harness instead of the upstream 400. The docs
(en, de, fr) and the status note say which models Qwen Code can use.

Closes #5353

Task: TALE-439
@tale-code-bot tale-code-bot added the merge-train A merge train's pull request into main label Nov 4, 2026
@tale-code-bot
tale-code-bot enabled auto-merge (rebase) November 4, 2026 23:39
Since keeping Anthropic-served models off Qwen Code (TALE-439), task
serving asks harnessModelFitFor, so no module outside agent_serving.ts
imports harnessGatewayWire any more, and Knip failed merge train #5370's
Checks (run 41935501926) on the unused export. The function stays,
unexported, for its three callers in agent_serving.ts.

Refs #5353
oxlint failed merge train #5370's Checks (run 41935501926, job Lint) in
two files that keeping Anthropic-served models off Qwen Code (TALE-439)
changed:

- agent-equipment.ts named the harness row it looks up `row`, which the
  `row` parameters of the Responses-capable listing below shadowed. It
  is now `harnessRow`.
- the harness-status route built each direct model by spreading
  conditional objects inside `map` (oxc/no-map-spread). It now sets the
  two optional fields on the object it returns.

Refs #5353
@tale-code-bot
tale-code-bot merged commit c3e38dc into main Nov 5, 2026
94 checks passed
@tale-code-bot
tale-code-bot deleted the train-20261104-2339 branch November 5, 2026 00:11
tale-code-bot added a commit that referenced this pull request Nov 5, 2026
Since keeping Anthropic-served models off Qwen Code (TALE-439), task
serving asks harnessModelFitFor, so no module outside agent_serving.ts
imports harnessGatewayWire any more, and Knip failed merge train #5370's
Checks (run 41935501926) on the unused export. The function stays,
unexported, for its three callers in agent_serving.ts.

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

Labels

merge-train A merge train's pull request into main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(platform): Qwen Code on an Anthropic model fails every run with a 400 on tools.2.custom.input_schema

1 participant