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

+8 -1
View File
@@ -3,6 +3,7 @@ import { t, translateKnown } from '../i18n/index.js';
import { msg } from '../i18n/marker.js';
import { createGeminiAudio } from './geminiAudio.js';
import { RealtimeInput } from './realtimeInput.js';
import { isStoriesOpen } from './realtimeInputPolicy.js';
import { RealtimeRadio } from './realtimeRadio.js';
import { captureViewportImage } from './realtimeViewport.js';
import { createNarrationScheduler } from './narration.js';
@@ -652,7 +653,13 @@ export class GeminiSessionController {
}
async start({ pushToTalk = false } = {}) {
if (this.disposed || this.isActive() || this.signal?.aborted) return;
if (
isStoriesOpen() ||
this.disposed ||
this.isActive() ||
this.signal?.aborted
)
return;
const held = pushToTalk && this.input.pushToTalkKeyHeld;
const spaceHeld = this.input.spaceKeyHeld;
this.stop({ preserveStatus: true });