feat(frontend): give the composer its own strip and let voice mode skip reading replies

This commit is contained in:
Chris Scott committed 2026-11-27 22:26:32 -05:00
1 parent 5f4cf63f8b
commit 6904cfbc58
15 files changed
+341 -55

No files matched your search

+2
View File
@@ -52,6 +52,7 @@ export interface PromptInputFixture {
onPromptChange?: (hasContent: boolean) => void
onSuggestionsOpenChange?: (open: boolean) => void
onVoiceConversationActiveChange?: (active: boolean) => void
trailingAction?: ReactNode
}
export function makeAgent(overrides: Partial<AgentInfo> & { id: string }): AgentInfo {
@@ -153,6 +154,7 @@ export async function renderPromptInput(fixture: PromptInputFixture = {}) {
onSuggestionsOpenChange={active.onSuggestionsOpenChange}
onVoiceConversationActiveChange={active.onVoiceConversationActiveChange}
voiceConversation={active.voiceConversation}
trailingAction={active.trailingAction}
ref={active.promptRef}
/>
</SessionTranscriptContext.Provider>
+3
View File
@@ -22,6 +22,8 @@ export function createVoiceConversationControllerMock(
canStopAgent: false,
hasHeldReading: false,
isEndpointing: false,
readRepliesAloud: true,
canReadRepliesAloud: true,
notice: null,
start: vi.fn(),
exit: vi.fn(),
@@ -30,6 +32,7 @@ export function createVoiceConversationControllerMock(
pause: vi.fn(),
resume: vi.fn(),
stopAgent: vi.fn(),
toggleReadRepliesAloud: vi.fn(),
...overrides,
}
}