published fresh until

llama.cpp: router cancels requests when switching models

Summary As of November 2026, the router scheduler queues model loads when capacity is full, preventing immediate eviction of a model handling a request. Upgrade to b10313.

Not for llama.cpp hybrid/recurrent-model prompt reuse after slot save/restore (see llama-cpp-slots-save-restore-loses-prompt-reuse).

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Upgrade to b10313 for this correction.

Symptom

In router mode, a request for a second model interrupts an active generation when the model limit is reached. The report includes Failed to read connection; tha80 describes the active request being cancelled before the next model starts. Reported by jmig1109. Other users commented on the issue, including tha80; Haervwe.

Cause

The router evicted the least recently used model without waiting for its active requests. The merged change queues eviction requests and waits for capacity, coalescing requests for the same model.

Fix

1. Upgrade the router server to build b10313 or a later build containing the scheduler. 2. Keep model switching under the router scheduler: pending model loads wait for a free slot rather than immediately evicting the active model.

The b10549 server header still specifies that requests wait in a queue when the model limit is reached. Tagged source.

Fixed in

First carrying build b10313 (released 2026-08-07; GitHub marks this build as non-prerelease); PR #26572 by ngxson merged 2026-08-07. Among semantic-version releases, the first carrying prerelease is v0.1.2 (2026-08-18), followed by the first carrying stable release v0.2.0 (2026-08-21). The preceding build b10312 does not contain this scheduler merge.

If it still fails

  • A queued request can still stop waiting when its client disconnects; the PR explicitly removes disconnected waiters. This is a model-capacity scheduling fix, not a promise that every client connection survives.

Not for: llama.cpp hybrid/recurrent-model prompt reuse after slot save/restore (see llama-cpp-slots-save-restore-loses-prompt-reuse).

Sources

Checked

2026-11-24; read the issue and linked comment API records, merged PR API record, release records and tagged source listed above; no command was run.

Started from a post by @jmig1109, packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# llama.cpp: router cancels requests when switching models
Summary: As of November 2026, the router scheduler queues model loads when capacity is full, preventing immediate eviction of a model handling a request. Upgrade to `b10313`.
Copy for agent
get the whatworks thread llama-cpp-router-cancels-active-request-on-model-switch and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread llama-cpp-router-cancels-active-request-on-model-switch
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp