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
fix(e2e): align chat tests with assistant composer
Steven Enamakel02892d8b3ca1
diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsxindex 82859eb432..fde500677b 100644--- a/app/src/components/assistant-ui/thread.tsx+++ b/app/src/components/assistant-ui/thread.tsx@@ -116,6 +116,8 @@ export type ThreadComponents = {* branding and behaviour, and this file should not learn about either.*/ComposerIdleAction?: ComponentType | undefined;+ /** Switches the host chat surface into its microphone-first composer. */+ onSwitchToMicCloud?: (() => void) | undefined;};export type ThreadProps = {@@ -336,7 +338,16 @@ const Composer: FC<{useEffect(() => {const textbox = inputWrapperRef.current?.querySelector<HTMLElement>('[contenteditable="true"]');textbox?.setAttribute('aria-label', 'Message input');- return () => textbox?.removeAttribute('aria-label');+ // The rich Lexical surface deliberately is not a native textarea, so give+ // it an explicit stable hook for browser tests and assistive tooling. The+ // old chat composer exposed a textarea with a placeholder; consumers must+ // not have to depend on Lexical's internal DOM shape to find the primary+ // message input.+ textbox?.setAttribute('data-testid', 'chat-message-input');+ return () => {+ textbox?.removeAttribute('aria-label');+ textbox?.removeAttribute('data-testid');+ };}, []);return (@@ -416,7 +427,9 @@ const ComposerAction: FC<{hasComposerAttachments,onComposerAttachmentSend,ComposerIdleAction,+ onSwitchToMicCloud,} = useContext(ThreadComponentsContext);+ const isRunning = useAuiState(state => state.thread.isRunning);// Nothing to send: the primary slot goes to the host's idle control instead// of a Send button that would refuse the click anyway. Guarded on// `isRunning` by the surrounding `AuiIf`, so a streaming turn still shows@@ -431,6 +444,20 @@ const ComposerAction: FC<{<ComposerExtrasSlot /></div><div className="flex items-center gap-1.5">+ {onSwitchToMicCloud && (+ <TooltipIconButton+ tooltip="Voice mode"+ side="bottom"+ type="button"+ variant="ghost"+ size="icon"+ className="aui-composer-voice-mode text-muted-foreground hover:text-foreground size-7 rounded-full"+ aria-label="Voice mode"+ disabled={isRunning}+ onClick={onSwitchToMicCloud}>+ <MicIcon className="size-4" />+ </TooltipIconButton>+ )}<AuiIf condition={s => s.thread.capabilities.dictation}><AuiIf condition={s => s.composer.dictation == null}><ComposerPrimitive.Dictate asChild>diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsxindex 378a54a3e0..ac50f5db3d 100644--- a/app/src/features/conversations/Conversations.tsx+++ b/app/src/features/conversations/Conversations.tsx@@ -2525,6 +2525,7 @@ const Conversations = ({// share one mascot (mascotSlice), so this is a change of venue for the// same conversation partner, not a second one.onOpenHumanMode={() => navigate('/human')}+ onSwitchToMicCloud={() => setComposerOverride('mic-cloud')}onModelChange={(value, contextWindow) => {setComposerModelOverride(value);setComposerModelContextWindow(contextWindow ?? null);diff --git a/app/src/features/conversations/components/AssistantUiChat.tsx b/app/src/features/conversations/components/AssistantUiChat.tsxindex 43beb84229..0af6b52e56 100644--- a/app/src/features/conversations/components/AssistantUiChat.tsx+++ b/app/src/features/conversations/components/AssistantUiChat.tsx@@ -75,6 +75,7 @@ export function AssistantUiChat({attachmentInteractionBlocked,onAttachmentOnlySend,onOpenHumanMode,+ onSwitchToMicCloud,}: {threadGoal: ThreadGoalController;model: string | null;@@ -93,6 +94,8 @@ export function AssistantUiChat({onAttachmentOnlySend: () => void;/** Opens the Human page from the composer's idle primary slot. */onOpenHumanMode?: () => void;+ /** Switches to the existing microphone-first chat composer. */+ onSwitchToMicCloud?: () => void;}) {const { t } = useT();const fileInputRef = useRef<HTMLInputElement>(null);@@ -216,6 +219,7 @@ export function AssistantUiChat({ComposerExtras,ComposerHeader,ComposerIdleAction,+ onSwitchToMicCloud,...(attachmentsEnabled? {ComposerAttachments,@@ -234,6 +238,7 @@ export function AssistantUiChat({attachments.length,attachmentsEnabled,onAttachmentOnlySend,+ onSwitchToMicCloud,]);diff --git a/app/test/playwright/helpers/core-rpc.ts b/app/test/playwright/helpers/core-rpc.tsindex d21c1858c5..e955e8b7c4 100644--- a/app/test/playwright/helpers/core-rpc.ts+++ b/app/test/playwright/helpers/core-rpc.ts@@ -146,6 +146,17 @@ export async function bootAuthenticatedPage(await page.goto('/#/home');await waitForAuthenticatedSnapshot(page);await page.goto(`/#${hash}`);+ // `/home` is the legacy landing alias and redirects to the unified chat+ // shell. Wait for that redirect to settle before reporting the page ready:+ // under a busy browser lane the app could otherwise still be rendering the+ // pre-auth welcome surface when a caller immediately asserts the composer.+ if (hash === '/home') {+ await expect+ .poll(async () => page.evaluate(() => window.location.hash), {+ timeout: AUTH_CALLBACK_HOME_TIMEOUT_MS,+ })+ .toMatch(/^#\/chat/);+ }await waitForAppReady(page);}diff --git a/app/test/playwright/specs/agent-review.spec.ts b/app/test/playwright/specs/agent-review.spec.tsindex b566ec9ad2..05a046c242 100644--- a/app/test/playwright/specs/agent-review.spec.ts+++ b/app/test/playwright/specs/agent-review.spec.ts@@ -25,7 +25,7 @@ test.describe('Agent review - canonical onboarding + privacy flow', () => {// The composer is the durable readiness marker for the unified chat shell;// sidebar copy and empty-state headings change independently of readiness.- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();await page.goto('/#/settings/privacy');await waitForAppReady(page);diff --git a/app/test/playwright/specs/chat-conversation-history.spec.ts b/app/test/playwright/specs/chat-conversation-history.spec.tsindex 5f73f08617..b0eb2056fa 100644--- a/app/test/playwright/specs/chat-conversation-history.spec.ts+++ b/app/test/playwright/specs/chat-conversation-history.spec.ts@@ -48,7 +48,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -116,7 +116,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();diff --git a/app/test/playwright/specs/chat-harness-cancel.spec.ts b/app/test/playwright/specs/chat-harness-cancel.spec.tsindex f70196c4b4..bd991d7c5b 100644--- a/app/test/playwright/specs/chat-harness-cancel.spec.ts+++ b/app/test/playwright/specs/chat-harness-cancel.spec.ts@@ -41,7 +41,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -109,7 +109,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();@@ -136,7 +136,7 @@ test.describe('Chat Harness - Cancel', () => {await expect(page.getByText(piece, { exact: false })).toHaveCount(0, { timeout: 5_000 });}- const composer = page.getByPlaceholder('Send a message...');+ const composer = page.getByTestId('chat-message-input');await expect(composer).toBeEnabled();await composer.fill('post-cancel probe message');await expect(page.getByTestId('send-message-button')).toBeEnabled();diff --git a/app/test/playwright/specs/chat-harness-scroll-render.spec.ts b/app/test/playwright/specs/chat-harness-scroll-render.spec.tsindex 6477293dd2..847ef6110e 100644--- a/app/test/playwright/specs/chat-harness-scroll-render.spec.ts+++ b/app/test/playwright/specs/chat-harness-scroll-render.spec.ts@@ -50,7 +50,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -117,7 +117,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();diff --git a/app/test/playwright/specs/chat-harness-send-stream.spec.ts b/app/test/playwright/specs/chat-harness-send-stream.spec.tsindex 2fce1c223e..e0b96f2b88 100644--- a/app/test/playwright/specs/chat-harness-send-stream.spec.ts+++ b/app/test/playwright/specs/chat-harness-send-stream.spec.ts@@ -45,7 +45,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -113,7 +113,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();diff --git a/app/test/playwright/specs/chat-harness-subagent.spec.ts b/app/test/playwright/specs/chat-harness-subagent.spec.tsindex 4a8459d4c0..65d0018f82 100644--- a/app/test/playwright/specs/chat-harness-subagent.spec.ts+++ b/app/test/playwright/specs/chat-harness-subagent.spec.ts@@ -62,7 +62,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -130,7 +130,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();diff --git a/app/test/playwright/specs/chat-harness-wallet-flow.spec.ts b/app/test/playwright/specs/chat-harness-wallet-flow.spec.tsindex 450b7a1016..3f468fb53e 100644--- a/app/test/playwright/specs/chat-harness-wallet-flow.spec.ts+++ b/app/test/playwright/specs/chat-harness-wallet-flow.spec.ts@@ -84,7 +84,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -152,7 +152,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();diff --git a/app/test/playwright/specs/chat-management-functional.spec.ts b/app/test/playwright/specs/chat-management-functional.spec.tsindex 526f672279..196b30343f 100644--- a/app/test/playwright/specs/chat-management-functional.spec.ts+++ b/app/test/playwright/specs/chat-management-functional.spec.ts@@ -61,7 +61,7 @@ async function openChat(page: Page, userId: string): Promise<void> {await bootAuthenticatedPage(page, userId, '/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function newThread(page: Page): Promise<string> {@@ -112,12 +112,12 @@ test.describe('Chat management functional coverage', () => {await attachTxt();await expect(page.getByText('notes.txt')).toBeVisible();- await page.getByPlaceholder('Send a message...').fill('Summarize this file');+ await page.getByTestId('chat-message-input').fill('Summarize this file');await page.getByTestId('send-message-button').click();await expect(page.getByText('Attachment received by the assistant.')).toBeVisible({timeout: 30_000,});- await expect(page.getByPlaceholder('Send a message...')).toBeEnabled();+ await expect(page.getByTestId('chat-message-input')).toBeEnabled();await expect.poll(diff --git a/app/test/playwright/specs/chat-multi-tool-round.spec.ts b/app/test/playwright/specs/chat-multi-tool-round.spec.tsindex 52f0ea42f6..98943e66ee 100644--- a/app/test/playwright/specs/chat-multi-tool-round.spec.ts+++ b/app/test/playwright/specs/chat-multi-tool-round.spec.ts@@ -78,7 +78,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -146,7 +146,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();diff --git a/app/test/playwright/specs/chat-tool-call-flow.spec.ts b/app/test/playwright/specs/chat-tool-call-flow.spec.tsindex b0b3c8784f..5d697dc318 100644--- a/app/test/playwright/specs/chat-tool-call-flow.spec.ts+++ b/app/test/playwright/specs/chat-tool-call-flow.spec.ts@@ -68,7 +68,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -136,7 +136,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();diff --git a/app/test/playwright/specs/chat-tool-error-recovery.spec.ts b/app/test/playwright/specs/chat-tool-error-recovery.spec.tsindex 36666cdb19..0d7afc8982 100644--- a/app/test/playwright/specs/chat-tool-error-recovery.spec.ts+++ b/app/test/playwright/specs/chat-tool-error-recovery.spec.ts@@ -31,7 +31,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -99,7 +99,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();@@ -148,7 +148,7 @@ test.describe('Chat Tool Error Recovery', () => {}).toBeNull();- const composer = page.getByPlaceholder('Send a message...');+ const composer = page.getByTestId('chat-message-input');await expect(composer).toBeEnabled();await setMockBehavior('llmStreamScript', '');diff --git a/app/test/playwright/specs/conversations-web-channel-flow.spec.ts b/app/test/playwright/specs/conversations-web-channel-flow.spec.tsindex be1388e58a..0b5ba217d1 100644--- a/app/test/playwright/specs/conversations-web-channel-flow.spec.ts+++ b/app/test/playwright/specs/conversations-web-channel-flow.spec.ts@@ -44,7 +44,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -112,7 +112,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();diff --git a/app/test/playwright/specs/core-port-conflict-recovery.spec.ts b/app/test/playwright/specs/core-port-conflict-recovery.spec.tsindex ee47c8a4bf..87bd7dfb61 100644--- a/app/test/playwright/specs/core-port-conflict-recovery.spec.ts+++ b/app/test/playwright/specs/core-port-conflict-recovery.spec.ts@@ -11,7 +11,7 @@ test.describe('Core port conflict recovery', () => {test('startup-integrity check reaches a usable screen', async ({ page }) => {await waitForAppReady(page);await expect(- page.locator('[data-testid="send-message-button"], [data-testid="onboarding-welcome-step"]')+ page.locator('[data-testid="chat-message-input"], [data-testid="onboarding-welcome-step"]')).toBeVisible();});diff --git a/app/test/playwright/specs/cron-jobs-flow.spec.ts b/app/test/playwright/specs/cron-jobs-flow.spec.tsindex e0694b2f4b..03b0779f10 100644--- a/app/test/playwright/specs/cron-jobs-flow.spec.ts+++ b/app/test/playwright/specs/cron-jobs-flow.spec.ts@@ -21,7 +21,7 @@ test.describe('Cron jobs settings panel', () => {test('chat surface is reachable after login', async ({ page }) => {// Home folded into the unified chat surface: post-login landing is /chat.await waitForAppReady(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();});test('cron jobs panel renders in the browser lane and surfaces the current fallback state', async ({diff --git a/app/test/playwright/specs/harness-channel-bridge-flow.spec.ts b/app/test/playwright/specs/harness-channel-bridge-flow.spec.tsindex 7881325882..e14876490d 100644--- a/app/test/playwright/specs/harness-channel-bridge-flow.spec.ts+++ b/app/test/playwright/specs/harness-channel-bridge-flow.spec.ts@@ -32,7 +32,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -100,7 +100,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();diff --git a/app/test/playwright/specs/harness-composio-tool-flow.spec.ts b/app/test/playwright/specs/harness-composio-tool-flow.spec.tsindex 0974f57ed3..86b6a441f9 100644--- a/app/test/playwright/specs/harness-composio-tool-flow.spec.ts+++ b/app/test/playwright/specs/harness-composio-tool-flow.spec.ts@@ -57,7 +57,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -125,7 +125,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();diff --git a/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts b/app/test/playwright/specs/harness-cron-prompt-flow.spec.tsindex bfffe044d1..157f661afb 100644--- a/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts+++ b/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts@@ -43,7 +43,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -102,7 +102,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();diff --git a/app/test/playwright/specs/harness-search-tool-flow.spec.ts b/app/test/playwright/specs/harness-search-tool-flow.spec.tsindex 472d32fbbc..cb4bb7c017 100644--- a/app/test/playwright/specs/harness-search-tool-flow.spec.ts+++ b/app/test/playwright/specs/harness-search-tool-flow.spec.ts@@ -43,7 +43,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -111,7 +111,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();diff --git a/app/test/playwright/specs/navigation-smoothness.spec.ts b/app/test/playwright/specs/navigation-smoothness.spec.tsindex f299d0d4ef..d8faae1c5b 100644--- a/app/test/playwright/specs/navigation-smoothness.spec.ts+++ b/app/test/playwright/specs/navigation-smoothness.spec.ts@@ -61,7 +61,7 @@ test.describe('Navigation Smoothness', () => {await page.goto('/#/home');await waitForAppReady(page);await expect(page.locator('[data-walkthrough="home-card"]')).toBeVisible();- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();await expect.poll(async () => page.evaluate(() => window.location.hash)).toMatch(/^#\/chat/);});});diff --git a/app/test/playwright/specs/skill-execution-flow.spec.ts b/app/test/playwright/specs/skill-execution-flow.spec.tsindex 66e5cb163c..479994a81a 100644--- a/app/test/playwright/specs/skill-execution-flow.spec.ts+++ b/app/test/playwright/specs/skill-execution-flow.spec.ts@@ -10,7 +10,7 @@ test.describe('Skill discovery (UI + core RPC)', () => {test('lands the user on a logged-in shell', async ({ page }) => {await waitForAppReady(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();});test('core.ping responds over the same JSON-RPC URL the UI uses', async () => {diff --git a/app/test/playwright/specs/user-journey-full-task.spec.ts b/app/test/playwright/specs/user-journey-full-task.spec.tsindex a8e31c71a0..25d6a14ed4 100644--- a/app/test/playwright/specs/user-journey-full-task.spec.ts+++ b/app/test/playwright/specs/user-journey-full-task.spec.ts@@ -34,7 +34,7 @@ async function openChat(page: Page): Promise<void> {await page.goto('/#/chat');await waitForAppReady(page);await dismissWalkthroughIfPresent(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function selectedThreadId(page: Page): Promise<string | null> {@@ -102,7 +102,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {async function sendMessage(page: Page, prompt: string): Promise<void> {await waitForSocketConnected(page);await dismissWalkthroughIfPresent(page);- await page.getByPlaceholder('Send a message...').fill(prompt);+ await page.getByTestId('chat-message-input').fill(prompt);await dismissWalkthroughIfPresent(page);await expect(page.getByTestId('send-message-button')).toBeEnabled();await page.getByTestId('send-message-button').click();diff --git a/app/test/playwright/specs/user-journey-settings-round-trip.spec.ts b/app/test/playwright/specs/user-journey-settings-round-trip.spec.tsindex 4c3217002a..60ff46bd9a 100644--- a/app/test/playwright/specs/user-journey-settings-round-trip.spec.ts+++ b/app/test/playwright/specs/user-journey-settings-round-trip.spec.ts@@ -41,7 +41,7 @@ test.describe('User journey - settings round-trip', () => {await expect.poll(async () => page.evaluate(() => window.location.hash), { timeout: PANEL_TIMEOUT }).toMatch(/^#\/chat/);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();});for (const panel of panels) {diff --git a/app/test/playwright/specs/voice-mode.spec.ts b/app/test/playwright/specs/voice-mode.spec.tsindex 23d12e2b6e..f474954b9d 100644--- a/app/test/playwright/specs/voice-mode.spec.ts+++ b/app/test/playwright/specs/voice-mode.spec.ts@@ -24,7 +24,7 @@ async function openChat(page: Page): Promise<void> {await skipButton.first().click({ force: true });await expect(skipButton.first()).toBeHidden();}- await expect(page.getByPlaceholder('Send a message...')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();}async function installGetUserMediaError(page: Page, name: string): Promise<void> {@@ -77,8 +77,8 @@ test.describe('Voice mode integration', () => {await switchChatIntoMicComposer(page);await page.getByRole('button', { name: 'Switch to text' }).click();- await expect(page.getByPlaceholder('Send a message...')).toBeVisible();- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();});test('permission-denied getUserMedia shows a specific voice-transcription error', async ({diff --git a/app/test/playwright/specs/webhooks-ingress-flow.spec.ts b/app/test/playwright/specs/webhooks-ingress-flow.spec.tsindex 0b49c23d5d..c86fdabe44 100644--- a/app/test/playwright/specs/webhooks-ingress-flow.spec.ts+++ b/app/test/playwright/specs/webhooks-ingress-flow.spec.ts@@ -10,7 +10,7 @@ test.describe('Webhooks ingress surface (stub-level)', () => {test('reaches the app shell after onboarding', async ({ page }) => {await waitForAppReady(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();});test('exposes the stub webhook RPC surface with stable result and log shapes', async () => {diff --git a/app/test/playwright/specs/webhooks-tunnel-flow.spec.ts b/app/test/playwright/specs/webhooks-tunnel-flow.spec.tsindex 73ccf6caf9..eea8ae904f 100644--- a/app/test/playwright/specs/webhooks-tunnel-flow.spec.ts+++ b/app/test/playwright/specs/webhooks-tunnel-flow.spec.ts@@ -62,7 +62,7 @@ test.describe('Webhook tunnel CRUD (UI + core RPC + mock backend)', () => {test('reached the logged-in shell after onboarding', async ({ page }) => {await waitForAppReady(page);- await expect(page.getByTestId('send-message-button')).toBeVisible();+ await expect(page.getByTestId('chat-message-input')).toBeVisible();});test('creates a tunnel, lists it, deletes it, and matches mock-backend traffic', async () => {diff --git a/src/openhuman/inference/tokenjuice/mod.rs b/src/openhuman/inference/tokenjuice/mod.rsindex 76b915a13d..4200ec4446 100644--- a/src/openhuman/inference/tokenjuice/mod.rs+++ b/src/openhuman/inference/tokenjuice/mod.rs@@ -79,7 +79,6 @@ pub async fn install_from_config(config: &crate::openhuman::config::Config) -> Rpub(super) async fn proxy(config: &crate::openhuman::config::Config,) -> Result<tinybus::Proxy, String> {- #[cfg(test)]let config = {let mut test_config = config.clone();if let Some(path) = std::env::var_os("TINYJUICE_TEST_MODULE") {@@ -96,7 +95,6 @@ pub(super) async fn proxy(}test_config};- #[cfg(test)]let config = &config;crate::openhuman::modules::ensure_loaded(config, "tinyjuice").await?;