feat(tui): add voice input with Alt+V shortcut#17487
feat(tui): add voice input with Alt+V shortcut#17487lemantorus wants to merge 3 commits intoanomalyco:devfrom
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: Potential Related PRs FoundThe current PR #17487 addresses voice input functionality in the TUI. I found several related PRs that may be relevant:
These PRs appear to be related to the voice input feature, but they likely represent different iterations or approaches to voice functionality. PR #17487 is specifically a fix for enabling voice input that was broken, rather than a duplicate of an open issue with the same fix in progress. Recommendation: Check if PRs #9264 or #11345 are open or merged to understand if this fix (#17487) supersedes them or builds upon previous voice implementation work. |
|
I hereby sign off this contribution under the developer certificate of origin (DCO). |
- Move tui() call inside Instance.provide() in thread.ts and attach.ts - This fixes 'No context found for instance' error when voice provider initializes and tries to access Config.get() - Voice provider now initializes lazily on first Alt+V press Signed-off-by: lemantorus <github@lemantorus.com>
The voice settings command was only registered in the session route, making it unavailable on the home screen. Signed-off-by: lemantorus <github@lemantorus.com>
- Add VoiceContextProvider to app.tsx - Add Alt+V keybind handler in prompt component - Add VoiceIndicator to show recording/transcription status - Add voice config schema to config.ts Signed-off-by: lemantorus <github@lemantorus.com>
88e1704 to
6dc6bfb
Compare
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
What this PR does:
This PR fixes the voice input feature which was broken with "No context found for instance" error:
Root cause: VoiceContextProvider initialized immediately and called Config.get() which requires Instance context. But TUI was running outside Instance.provide() context.
Fix:
New feature: Adds voice input with Alt+V shortcut using Groq/OpenAI Whisper
Why it works: By running TUI inside Instance.provide(), all config access works correctly. Lazy initialization ensures voice provider loads only when needed.
Screenshots/recordings: Можешь записать скринкаст работы Alt+V
Checklist:
Screenshots:






I sign off this contribution under the developer certificate of origin (DCO).
Closes #14095