Files
openchamber/packages/vscode
gsxdsmandBohdan Triapitsyn 1ed5316ac7 feat(voice): add voice input/output support with multiple providers (#281)
* feat(voice): add voice input/output support with multiple providers

- Add BrowserVoiceButton component for Web Speech API voice input
- Add VoiceProvider context for managing voice state across the app
- Add TTS (Text-to-Speech) support with browser, macOS Say, and OpenAI providers
- Add message TTS buttons to read assistant messages aloud
- Add VoiceSettings page in OpenChamber settings
- Add server endpoints for TTS and summarization services
- Include slider component for voice rate/pitch/volume controls
- Add hidden session support for background voice operations
- Add Caddyfile for HTTPS support (required for microphone access)

* fix: Build errors fixed and removed outdated ElevenLabs test code.

* refactor(voice): use zen API with gpt-5-nano for TTS summarization

Replace the hidden session + OpenCode SDK approach with direct calls
to the opencode.ai zen API (same pattern used for commit message and
PR description generation).

- Rewrite summarization-service.js to call zen/v1/responses with gpt-5-nano
- Remove hidden session logic (hiddenSession.ts, sessionStore filtering)
- Remove summarizeModel setting and model selector from VoiceSettings
- Simplify client-side summarize.ts to no longer pass model params
- Clean up callers in useMessageTTS and useBrowserVoice

* fix(voice): remove false 'voice not supported' warning in settings

Mobile Safari does support voice but the isSupported check was
incorrectly flagging it. Remove the warning banner entirely.

* feat(voice): add configurable summary length limit for TTS output

Add a slider (50-2000 chars) in voice settings to control max summary
length. The limit is passed through the summarize endpoint and speak
endpoint to the zen API prompt, with token budget scaled accordingly.

* fix(voice): add diagnostic logging and sanitize TTS fallback

Add console logging throughout the summarization flow (client + server)
to trace why text may not be summarized. Fix silent error swallowing in
/api/tts/speak. Always apply sanitizeForTTS even when summarization is
disabled so raw markdown/code is never spoken verbatim.

* fix(voice): fix token budget starving model of output tokens

max_output_tokens includes both reasoning and output tokens. With
effort:'low', reasoning alone consumes ~128 tokens, so a budget of
100 left zero tokens for the actual summary text. Use a fixed 1000
token budget (matching commit message generation) and control output
length via the prompt's character limit instruction instead.

* chore(voice): remove diagnostic logging from summarization flow

* fix(voice): don't request mic permission on mobile page load

Remove the useEffect that pre-requested microphone permission when the
BrowserVoiceButton component mounted on mobile. This caused an unwanted
permission prompt immediately on page load before the user tapped the
mic icon. Permission is now only requested on explicit user interaction.

* fix(voice): remove unused BrowserVoiceButton binding

* fix(voice): desktop mic flow + non-continuous draft mode

* fix(voice): stabilize continuous loop and polish controls

* feat(settings): mark voice section experimental

---------

Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
2026-02-09 23:55:10 +02:00
..
2025-12-13 16:34:17 +02:00
2026-02-09 14:08:06 +02:00
2025-12-13 16:34:17 +02:00
2026-02-09 14:08:06 +02:00
2025-12-25 17:57:31 +02:00

OpenChamber VS Code Extension

GitHub stars GitHub forks GitHub release Discord Support the project

OpenChamber inside VS Code: embeds the OpenChamber chat UI in the activity bar and connects it to the OpenCode API.

VS Code Extension

Features

OpenChamber UI

  • Smart tool visualization (inline diffs, file trees, results highlighting)
  • Rich permission cards with syntax-highlighted operation previews
  • Per-agent permission modes (ask/allow/full) per session
  • Branchable conversations: start a new session from any assistant response
  • Task tracker UI with live progress and tool summaries
  • Model selection UX (favorites, recents, and configurable tool output density)
  • UI scaling controls (font size and spacing)

VS Code Integration

  • Chat UI in activity bar
  • Session management with history
  • File attachments via native VS Code file picker (10MB limit)
  • Click-to-open files from tool output
  • Auto-start opencode instance if not running
  • Workspace-isolated OpenCode instances (different workspaces get unique instances)
  • Adapts to VS Code's light/dark/high-contrast themes

Commands

Command Description
OpenChamber: Focus on Chat View Focus chat panel
OpenChamber: Restart API Connection Restart OpenCode API process
OpenChamber: Show OpenCode Status Provide debug info useful for development or bug report

Configuration

Setting Default Description
openchamber.apiUrl http://localhost:47339 OpenCode API server URL. Not required by default. Spawns its own process when not set.

Requirements

  • OpenCode CLI installed and available in PATH (or set via OPENCODE_BINARY env var)
  • VS Code 1.85.0+

Development

bun install
bun run --cwd packages/vscode build            # build extension + webview
cd packages/vscode && bunx vsce package --no-dependencies

Local Install

  • After packaging: code --install-extension packages/vscode/openchamber-*.vsix
  • Or in VS Code: Extensions panel → "Install from VSIX…" and select the file