Skip to content

The agent that grows with you

refactor(desktop): say why the standalone reasoning gate exists; sharpen the toggle test

kshitijk4poorfc8b671cf7f4
diff --git a/apps/desktop/src/components/assistant-ui/thread/message-parts.tsx b/apps/desktop/src/components/assistant-ui/thread/message-parts.tsx
index c4caee06835..80022ef408d 100644
--- a/apps/desktop/src/components/assistant-ui/thread/message-parts.tsx
+++ b/apps/desktop/src/components/assistant-ui/thread/message-parts.tsx
@@ -381,6 +381,9 @@ const ReasoningTextPart: ReasoningMessagePartComponent = () => {
const { status, text } = useMessagePartReasoning()
const messageRunning = useAuiState(s => s.message.status?.type === 'running')
+ // The group above already hides grouped parts; this covers a Reasoning part
+ // rendered without a ReasoningGroup wrapper (assistant-ui drops the group
+ // when a ChainOfThought component is registered).
const showReasoning = useStore($showReasoning)
if (!showReasoning) {
diff --git a/apps/desktop/src/components/assistant-ui/thread/streaming.test.tsx b/apps/desktop/src/components/assistant-ui/thread/streaming.test.tsx
index 6441f14602d..65a94549a78 100644
--- a/apps/desktop/src/components/assistant-ui/thread/streaming.test.tsx
+++ b/apps/desktop/src/components/assistant-ui/thread/streaming.test.tsx
@@ -511,8 +511,16 @@ describe('assistant-ui streaming renderer', () => {
await waitFor(() => {
expect(container.querySelectorAll('[data-slot="aui_reasoning-text"]')).toHaveLength(enabled ? 2 : 0)
})
- expect(within(container).queryByRole('button', { name: /thinking/i }) !== null).toBe(enabled)
- expect(container.textContent?.includes('standalone reasoning')).toBe(enabled)
+ const thinking = within(container).queryByRole('button', { name: /thinking/i })
+ const standalone = within(container).queryByText('standalone reasoning')
+
+ if (enabled) {
+ expect(thinking).not.toBeNull()
+ expect(standalone).not.toBeNull()
+ } else {
+ expect(thinking).toBeNull()
+ expect(standalone).toBeNull()
+ }
})
it('renders assistant text incrementally before completion', async () => {
diff --git a/website/docs/user-guide/desktop.md b/website/docs/user-guide/desktop.md
index 9cff9563d8b..b6ff3720e87 100644
--- a/website/docs/user-guide/desktop.md
+++ b/website/docs/user-guide/desktop.md
@@ -196,7 +196,7 @@ Manage providers, models, tools, and credentials from a real UI instead of editi
- **xAI Grok OAuth** — Grok is a first-class OAuth provider in the launcher; sign in through the browser flow like the other OAuth providers.
- **Tool-backend installs from the GUI** — run a tool backend's post-setup install steps directly from the app instead of dropping to a terminal. In the terminal backend picker, selecting a backend marked **Needs setup** asks for confirmation first; declining leaves the current backend selected.
- **Terminal font picker** — choose an installed font in **Settings → Appearance**. Nerd Fonts such as `MesloLGS NF` render Powerlevel10k separators and icons in both interactive and agent terminals; the setting is saved per profile.
-- **Reasoning Blocks** — **Settings → Chat → Reasoning Blocks** (`display.show_reasoning` in `config.yaml`) hides or shows the model's thinking in the transcript; off means answers only, on the next refresh of the chat view after you save.
+- **Reasoning Blocks** — **Settings → Chat → Reasoning Blocks** (`display.show_reasoning` in `config.yaml`) shows or hides the model's thinking in the transcript (off shows answers only). Open chats update as soon as the setting saves.
- **Reopen Last Chat on Launch** — by default the app picks up where you left off on cold start. Turn it off in **Settings → Appearance** (or set `display.resume_last_session: false` in `config.yaml`) to always begin with a fresh chat. Deep links and explicit destinations are never overridden either way.
- **Auxiliary-model warning** — if you switch the main model to a new provider while auxiliary tasks (titling, summarization, and similar helpers) are still pinned to another provider, the app warns you so you don't unknowingly split work across two providers.
- **Per-task reasoning effort** — each row under **Settings → Model → Auxiliary models** has a reasoning selector next to its provider/model pick: a level, **Off**, or **inherit · main model effort** (the default, which removes the task's override). It is saved as `auxiliary.<task>.reasoning_effort` in `config.yaml`, the same key `hermes model` writes, and shows in the row's summary when set. Use it to run frequent helpers such as compression or titling at low or no reasoning while the main agent stays at high.