You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(chat): drop code the voice removal left unreachable (#6218)
Full-file cleanup pass over the files voice mode was removed from.
- /api/speech/token: with the chatId branch gone, billingAttribution is
always resolved, so four `billingAttribution ? ... : ...` guards and
the checkActorUsageLimits fallback were unreachable. Removed, along
with the now-unused imports and test mock.
- chat.tsx: the inputValue state had one remaining writer (`''`) and no
reader — ChatInput has owned its own input value since it went
uncontrolled, and removing the voice-transcript caller left
handleSendMessage always receiving an explicit message.
- use-chat-streaming: messageIdMap was written in three frame handlers
and never read, and setIsStreamingResponse was returned but never
destructured by the only consumer.
- Comments: dropped JSX section labels that restate the element beneath
them and TSDoc that restates the identifier; narrowed the speech
contract's workspaceId doc, which existed to contrast with the
removed chatId field.
0 commit comments