fix(deployed-chat): voice mode#2358
Merged
icecrasher321 merged 4 commits intostagingfrom Dec 13, 2025
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile OverviewGreptile SummaryFixed voice mode authentication failure by replacing hybrid auth with chat-specific authentication in the TTS proxy endpoint, and enhanced session security by including password hash in auth tokens to invalidate sessions on password change. Key Changes:
Non-critical changes:
Confidence Score: 3/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant VoiceInterface
participant Chat
participant AudioHook
participant TTSProxy
participant DB
participant ElevenLabs
User->>Chat: Authenticate with password/email
Chat->>DB: Validate credentials
DB-->>Chat: Auth successful
Chat->>Chat: setChatAuthCookie(chatId, authType, password)
Note over Chat: Cookie includes password hash for invalidation
User->>VoiceInterface: Start voice mode
VoiceInterface->>Chat: Send voice transcript
Chat->>AudioHook: streamTextToAudio(text, voiceId, chatId)
AudioHook->>TTSProxy: POST /api/proxy/tts/stream
Note over AudioHook,TTSProxy: Includes chatId in request body
TTSProxy->>DB: Query chat record (id, authType, password)
DB-->>TTSProxy: Return chat data
TTSProxy->>TTSProxy: validateChatAuth(request, chatId)
Note over TTSProxy: Check authType and validate cookie
TTSProxy->>TTSProxy: validateAuthToken(cookie, chatId, password)
Note over TTSProxy: Verify password hash matches
alt Auth valid
TTSProxy->>ElevenLabs: Request TTS stream
ElevenLabs-->>TTSProxy: Audio stream
TTSProxy-->>AudioHook: Audio stream
AudioHook-->>VoiceInterface: Play audio
VoiceInterface-->>User: Hear response
else Auth invalid
TTSProxy-->>AudioHook: 401 Unauthorized
AudioHook-->>User: Error
end
|
Collaborator
Author
|
@greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Voice mode broken because it fails auth check.
Type of Change
Testing
Tested manually.
Checklist