Repository navigation
feat(agent): integrate Live voice session controls into AgentDemoScreen - #100
Conversation
|
Thanks for wiring this up! One thing I'd like to change is how a Live session relates to the current thread. Right now, tapping Live continues the current thread, but the session isn't really a continuation of it:
Suggested direction: Start a new thread for Live. It's fine for Live to use a different model, but then it should get its own thread, recorded with the Live model, instead of being added to the current one. WDYT? |
…e assistant setup failure
|
Makes complete sense — updated in e2ae27e! Each new Live session now creates its own dedicated thread recorded with |
Summary
Connects the chat UI (
AgentDemoViewModel→AgentDemoScreen) to theVoiceInteractionSessionLive voice overlay landed in #91:AgentUiState&AgentDemoViewModel:LiveAgentOrchestrator.activeSessiondirectly to exposeliveStatuson the current thread andisAnotherThreadLiveBusywhen another thread is using a Live session.CheckAudioPermissionUseCaseandCheckVoiceServiceActiveUseCasebefore emittingLiveSetupPrompt.LaunchAssistSession(threadId, targetPackageName), and surfaces error dialogs if microphone permission is denied, assistant settings are unavailable, orActivity.showAssist(...)fails.AgentDemoScreen:threadIdand optional@apptarget toActivity.showAssist(AgentVoiceInteractionSession.createSessionArgs(...)).Test Plan
./gradlew spotlessCheck./gradlew test(AgentDemoViewModelTest)./gradlew validateScreenshotTest(AgentDemoScreenScreenshotTest)./gradlew assembleDebug assembleRelease