docs(25-08): fix voice input wiring — add ChatPanel enableVoiceInput prop

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nexus Dev 2026-04-01 23:55:42 +00:00
parent 00e61f1311
commit 0766f614db

View file

@ -7,6 +7,7 @@ depends_on: ["25-02"]
files_modified:
- ui/src/components/VoiceRecordButton.tsx
- ui/src/components/ChatInput.tsx
- ui/src/components/ChatPanel.tsx
- server/src/routes/chat-files.ts
- .planning/REQUIREMENTS.md
autonomous: true
@ -292,6 +293,7 @@ Note: This uses execFileAsync (promisified execFile) -- NOT exec -- to avoid she
<files>ui/src/components/ChatInput.tsx, .planning/REQUIREMENTS.md</files>
<read_first>
- ui/src/components/ChatInput.tsx
- ui/src/components/ChatPanel.tsx
- ui/src/components/VoiceRecordButton.tsx
- .planning/REQUIREMENTS.md
</read_first>
@ -328,7 +330,10 @@ Note: This uses execFileAsync (promisified execFile) -- NOT exec -- to avoid she
)}
```
2. Update .planning/REQUIREMENTS.md:
2. Update ui/src/components/ChatPanel.tsx:
- Pass `enableVoiceInput={true}` to the `<ChatInput>` component. This makes the voice button visible to users. (If a `localAIEnabled` flag or config exists, gate on that instead; otherwise pass `true` unconditionally — the server returns 503 gracefully if whisper is not installed.)
3. Update .planning/REQUIREMENTS.md:
- Change INPUT-04 from `- [ ] **INPUT-04**` to `- [x] **INPUT-04**`
- In Traceability table, change INPUT-04 from Pending to Complete
- Also change INPUT-02 and INPUT-03 from Pending to Complete if not already (they were implemented in Plan 25-02)
@ -341,6 +346,7 @@ Note: This uses execFileAsync (promisified execFile) -- NOT exec -- to avoid she
- Contains enableVoiceInput prop in the props interface
- Contains handleTranscription callback that inserts text into textarea
- Renders VoiceRecordButton conditionally when enableVoiceInput is true
- ui/src/components/ChatPanel.tsx passes enableVoiceInput={true} to ChatInput
- .planning/REQUIREMENTS.md contains `- [x] **INPUT-02**`
- .planning/REQUIREMENTS.md contains `- [x] **INPUT-03**`
- .planning/REQUIREMENTS.md contains `- [x] **INPUT-04**`