mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
feat(frontend): give the composer its own strip and let voice mode skip reading replies
This commit is contained in:
1 parent
5f4cf63f8b
commit
6904cfbc58
15 files changed
+341
-55
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user