The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(chat): correct the stated mechanism for the in-flight indicator
M3gA-Mind3d23cb02ea6f
diff --git a/app/src/features/conversations/components/AssistantUiInferenceStatus.test.tsx b/app/src/features/conversations/components/AssistantUiInferenceStatus.test.tsxindex f12d3014cc..4d7fc822b0 100644--- a/app/src/features/conversations/components/AssistantUiInferenceStatus.test.tsx+++ b/app/src/features/conversations/components/AssistantUiInferenceStatus.test.tsx@@ -124,9 +124,14 @@ describe('inference status on the assistant-ui chat surface', () => {});// `Thinking... (3)` used to render here. It duplicated assistant-ui's own- // in-flight marker: `react-markdown/styles/dot.css` paints a pulsing `●`- // on `.aui-md[data-status="running"]:empty`, which is live for exactly- // this phase. The iteration count was harness telemetry besides.+ // in-flight marker: a synthetic `indicator` part, emitted by+ // `MessagePrimitive.GroupedParts` for a running message with zero content+ // parts and rendered by `thread.tsx` as+ // `<span data-slot="aui_assistant-message-indicator">●</span>`. Probing the+ // DOM in this exact state finds that span present and zero `.aui-md`+ // elements, so it is not the `dot.css` `:empty::after` rule — see+ // `AssistantUiInferenceStatus`'s doc comment. The iteration count was+ // harness telemetry besides.expect(screen.queryByTestId('inference-status-line')).not.toBeInTheDocument();// The suppression must be specific to `thinking`, not a dead component:diff --git a/app/src/features/conversations/components/AssistantUiInferenceStatus.tsx b/app/src/features/conversations/components/AssistantUiInferenceStatus.tsxindex d1078a4a14..c6297895c0 100644--- a/app/src/features/conversations/components/AssistantUiInferenceStatus.tsx+++ b/app/src/features/conversations/components/AssistantUiInferenceStatus.tsx@@ -29,14 +29,29 @@ const selectThreadExtras = (state: AssistantState) => state.thread.extras;** The `thinking` phase renders NOTHING here. It used to show* `Thinking... (N)` — a pulsing dot plus the harness's iteration counter — but- * assistant-ui already marks a minted-and-empty assistant message as in- * flight: `@assistant-ui/react-markdown/styles/dot.css` (imported by- * `markdown-text.tsx`) paints a pulsing `●` via- * `.aui-md[data-status="running"]:empty::after`, and the live tail carries- * `status: { type: 'running' }` (`assistantUiMessages.ts`). So the library's- * dot covers exactly the pre-first-token gap this line was added for, and ours- * was a second indicator stacked under it. The iteration count was harness- * telemetry the reader has no use for.+ * assistant-ui already marks a running turn as in flight, so ours was a second+ * indicator stacked under it, and the iteration count was harness telemetry the+ * reader has no use for.+ *+ * The library's marker is a *message-level* part, which is the detail that+ * matters here. While the thread is running assistant-ui mints a placeholder+ * assistant message; `MessagePrimitive.GroupedParts` emits a synthetic+ * `indicator` part for a running message with zero content parts+ * (`@assistant-ui/core`, `contentLength === 0 && isRunning`), and+ * `components/assistant-ui/thread.tsx` renders that part as+ * `<span data-slot="aui_assistant-message-indicator">●</span>`. Being+ * message-level, it exists only on this surface — `ChatThreadView` has no+ * equivalent, which is why the shared `InferenceStatusLine` keeps its+ * `thinking` branch and the suppression lives here instead.+ *+ * It is NOT `@assistant-ui/react-markdown/styles/dot.css` painting+ * `.aui-md[data-status="running"]:empty::after`. That rule cannot fire in this+ * window: `assistantParts` pushes a text part only when `text.length > 0` and+ * `streamingTailMessage` returns `null` at `parts.length === 0`+ * (`providers/assistantUiMessages.ts`), so no `.aui-md` element exists yet for+ * `:empty` to match. Said here because believing the marker was CSS on a+ * markdown element is what once made deleting the shared `thinking` branch look+ * safe; it blanked the voice surface.*/export function AssistantUiInferenceStatus() {const extras = readOpenHumanThreadExtras(useAuiState(selectThreadExtras));diff --git a/app/src/features/conversations/components/aui/InferenceStatusLine.tsx b/app/src/features/conversations/components/aui/InferenceStatusLine.tsxindex e08c396a33..0f1849c1e1 100644--- a/app/src/features/conversations/components/aui/InferenceStatusLine.tsx+++ b/app/src/features/conversations/components/aui/InferenceStatusLine.tsx@@ -29,11 +29,12 @@ export interface InferenceStatusLineProps {* markdown, so nothing else indicates the pre-first-token gap for it.** On the assistant-ui surface that caption WOULD stack a second indicator under- * the library's own — `react-markdown/styles/dot.css` paints a pulsing `●` on- * `.aui-md[data-status="running"]:empty`, live for exactly that gap, and the- * `(N)` is the harness's iteration counter, internal telemetry a reader cannot- * act on. That is suppressed one layer up: `AssistantUiInferenceStatus` returns- * null for `thinking` before reaching this component.+ * the library's own, and the `(N)` is the harness's iteration counter, internal+ * telemetry a reader cannot act on. That is suppressed one layer up:+ * `AssistantUiInferenceStatus` returns null for `thinking` before reaching this+ * component — see its doc comment for what the library's marker actually is (a+ * message-level synthetic `indicator` part, not a CSS rule on `.aui-md`) and why+ * that is precisely why this surface has no equivalent.** So the suppression is per-surface, at the surface-specific caller, rather than* by deleting a branch the other caller depends on.@@ -53,7 +54,8 @@ export function InferenceStatusLine({// The duplicate this PR is fixing is an assistant-ui problem, and it is fixed// at the assistant-ui layer: `AssistantUiInferenceStatus` returns null for// `thinking` before it ever reaches this component, so the caption below- // cannot stack under the library's own `●` there.+ // cannot stack under assistant-ui's own `●` there — a message-level+ // `indicator` part that has no counterpart on this surface.const { t } = useT();return (<div