From e17668caba93336353f7cc5bf25e25657932676b Mon Sep 17 00:00:00 2001 From: samtiz Date: Tue, 8 Jul 2025 11:57:53 +0900 Subject: [PATCH 1/4] release v0.2.2 --- .github/workflows/build.yml | 12 +++++++++++- README.md | 2 -- package.json | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b8ae04a..8689597 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,4 +31,14 @@ jobs: - name: 🖥️ Build Electron app # Run Electron build script from root directory - run: npm run build \ No newline at end of file + run: npm run build + + - name: 🚨 Send failure notification to Slack + if: failure() + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_CHANNEL: general + SLACK_TITLE: "🚨 Build Failed" + SLACK_MESSAGE: "😭 Build failed for `${{ github.repository }}` repo on main branch." + SLACK_COLOR: 'danger' + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/README.md b/README.md index 8397aec..e166914 100644 --- a/README.md +++ b/README.md @@ -117,12 +117,10 @@ We have a list of [help wanted](https://github.com/pickle-com/glass/issues?q=is% | Status | Issue | Description | |--------|--------------------------------|---------------------------------------------------| -| 🚧 WIP | Code Refactoring | Refactoring the entire codebase for better maintainability. | | 🚧 WIP | Windows Build | Make Glass buildable & runnable in Windows | | 🚧 WIP | Local LLM Support | Supporting Local LLM to power AI answers | | 🚧 WIP | AEC Improvement | Transcription is not working occasionally | | 🚧 WIP | Firebase Data Storage Issue | Session & ask should be saved in firebase for signup users | -| 🚧 WIP | Login Issue | Currently breaking when switching between local and sign-in mode | | 🚧 WIP | Liquid Glass | Liquid Glass UI for MacOS 26 | ### Changelog diff --git a/package.json b/package.json index 52d6fab..2269777 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pickle-glass", "productName": "Glass", - "version": "0.2.1", + "version": "0.2.2", "description": "Cl*ely for Free", "main": "src/index.js", "scripts": { From 2e259fcb8f7ddadd0d084e0988ed7573c39dbe8f Mon Sep 17 00:00:00 2001 From: jhyang0 Date: Tue, 8 Jul 2025 15:47:04 +0900 Subject: [PATCH 2/4] summary fixed --- src/features/listen/summary/summaryService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/listen/summary/summaryService.js b/src/features/listen/summary/summaryService.js index 9f3a811..53d3b79 100644 --- a/src/features/listen/summary/summaryService.js +++ b/src/features/listen/summary/summaryService.js @@ -115,7 +115,7 @@ Please build upon this context while analyzing the new conversation segments. await sessionRepository.touch(this.currentSessionId); } - const modelInfo = await getCurrentModelInfo('llm'); + const modelInfo = await getCurrentModelInfo(null, { type: 'llm' }); if (!modelInfo || !modelInfo.apiKey) { throw new Error('AI model or API key is not configured.'); } From e5d301cc9c9a2cf6879c197221a56b905134d2fa Mon Sep 17 00:00:00 2001 From: jhyang0 Date: Tue, 8 Jul 2025 16:01:11 +0900 Subject: [PATCH 3/4] stt error fixed --- src/features/listen/stt/sttService.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/features/listen/stt/sttService.js b/src/features/listen/stt/sttService.js index 493c014..68d8ef2 100644 --- a/src/features/listen/stt/sttService.js +++ b/src/features/listen/stt/sttService.js @@ -320,14 +320,20 @@ class SttService { } async sendSystemAudioContent(data, mimeType) { - const provider = await this.getAiProvider(); - const isGemini = provider === 'gemini'; - if (!this.theirSttSession) { throw new Error('Their STT session not active'); } - const payload = isGemini + let modelInfo = this.modelInfo; + if (!modelInfo) { + console.warn('[SttService] modelInfo not found, fetching on-the-fly as a fallback...'); + modelInfo = await getCurrentModelInfo(null, { type: 'stt' }); + } + if (!modelInfo) { + throw new Error('STT model info could not be retrieved.'); + } + + const payload = modelInfo.provider === 'gemini' ? { audio: { data, mimeType: mimeType || 'audio/pcm;rate=24000' } } : data; From 013a033051dfe225483a811e9b1bb78cd3f338b5 Mon Sep 17 00:00:00 2001 From: jhyang0 Date: Tue, 8 Jul 2025 16:06:46 +0900 Subject: [PATCH 4/4] stt error fixed --- src/features/listen/stt/sttService.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/features/listen/stt/sttService.js b/src/features/listen/stt/sttService.js index 68d8ef2..e11d579 100644 --- a/src/features/listen/stt/sttService.js +++ b/src/features/listen/stt/sttService.js @@ -74,7 +74,7 @@ class SttService { } flushMyCompletion() { - if (!this.myCompletionBuffer.trim()) return; + if (!this.modelInfo || !this.myCompletionBuffer.trim()) return; const finalText = this.myCompletionBuffer.trim(); @@ -102,7 +102,7 @@ class SttService { } flushTheirCompletion() { - if (!this.theirCompletionBuffer.trim()) return; + if (!this.modelInfo || !this.theirCompletionBuffer.trim()) return; const finalText = this.theirCompletionBuffer.trim(); @@ -176,6 +176,11 @@ class SttService { // console.log(`[SttService] Initializing STT for provider: ${modelInfo.provider}`); const handleMyMessage = message => { + if (!this.modelInfo) { + console.log('[SttService] Ignoring message - session already closed'); + return; + } + if (this.modelInfo.provider === 'gemini') { const text = message.serverContent?.inputTranscription?.text || ''; if (text && text.trim()) { @@ -217,6 +222,11 @@ class SttService { }; const handleTheirMessage = message => { + if (!this.modelInfo) { + console.log('[SttService] Ignoring message - session already closed'); + return; + } + if (this.modelInfo.provider === 'gemini') { const text = message.serverContent?.inputTranscription?.text || ''; if (text && text.trim()) {