Skip to content

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

test(playwright): add caret and primary slot tests for chat composer

Steven Enamakel31c917e59d7d
diff --git a/app/test/playwright/specs/chat-composer-caret.spec.ts b/app/test/playwright/specs/chat-composer-caret.spec.ts
index d1c13ed3dd..a8dfbd8b03 100644
--- a/app/test/playwright/specs/chat-composer-caret.spec.ts
+++ b/app/test/playwright/specs/chat-composer-caret.spec.ts
@@ -37,8 +37,8 @@
* eliminated. The suspects genuinely were — `useComposerTextBridge` never
* fires, and `ChatComposer.tsx`'s `onChange` is not on this path — but both
* belong to `ChatComposer`, which `/chat` does not mount at all: `Conversations
- * .tsx` renders `assistantUiMainPanel`, and the textarea composer lives in
- * `legacyMainPanel`, reached only in mic-cloud voice mode. The real writer was
+ * .tsx` renders `assistantUiMainPanel`, and the textarea composer was then
+ * reached only in mic-cloud voice mode. The real writer was
* never among the suspects being tested.
*
* # The fix
diff --git a/app/test/playwright/specs/chat-composer-primary-slot.spec.ts b/app/test/playwright/specs/chat-composer-primary-slot.spec.ts
index 781cd13387..8f093c3453 100644
--- a/app/test/playwright/specs/chat-composer-primary-slot.spec.ts
+++ b/app/test/playwright/specs/chat-composer-primary-slot.spec.ts
@@ -4,9 +4,9 @@
*
* # Which composer this is, and why that needed establishing
*
- * `Conversations.tsx:2539` picks `composer === 'mic-cloud' ? legacyMainPanel :
- * assistantUiMainPanel`, and `composer` defaults to `'text'`
- * (`:255`), so `/chat` renders the **assistant-ui** composer. `ChatComposer.tsx`
+ * `Conversations.tsx` renders the assistant-ui panel for every composer, and
+ * `composer` defaults to `'text'` (the `mic-cloud` voice composer replaces only
+ * the input), so `/chat` renders the **assistant-ui** composer. `ChatComposer.tsx`
* is the legacy one. A DOM probe against the running app confirms it: the page
* contains `composer-human-mode` (`AssistantUiChat.tsx:204`) and **not**
* `human-mode-button` (`ChatComposer.tsx:494`), and `chat-message-input` is a