feat(frontend): voice input as an experimental per-user settings flag - #5657
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe change adds a persisted user setting for agent voice input, exposes a settings toggle, and combines that setting with the ChangesAgent voice input
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant FeatureFlags
participant agentVoiceInputEnabledAtom
participant useVoiceComposer
participant isAgentVoiceInputAvailable
User->>FeatureFlags: Enable Voice input
FeatureFlags->>agentVoiceInputEnabledAtom: Store setting
useVoiceComposer->>agentVoiceInputEnabledAtom: Read setting
useVoiceComposer->>isAgentVoiceInputAvailable: Check setting and environment flag
isAgentVoiceInputAvailable-->>useVoiceComposer: Return availability
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
3032e0d to
52ef088
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: f57c8664-18d0-49fc-895d-e7f3723fc4c7
📒 Files selected for processing (5)
web/oss/src/components/AgentChatSlice/assets/constants.test.tsweb/oss/src/components/AgentChatSlice/assets/constants.tsweb/oss/src/components/AgentChatSlice/hooks/useVoiceComposer.tsweb/oss/src/components/pages/settings/FeatureFlags/FeatureFlags.tsxweb/oss/src/state/settings/featureFlags.ts
Railway Preview Environment
Updated at 2026-08-03T16:42:39.122Z |
Voice input (dictation in the agent chat composer) becomes a per-user experimental toggle in Settings → Feature flags, default off, persisted per user like the neighboring flags. The env variable stays as a dev-stack override (either switch turns the feature on). Nothing else about the recorder or its interplay with attachments changes.
Before: voice input is invisible unless the deployment bakes
NEXT_PUBLIC_AGENT_VOICE_INPUT=trueinto the frontend build; users have no way to try it.After: any user can turn it on for themselves under Settings → Feature flags → "Voice input"; it stays off for everyone else.
New user-visible strings, complete inventory: the flag label "Voice input" and its description "Dictate messages in the agent chat."
Covered by unit tests for the availability combinator (setting off + env off, setting on, env on). Verified with
tsgoand the web unit suite (23 files, 145 tests green).Intended for the next release. Trial plan: deploy this branch to staging, turn the flag on for a user, run the dictation QA pass.
https://claude.ai/code/session_01McMogkcDRV7UpSAjfd8VKG