[GH-ISSUE #4949] [Engine] Qwen3.8-Flash-Next: thinking passes spent on "the last message was just system instructions - there's no actual task" #2278

Open
opened 2026-11-04 01:58:07 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @TheIronWolfModding on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4949

Title

Qwen3.8-Flash-Next: thinking passes spent on "the last message was just system instructions — there's no actual task"

Setup

  • Model: Qwen3.8-Flash-Next, unsloth UD-Q4_K_XL pack, 256K context
  • Strata control 0.1.55, engine component 0.1.55-linux-x86_64-cuda-cuda13
  • Engine args: --spec 4 --spec-min-p 0.5 --mtp <rt> --max-context 262144 --kv int8 --ple-io ram --kv-resident 32768 --vision --pcie-frac 0.20
  • Client: a local agentic coding harness on /v1/chat/completions (streaming), sending chat_template_kwargs: {"enable_thinking": true, "preserve_thinking": true}

What happens

On some turns the model's entire thinking output is meta-commentary about whether it has been asked anything, instead of reasoning about the actual task. Verbatim (clipped):

The user hasn't asked anything substantive yet — the last message was just the system instructions establishing that I'm an expert software engineer helping the user solve problems. There's no actual task. I should acknowledge briefly. The system prompt says to always invoke a function call in response to user queries, but there's no real query here — just an instruction preamble.

The turn then usually continues and the work gets done, so it is not fatal — but it costs a thinking pass and occasionally derails the reply.

Measured over the 60 most recent transcripts from the harness: 201 thinking blocks matching that pattern. It is not a first-turn-only artifact — in the 20 most recent transcripts the occurrences sit at assistant turn 5, 6, 19, 21, 23, 24, 25, 25, 39, 39, 41, 44, 46, 48, …, i.e. mid-session, commonly right after a batch of tool results.

What it is not

Not a reasoning-channel failure:

  • the text arrives in reasoning_content (serve/server.py:6430), never in content — 0 occurrences in content blocks across those transcripts;
  • the served template is the model's own file exported with its tokenizer (serve/server.py:9293), byte-identical to the bundled fallback (9993 chars, md5 2a79880b328d0e0387c8ecb62c4c0c80);
  • /props reports chat_template_caps.supports_preserve_reasoning: true.

So this is not the "template mismatch leaks reasoning/tool calls into text" class of problem — e.g. the same symptom reported for a different harness in itayinbarr/little-coder#129 was that class; mine is not.

The part that looks server-side

Two specifics in that output are strings the client never sends:

  1. it paraphrases the system prompt as "You are an expert software engineer. Helps user to solve problems." — the client's system prompt is different wording entirely;
  2. it cites an instruction to "always invoke a function call in response to user queries" — also not present in the client's system prompt.

So at those moments the model is reconstructing a system prompt it was not handed, and concluding the request consists of instructions only. I have not yet captured the rendered prompt for such a turn, so I cannot yet tell whether the rendered prompt is at fault (empty <think> blocks, the effort sentence, the checkpointing/--tail-role-token split, or preserve_thinking replay) or whether this is simply Q38FN behaviour.

Places I suspect, from reading the source:

  • the effort sentence injected into the leading system turn — chat_template.jinja:74-75, 90-92 and EFFORT_TEXT in serve/server.py:204-209 — makes "instructions" the dominant instruction-shaped block in front of the model;
  • chat_template.jinja:119-120: if a client does not replay reasoning_content, every past assistant turn is rendered with an empty <think> block. My client does replay it, but if the replay ever lands under a different field name the branch degrades silently;
  • the default effort is xhigh (chat_template.jinja:59) — the meta-reasoning looks like what an uncapped xhigh pass produces when it has nothing to chew on.

Questions

  1. Is this a known Q38FN behaviour at xhigh? Does medium / low measurably reduce it?
  2. Should preserve_thinking replay failing (or landing on the wrong field) be loud rather than silent — e.g. a note in the slot log when an assistant history message carries content but no reasoning_content?
  3. Anything about speculative decoding (--spec 4 / MTP) worth ruling out with respect to the <think> literal handling (mark_think_literals, REASONING_CLOSE)?

Happy to provide / test

  • an api_monitor: true + /api/requests capture of the request body for one offending turn, scrubbed of private content;
  • A/B at xhigh / medium / low;
  • A/B with --mtp off and --drafting off;
  • the same harness against mainline llama.cpp serving the same pack, for a control.
Originally created by @TheIronWolfModding on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4949 ### Title Qwen3.8-Flash-Next: thinking passes spent on "the last message was just system instructions — there's no actual task" ### Setup - Model: Qwen3.8-Flash-Next, `unsloth UD-Q4_K_XL` pack, 256K context - Strata control `0.1.55`, engine component `0.1.55-linux-x86_64-cuda-cuda13` - Engine args: `--spec 4 --spec-min-p 0.5 --mtp <rt> --max-context 262144 --kv int8 --ple-io ram --kv-resident 32768 --vision --pcie-frac 0.20` - Client: a local agentic coding harness on `/v1/chat/completions` (streaming), sending `chat_template_kwargs: {"enable_thinking": true, "preserve_thinking": true}` ### What happens On some turns the model's entire thinking output is meta-commentary about whether it has been asked anything, instead of reasoning about the actual task. Verbatim (clipped): > The user hasn't asked anything substantive yet — the last message was just the system instructions establishing that I'm an expert software engineer helping the user solve problems. There's no actual task. I should acknowledge briefly. The system prompt says to always invoke a function call in response to user queries, but there's no real query here — just an instruction preamble. The turn then usually continues and the work gets done, so it is not fatal — but it costs a thinking pass and occasionally derails the reply. Measured over the 60 most recent transcripts from the harness: **201 thinking blocks** matching that pattern. It is **not** a first-turn-only artifact — in the 20 most recent transcripts the occurrences sit at assistant turn 5, 6, 19, 21, 23, 24, 25, 25, 39, 39, 41, 44, 46, 48, …, i.e. mid-session, commonly right after a batch of tool results. ### What it is *not* Not a reasoning-channel failure: - the text arrives in `reasoning_content` (`serve/server.py:6430`), never in `content` — **0** occurrences in content blocks across those transcripts; - the served template is the model's own file exported with its tokenizer (`serve/server.py:9293`), byte-identical to the bundled fallback (9993 chars, `md5 2a79880b328d0e0387c8ecb62c4c0c80`); - `/props` reports `chat_template_caps.supports_preserve_reasoning: true`. So this is not the "template mismatch leaks reasoning/tool calls into text" class of problem — e.g. the same symptom reported for a different harness in itayinbarr/little-coder#129 was that class; mine is not. ### The part that looks server-side Two specifics in that output are strings the client **never sends**: 1. it paraphrases the system prompt as *"You are an expert software engineer. Helps user to solve problems."* — the client's system prompt is different wording entirely; 2. it cites an instruction to *"always invoke a function call in response to user queries"* — also not present in the client's system prompt. So at those moments the model is reconstructing a system prompt it was not handed, and concluding the request consists of instructions only. I have not yet captured the rendered prompt for such a turn, so I cannot yet tell whether the rendered prompt is at fault (empty `<think>` blocks, the effort sentence, the checkpointing/`--tail-role-token` split, or `preserve_thinking` replay) or whether this is simply Q38FN behaviour. Places I suspect, from reading the source: - the effort sentence injected into the leading system turn — `chat_template.jinja:74-75, 90-92` and `EFFORT_TEXT` in `serve/server.py:204-209` — makes "instructions" the dominant instruction-shaped block in front of the model; - `chat_template.jinja:119-120`: if a client does not replay `reasoning_content`, every past assistant turn is rendered with an **empty** `<think>` block. My client does replay it, but if the replay ever lands under a different field name the branch degrades silently; - the default effort is `xhigh` (`chat_template.jinja:59`) — the meta-reasoning looks like what an uncapped xhigh pass produces when it has nothing to chew on. ### Questions 1. Is this a known Q38FN behaviour at `xhigh`? Does `medium` / `low` measurably reduce it? 2. Should `preserve_thinking` replay failing (or landing on the wrong field) be *loud* rather than silent — e.g. a note in the slot log when an assistant history message carries content but no `reasoning_content`? 3. Anything about speculative decoding (`--spec 4` / MTP) worth ruling out with respect to the `<think>` literal handling (`mark_think_literals`, `REASONING_CLOSE`)? ### Happy to provide / test - an `api_monitor: true` + `/api/requests` capture of the request body for one offending turn, scrubbed of private content; - A/B at `xhigh` / `medium` / `low`; - A/B with `--mtp off` and `--drafting off`; - the same harness against mainline llama.cpp serving the same pack, for a control.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6563385898 --> @github-actions[bot] commented on GitHub (Nov 1, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6563408371 --> @github-actions[bot] commented on GitHub (Nov 1, 2026): Thanks, this follows the format now.
Author
Owner

@Megal commented on GitHub (Nov 1, 2026):

I'm using same model. Observed this issue on 0.1.45. Using pi harness v 1.4.0.

<!-- gh-comment-id:6563790684 --> @Megal commented on GitHub (Nov 1, 2026): I'm using same model. Observed this issue on 0.1.45. Using pi harness v 1.4.0.
Author
Owner

@bob-u commented on GitHub (Nov 2, 2026):

I have seen this with the same model even with the latest 0.1.54 engine. It stopped after turning off the tail skip, although I have not run it for long after the fix to be 100% that was it.

<!-- gh-comment-id:6567347836 --> @bob-u commented on GitHub (Nov 2, 2026): I have seen this with the same model even with the latest 0.1.54 engine. It stopped after turning off the tail skip, although I have not run it for long after the fix to be 100% that was it.
Author
Owner

@dandandelion commented on GitHub (Nov 2, 2026):

7. I have seen this with the same model even with the latest 0.1.54 engine. It stopped after turning off the tail skip, although I have not run it for long after the fix to be 100% that was it.

tail skip=0 does not stop it, I run mine with it at 0, some thinking turns still spits out "No task" message. Never experienced before tho this could be down to the model OR the engine. Already tried multiple jinja templates to no avail.

<!-- gh-comment-id:6567546627 --> @dandandelion commented on GitHub (Nov 2, 2026): > 7\. I have seen this with the same model even with the latest 0.1.54 engine. It stopped after turning off the tail skip, although I have not run it for long after the fix to be 100% that was it. tail skip=0 does not stop it, I run mine with it at 0, some thinking turns still spits out "No task" message. Never experienced before tho this could be down to the model OR the engine. Already tried multiple jinja templates to no avail.
Author
Owner

@TheIronWolfModding commented on GitHub (Nov 2, 2026):

This problem sometimes gets very bad - I had a long session where some early prompt stuck and then entire session would, pretty verbosely, answer it in reasoning between tool calls.

<!-- gh-comment-id:6582361219 --> @TheIronWolfModding commented on GitHub (Nov 2, 2026): This problem sometimes gets very bad - I had a long session where some early prompt stuck and then entire session would, pretty verbosely, answer it in reasoning between tool calls.
Author
Owner

@dan64 commented on GitHub (Nov 2, 2026):

I have encountered the same problem and, at times, even something worse: LLM hallucinations.
I opened the PR#4932 to fix it.
I suggest to use this shared-settings (which will work after the implementation of PR#4932):

{
 "reasoning_effort": "medium",
 "preserve_thinking": false
}
<!-- gh-comment-id:6582485565 --> @dan64 commented on GitHub (Nov 2, 2026): I have encountered the same problem and, at times, even something worse: LLM hallucinations. I opened the PR[#4932](https://github.com/Niko1221/Strata/pull/4932) to fix it. I suggest to use this _shared-settings_ (which will work after the implementation of PR#4932): ``` { "reasoning_effort": "medium", "preserve_thinking": false } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2278
No description provided.