Fix Stories navigation, sharing, and voice entry

This commit is contained in:
Manjunath committed 2026-11-16 20:12:10 +05:30
1 parent 5418438339
commit 9e9ce1db22
43 files changed
+744 -137

No files matched your search

+3 -1
View File
@@ -34,6 +34,7 @@ export function createVoiceCommands({
supportedProviders,
onProviderChange,
onSessionEvent,
canStartVoice,
createCard = (options) => new VoiceCardControls(options),
pointer = null,
referents = null,
@@ -49,6 +50,7 @@ export function createVoiceCommands({
let panelMount;
const session = createVoiceSession({
runner,
canStart: (options) => options?.textOnly || canStartVoice?.() !== false,
signal,
createAdapter: (hooks) => {
if (panelHost) actionObserver = panelHost.observeActions(hooks);
@@ -284,7 +286,7 @@ export function createVoiceCommands({
void session.start({ pushToTalk: false });
};
const buttonHandler = () => {
if (adapter.ignoreButtonClick?.()) return;
if (canStartVoice?.() === false || adapter.ignoreButtonClick?.()) return;
chat?.close();
if (session.isActive() && adapter.getStartOptions?.().textOnly) {
session.stop();