mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4177] [Engine] reasoning is returned as output text — no reasoning item on /v1/responses #1834
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1834
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @XTTGO on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4177
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Terminal (Windows)
How it was started
Terminal (the
stratacommand), engine0.1.51, started from the profile JSON in the Logs section. The client is DeepSeek Harness (DSH), not the Strata desktop app.What happened
The Responses endpoint returns the model's chain-of-thought as ordinary assistant text. No
reasoningitem is returned, so a client cannot separate thinking from the answer and renders the raw reasoning to the user. (Evidence here is for/v1/responsesonly; chat mode is untested and is what the second command below checks.)Observed on this machine, not inferred from code: in one real client session, 797 of 797 assistant messages from this endpoint contained zero parts of type
reasoning, while 14 of 14 messages from a different provider in the same session did contain them.The normalised stream record for one response:
No
blockType:"reasoning"appears anywhere in that stream. For contrast, the same client against a provider that does separate reasoning produced:Two responses were pathological: reasoning text of 26,826 characters, and of 116,254 characters that never terminated. In the second, the phrase
I'll writeoccurs 2,356 times before the request hitsmax-tokens.The engine log matches both assistant messages field for field, so the tokens were generated here:
They correspond to client usage
input 3647 / cacheRead 122174 / output 32768andinput 71 / cacheRead 90897 / output 7366. The 32,768-token request ran for 1,029,389 ms (about 17 minutes) before stopping on the token cap.Expected: an
outputitem withtype: "reasoning"separate from themessage/output_textitem (andreasoning_contentin chat mode).I did not re-run the requests outside the client. The commands below are the minimised form of what the client sent.
Smallest steps or command that reproduce it
Only a
{"type":"message"}item appears; no{"type":"reasoning"}item.If
reasoning_contentis missing here too, the reasoning channel is not exposed by the server at all.Reproduction status
Reproduced locally
Strata version
Strata 0.2.6 · engine 0.1.51
Graphics card, memory and system
2 × RTX 3090 24 GB · 256 GB RAM · Windows 11 Pro for Workstations
Model, size and settings
deepseek-v4.1-flash-ist-das-2.00bpw · 262144 context ·
--eos 1 --dspark auto --dspark-conf 0.65 --reserve-mib 2048 --cpu-threads 20 --ssd-cache 153 --ssd-policy lfu· text only, no picturesLogs
Attached:
strata-deepseek-v4.1-flash-ist-das-2.00bpw.log(151 KB). The twomaya ds4 serve:lines quoted above are the relevant ones.Launch config, local paths replaced by
<STRATA_HOME>/<PACK_ROOT>, engine flags unchanged:Notes that may help
DSpark not loadedappears in the log for this pack, so--dsparkis not in play.resp_b3495eee2b194484aaba0b817747a8fc(the 32,768-token one),resp_ffca454045244e82a4fefd66146a25c5(the 7,366-token one).@github-actions[bot] commented on GitHub (Oct 26, 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:
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
@github-actions[bot] commented on GitHub (Oct 26, 2026):
Thanks, this follows the format now.
@Niko1221 commented on GitHub (Oct 29, 2026):
Please paste the output of the two requests (
/v1/responsesand/v1/chat/completions, with the thinking orreasoning_effortfield your client sends) and the server log line that shows the thinking mode for that request. DeepSeek opens a thinking block only when the request asks for it.@XTTGO commented on GitHub (Oct 30, 2026):
Engine:
strata-dsv410.1.51,127.0.0.1:8080, packdeepseek-v4.1-flash-ist-das-2.00bpw./v1/responses — no reasoning field in the request
/v1/responses — with the field
/v1/chat/completions — no field in the request
/v1/chat/completions — with the field
Streaming /v1/responses (
"stream": true), event countsServer log lines for the four requests above
Note: 0.1.51 prints no thinking-mode line per request. Grep over the whole log for
effort|thinking|enable_thinking|reasoning_tokensreturns 0 matches; the per-request line carries only prompt/generated counts and timings.@XTTGO commented on GitHub (Oct 30, 2026):
I cannot reproduce the original request, so below is what my records contain, plus one controlled probe against the same engine.
All of it is the local setup:
strata-dsv410.1.51 on127.0.0.1:8080, packdeepseek-v4.1-flash-ist-das-2.00bpw, client DSH overopenai-responses.1. /v1/responses — the failing request
The request body was not logged by the client, so I cannot show it. What the client recorded for that response:
No
blockType:"reasoning"appears anywhere in that stream. The 116,254 characters are planning prose, not an answer.A sample from it (offset 486):
Inside that one message:
Let meappears 2,300 times,I'll write2,356 times,Ok.2,368 times, across 9,728non-empty lines (average 12 characters per line).
This was not isolated. In that session 812 assistant messages were recorded, 54 of them carried text. Eleven of those
exceeded 5,000 characters, and together they account for 222,985 characters — 87.9% of all visible text produced:
2. /v1/chat/completions — nothing to paste
My client never called that endpoint. Every assistant message in the session has
source.replayState.response.api = "openai-responses", so there is no chat-completions request or output from thefailure period to show.
3. The thinking / reasoning_effort field my client sends
Also not logged. What the client does store:
model/selectionfor this provider:For comparison, the same field after switching to another provider:
So for the local provider there is no
reasoningEffortin the selection record, while the other provider has one.request/header(everything the client kept about the outgoing call):No thinking or reasoning parameter is stored anywhere in the session. I cannot claim from this what the HTTP body
contained — only that it was not kept.
4. The server log line for those requests
They match the client's usage field by field (
122174 reused/3647 read/32768 generated;90897/71/7366).On your question about a line that shows the thinking mode: this build does not write one. Grepping the whole log
for
effort,thinking,enable_thinkingandreasoning_tokensreturns 0 matches. The per-request line carries onlyprompt/generated counts, timings and the CPU-lane share. If you want that recorded,
usage.reasoning_tokenslooks likethe cheapest thing to log.
5. Controlled probe, same engine (not the failing request)
Request, with no reasoning field at all:
Response:
outputitem types["reasoning","message"],usage.output_tokens_details.reasoning_tokens = 67,usage.output_tokens = 82.Same for chat completions with no field in the body:
choices[0].messagehas keysrole, content, reasoning_content(158 characters).
Streamed
/v1/responses, event counts:What this leaves
On my box the engine separates thinking correctly, in both modes, whether or not the request asks for it. My client's
records show zero reasoning parts across 797 responses and I cannot show what its request body was. So the evidence I
have points at the client side of my setup, and I am taking it there rather than asking you to chase it. Sorry for the
noise.