Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(chat): correct icon import path for ComposerIcons

Steven Enamakel847c0f73d32d
diff --git a/app/src/components/chat/__tests__/ChatComposer.test.tsx b/app/src/components/chat/__tests__/ChatComposer.test.tsx
index f95a02d035..af3aa8e054 100644
--- a/app/src/components/chat/__tests__/ChatComposer.test.tsx
+++ b/app/src/components/chat/__tests__/ChatComposer.test.tsx
@@ -356,26 +356,26 @@ describe('ChatComposer', () => {
// First, render normally.
const { rerender } = render(
<Runtime>
- <ChatComposer
- inputValue=""
- setInputValue={vi.fn()}
- onSend={vi.fn().mockResolvedValue(undefined)}
- textInputRef={textInputRef}
- fileInputRef={fileInputRef}
- composerInteractionBlocked={false}
- isSending={false}
- attachments={[]}
- onAttachFiles={vi.fn().mockResolvedValue(undefined)}
- onRemoveAttachment={vi.fn()}
- attachError={null}
- onSwitchToMicCloud={vi.fn()}
- handleInputKeyDown={vi.fn()}
- inlineCompletionSuffix=""
- isComposingTextRef={isComposingTextRef}
- maxAttachments={5}
- allowedMimeTypes={[]}
- attachmentsEnabled={false}
- />
+ <ChatComposer
+ inputValue=""
+ setInputValue={vi.fn()}
+ onSend={vi.fn().mockResolvedValue(undefined)}
+ textInputRef={textInputRef}
+ fileInputRef={fileInputRef}
+ composerInteractionBlocked={false}
+ isSending={false}
+ attachments={[]}
+ onAttachFiles={vi.fn().mockResolvedValue(undefined)}
+ onRemoveAttachment={vi.fn()}
+ attachError={null}
+ onSwitchToMicCloud={vi.fn()}
+ handleInputKeyDown={vi.fn()}
+ inlineCompletionSuffix=""
+ isComposingTextRef={isComposingTextRef}
+ maxAttachments={5}
+ allowedMimeTypes={[]}
+ attachmentsEnabled={false}
+ />
</Runtime>
);
@@ -385,26 +385,26 @@ describe('ChatComposer', () => {
// Then render again — should not warn because the counter was reset.
rerender(
<Runtime>
- <ChatComposer
- inputValue="hello"
- setInputValue={vi.fn()}
- onSend={vi.fn().mockResolvedValue(undefined)}
- textInputRef={textInputRef}
- fileInputRef={fileInputRef}
- composerInteractionBlocked={false}
- isSending={false}
- attachments={[]}
- onAttachFiles={vi.fn().mockResolvedValue(undefined)}
- onRemoveAttachment={vi.fn()}
- attachError={null}
- onSwitchToMicCloud={vi.fn()}
- handleInputKeyDown={vi.fn()}
- inlineCompletionSuffix=""
- isComposingTextRef={isComposingTextRef}
- maxAttachments={5}
- allowedMimeTypes={[]}
- attachmentsEnabled={false}
- />
+ <ChatComposer
+ inputValue="hello"
+ setInputValue={vi.fn()}
+ onSend={vi.fn().mockResolvedValue(undefined)}
+ textInputRef={textInputRef}
+ fileInputRef={fileInputRef}
+ composerInteractionBlocked={false}
+ isSending={false}
+ attachments={[]}
+ onAttachFiles={vi.fn().mockResolvedValue(undefined)}
+ onRemoveAttachment={vi.fn()}
+ attachError={null}
+ onSwitchToMicCloud={vi.fn()}
+ handleInputKeyDown={vi.fn()}
+ inlineCompletionSuffix=""
+ isComposingTextRef={isComposingTextRef}
+ maxAttachments={5}
+ allowedMimeTypes={[]}
+ attachmentsEnabled={false}
+ />
</Runtime>
);
diff --git a/app/src/components/chat/composer/ComposerIcons.tsx b/app/src/components/chat/composer/ComposerIcons.tsx
index 9bc1d92fc0..30b81eac39 100644
--- a/app/src/components/chat/composer/ComposerIcons.tsx
+++ b/app/src/components/chat/composer/ComposerIcons.tsx
@@ -3,7 +3,12 @@ import { COMPOSER_CANCEL_ICON, COMPOSER_SEND_ICON } from './composerStyles';
/** Plus glyph for the add-attachment control (`.aui-composer-add-attachment`). */
export function AddAttachmentIcon() {
return (
- <svg className="size-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
+ <svg
+ className="size-5"
+ fill="none"
+ stroke="currentColor"
+ viewBox="0 0 24 24"
+ aria-hidden="true">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={1.8} d="M12 5v14m-7-7h14" />
</svg>
);
@@ -12,7 +17,12 @@ export function AddAttachmentIcon() {
/** Microphone glyph for the voice-mode control. No upstream equivalent. */
export function MicIcon() {
return (
- <svg className="size-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
+ <svg
+ className="size-4"
+ fill="none"
+ stroke="currentColor"
+ viewBox="0 0 24 24"
+ aria-hidden="true">
<path
strokeLinecap="round"
strokeLinejoin="round"
diff --git a/app/src/components/chat/composer/useComposerTextBridge.ts b/app/src/components/chat/composer/useComposerTextBridge.ts
index 4f21418c90..f41448a7d2 100644
--- a/app/src/components/chat/composer/useComposerTextBridge.ts
+++ b/app/src/components/chat/composer/useComposerTextBridge.ts
@@ -1,4 +1,4 @@
-import { useAui, useAuiState, type AssistantState } from '@assistant-ui/react';
+import { type AssistantState, useAui, useAuiState } from '@assistant-ui/react';
import debugFactory from 'debug';
import { useEffect } from 'react';
diff --git a/app/src/components/flows/FlowRunInspectorDrawer.tsx b/app/src/components/flows/FlowRunInspectorDrawer.tsx
index d224ac8dd1..f4f93f3c8e 100644
--- a/app/src/components/flows/FlowRunInspectorDrawer.tsx
+++ b/app/src/components/flows/FlowRunInspectorDrawer.tsx
@@ -70,7 +70,7 @@ function formatTimestamp(value: string | null | undefined): string | null {
/**
* Live per-node status dot colour, keyed off the socket `flow:run_progress`
* feed (Phase 3e). Mirrors the run-level status-dot language:
- * ocean (running, pulsing), sage (success), coral (error). Falls back to the
+ * primary (running, pulsing), sage (success), coral (error). Falls back to the
* faint dot when the node has no live status yet (the poller stays the source
* of truth for the durable step list).
*/
diff --git a/app/src/components/flows/WorkflowCopilotPanel.tsx b/app/src/components/flows/WorkflowCopilotPanel.tsx
index d82fe413a6..db5933b23d 100644
--- a/app/src/components/flows/WorkflowCopilotPanel.tsx
+++ b/app/src/components/flows/WorkflowCopilotPanel.tsx
@@ -690,23 +690,23 @@ export default function WorkflowCopilotPanel({
<AssistantUiRuntimeProvider threadId={threadId}>
<ChatComposer
inputValue={text}
- setInputValue={setText}
- onSend={submit}
- textInputRef={textInputRef}
- fileInputRef={fileInputRef}
- composerInteractionBlocked={sending}
- isSending={sending}
- onStopGeneration={stop}
- attachments={[]}
- onAttachFiles={noopAttach}
- onRemoveAttachment={noop}
- attachError={null}
- onSwitchToMicCloud={noop}
- handleInputKeyDown={handleInputKeyDown}
- inlineCompletionSuffix=""
- isComposingTextRef={isComposingTextRef}
- maxAttachments={0}
- allowedMimeTypes={[]}
+ setInputValue={setText}
+ onSend={submit}
+ textInputRef={textInputRef}
+ fileInputRef={fileInputRef}
+ composerInteractionBlocked={sending}
+ isSending={sending}
+ onStopGeneration={stop}
+ attachments={[]}
+ onAttachFiles={noopAttach}
+ onRemoveAttachment={noop}
+ attachError={null}
+ onSwitchToMicCloud={noop}
+ handleInputKeyDown={handleInputKeyDown}
+ inlineCompletionSuffix=""
+ isComposingTextRef={isComposingTextRef}
+ maxAttachments={0}
+ allowedMimeTypes={[]}
attachmentsEnabled={false}
micEnabled={false}
placeholder={t('flows.copilot.placeholder')}
diff --git a/app/src/components/flows/canvas/flowCanvasStyles.css b/app/src/components/flows/canvas/flowCanvasStyles.css
index c9343f1bd6..6c5fcca9b0 100644
--- a/app/src/components/flows/canvas/flowCanvasStyles.css
+++ b/app/src/components/flows/canvas/flowCanvasStyles.css
@@ -1,6 +1,6 @@
/**
* Minimal palette overrides so `@xyflow/react`'s default look picks up the
- * app's ocean/sage/amber/coral theme tokens instead of its own defaults.
+ * app's primary/sage/amber/coral theme tokens instead of its own defaults.
* `FlowCanvas.tsx` imports `@xyflow/react/dist/style.css` first, then this
* file, so these rules simply win on specificity/order.
*
diff --git a/app/src/components/intelligence/AttentionQueueItem.tsx b/app/src/components/intelligence/AttentionQueueItem.tsx
index 0220ddb03a..85431fd267 100644
--- a/app/src/components/intelligence/AttentionQueueItem.tsx
+++ b/app/src/components/intelligence/AttentionQueueItem.tsx
@@ -30,7 +30,7 @@ const KIND_LABEL_KEY: Record<AttentionKind, string> = {
};
/** Left accent + chip tone per kind. Approvals and blocked runs read amber
- * (action required); unread reads ocean (informational). */
+ * (action required); unread reads primary (informational). */
const KIND_TONE: Record<AttentionKind, { accent: string; chip: string }> = {
approval: {
accent: 'border-l-amber-500',
diff --git a/app/src/components/intelligence/InstanceStatusDot.tsx b/app/src/components/intelligence/InstanceStatusDot.tsx
index 8e57930b98..637982f04a 100644
--- a/app/src/components/intelligence/InstanceStatusDot.tsx
+++ b/app/src/components/intelligence/InstanceStatusDot.tsx
@@ -3,7 +3,7 @@
* agent instance's status at a glance, scannable across many rows.
*
* Five states (color + motion), matching the core's {@link InstanceStatus}:
- * running (ocean, pulsing) · idle (sage) · waiting-approval (amber) ·
+ * running (primary, pulsing) · idle (sage) · waiting-approval (amber) ·
* errored (coral) · stopped (faint). The core derives only idle/stopped today;
* the other three are wired ahead of the attention-queue / run-state work.
*
diff --git a/app/src/components/intelligence/memberColors.ts b/app/src/components/intelligence/memberColors.ts
index e035e5edf1..b01a75a823 100644
--- a/app/src/components/intelligence/memberColors.ts
+++ b/app/src/components/intelligence/memberColors.ts
@@ -7,9 +7,9 @@
* class (the class names aren't known at build time, so they'd be purged), so
* the colour is resolved to a house-palette hex here and applied via inline
* style at the call site — the same approach `memory-workspace.css` already
- * uses for the ocean accent.
+ * uses for the primary accent.
*
- * The palette is drawn from the project's semantic tokens (ocean / sage / amber
+ * The palette is drawn from the project's semantic tokens (primary / sage / amber
* / coral / sky / lavender) so the board never introduces an off-brand hue.
* Assignment is stable per member id: the same id always maps to the same
* colour, and ids spread across the palette before repeating.
@@ -17,7 +17,7 @@
/** House-palette hues used to distinguish team members. Order is the cycle. */
const MEMBER_PALETTE = [
- '#4A83DD', // ocean
+ '#4A83DD', // primary (brand blue)
'#34C759', // sage
'#E8A728', // amber
'#EF4444', // coral
diff --git a/app/src/components/orchestration/AgentChatPanel.tsx b/app/src/components/orchestration/AgentChatPanel.tsx
index de4d4f5167..86121c0421 100644
--- a/app/src/components/orchestration/AgentChatPanel.tsx
+++ b/app/src/components/orchestration/AgentChatPanel.tsx
@@ -41,6 +41,7 @@ import {
useContactSessions,
useSessionTranscript,
} from '../../lib/orchestration/useOrchestrationSessions';
+import { AssistantUiRuntimeProvider } from '../../providers/AssistantUiRuntimeProvider';
import { subconsciousTrigger } from '../../utils/tauriCommands/subconscious';
import ChatComposer from '../chat/ChatComposer';
import ChatNewWindowHero from '../chat/ChatNewWindowHero';
@@ -181,30 +182,45 @@ function AgentComposer({
);
return (
- <ChatComposer
- inputValue={value}
- setInputValue={setValue}
- onSend={async text => {
- await onSend(text);
- }}
- textInputRef={textInputRef}
- fileInputRef={fileInputRef}
- composerInteractionBlocked={false}
- isSending={isSending}
- attachments={[]}
- onAttachFiles={async () => {}}
- onRemoveAttachment={() => {}}
- attachError={null}
- onSwitchToMicCloud={() => {}}
- handleInputKeyDown={handleInputKeyDown}
- inlineCompletionSuffix=""
- isComposingTextRef={isComposingTextRef}
- maxAttachments={0}
- allowedMimeTypes={[]}
- attachmentsEnabled={false}
- micEnabled={false}
- placeholder={placeholder}
- />
+ /* This panel's chats are orchestration sessions, not chat threads — there is
+ no thread id to scope a runtime to. `ChatComposer` is built on
+ `ComposerPrimitive`, which resolves its runtime from React context, and
+ this panel renders inside the app shell: without a provider of its own it
+ would silently inherit the app-wide runtime from `ChatRuntimeProvider`,
+ which is bound to `selectedThreadId` — the HOME chat's thread. That is a
+ data-loss-shaped mistake, not a cosmetic one, so the surface mounts its
+ own runtime with an explicit `threadId={null}`: "this surface owns no
+ thread". `null` is not a fallback request — `AssistantUiRuntimeProvider`
+ treats an omitted prop as "follow the selection" and an explicit `null`
+ as "no thread", which is precisely the distinction needed here. The
+ resulting runtime has no messages and is never running; sending stays on
+ this panel's own `onSend`, which goes through `orchestrationClient`. */
+ <AssistantUiRuntimeProvider threadId={null}>
+ <ChatComposer
+ inputValue={value}
+ setInputValue={setValue}
+ onSend={async text => {
+ await onSend(text);
+ }}
+ textInputRef={textInputRef}
+ fileInputRef={fileInputRef}
+ composerInteractionBlocked={false}
+ isSending={isSending}
+ attachments={[]}
+ onAttachFiles={async () => {}}
+ onRemoveAttachment={() => {}}
+ attachError={null}
+ onSwitchToMicCloud={() => {}}
+ handleInputKeyDown={handleInputKeyDown}
+ inlineCompletionSuffix=""
+ isComposingTextRef={isComposingTextRef}
+ maxAttachments={0}
+ allowedMimeTypes={[]}
+ attachmentsEnabled={false}
+ micEnabled={false}
+ placeholder={placeholder}
+ />
+ </AssistantUiRuntimeProvider>
);
}