Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

style(thinking): Gedankenstriche aus den neuen Zeilen raus

purpled99f9eb149ce
diff --git a/src/api/providers/__tests__/openai-template-thinking.test.ts b/src/api/providers/__tests__/openai-template-thinking.test.ts
index 258caecd..c5bc5a42 100644
--- a/src/api/providers/__tests__/openai-template-thinking.test.ts
+++ b/src/api/providers/__tests__/openai-template-thinking.test.ts
@@ -161,7 +161,7 @@ describe('a local server that refuses the field is not mistaken for one that can
* Before the template switch, plain chat and the coding loop appended "reason
* inside <think></think> tags" to the system prompt for every OpenAI-compatible
* endpoint that declared nothing. On a LOCAL backend that now arrives on top of
- * a template that has already opened the thought — the same double instruction
+ * a template that has already opened the thought. That is the same double instruction
* that trapped David's cloud Qwen3.6 in a reasoning loop on 2026-07-12, one
* layer down. Cloud endpoints that declare nothing keep the injection: it is
* still the only thing that can ask them.
diff --git a/src/hooks/useChat.ts b/src/hooks/useChat.ts
index 41b65c34..432a65d5 100644
--- a/src/hooks/useChat.ts
+++ b/src/hooks/useChat.ts
@@ -820,7 +820,7 @@ export function useChat() {
finishReason = chunk.finishReason
useChatStore.getState().updateMessageFinishReason(convId!, assistantMessage.id, chunk.finishReason)
}
- // Final settlement — the shared one, so plain chat catches the same
+ // Final settlement, the shared one, so plain chat catches the same
// orphan shapes the agent loops do. Before this the char-by-char
// machine above was the whole story here, and it only ever fires on
// a literal `<think>`: a Qwen3 template that pre-opens the thought
diff --git a/src/lib/__tests__/thinking-side-surfaces.test.ts b/src/lib/__tests__/thinking-side-surfaces.test.ts
index 19768678..e82f0d85 100644
--- a/src/lib/__tests__/thinking-side-surfaces.test.ts
+++ b/src/lib/__tests__/thinking-side-surfaces.test.ts
@@ -2,16 +2,16 @@
* Loch 5, 6 und 7 des Denk-Audits (2.6.7, 2026-08-29): the three surfaces
* beside chat, agent and coding.
*
- * 5. Workflow engine — carried its own hand-written copy of the balanced
+ * 5. Workflow engine, which carried its own hand-written copy of the balanced
* `<think>` regex. It missed the pre-opened Qwen3 shape (closer without
* opener), a turn cut off mid-thought, and every non-canonical marker.
* A workflow step's output is not only shown, it becomes a workflow
* VARIABLE and rides into every later step's prompt, so leaked reasoning
* compounds down the chain.
- * 6. A/B compare — sent no thinking signal at all and stripped nothing, so
+ * 6. A/B compare, which sent no thinking signal at all and stripped nothing, so
* the comparison ran on whatever the backend happened to default to and
* the raw reasoning was part of what the user was comparing.
- * 7. Benchmark — counted a reasoning chunk only on the NATIVE channel. A
+ * 7. Benchmark, which counted a reasoning chunk only on the NATIVE channel. A
* backend without one sends the thought inline as `<think>` inside the
* content (Ollama with the flag unset, llama.cpp with reasoning-format
* none, LM Studio), so it landed in the answer text the correctness
diff --git a/src/lib/thinking-stripper.ts b/src/lib/thinking-stripper.ts
index 73b66c08..9cede770 100644
--- a/src/lib/thinking-stripper.ts
+++ b/src/lib/thinking-stripper.ts
@@ -198,7 +198,7 @@ export function settleThinking(
think = think ? `${think}\n\n${part}` : part
}
- // Balanced blocks first — the common, well-formed case.
+ // Balanced blocks first, the common well-formed case.
out = out.replace(/<think>([\s\S]*?)<\/think>/gi, (_m, inner: string) => {
add(inner)
return ''
diff --git a/src/lib/workflow-engine.ts b/src/lib/workflow-engine.ts
index 54aff2c7..c354b787 100644
--- a/src/lib/workflow-engine.ts
+++ b/src/lib/workflow-engine.ts
@@ -298,7 +298,7 @@ export class WorkflowEngine {
// Loch 5). This used to be a hand-written copy of the balanced-block
// regex, so a pre-opened Qwen3 thought (closer without opener), a turn cut
// off mid-thought and every non-canonical marker went straight into the
- // step output — which is not only shown, it becomes a workflow VARIABLE
+ // step output, which is not only shown: it becomes a workflow VARIABLE
// and rides into every later step's prompt.
output = settleThinking(output, '', false).content