refactor(app): remove debug logging from voice and UI components
This commit is contained in:
@@ -103,23 +103,6 @@ export function AgentInputArea({
|
||||
const { client, isConnected, snapshot } = useHostRuntimeSession(serverId)
|
||||
const toast = useToast()
|
||||
const voice = useVoiceOptional()
|
||||
console.log("[AgentInputArea] render", {
|
||||
serverId,
|
||||
agentId,
|
||||
isConnected,
|
||||
isVoiceMode: voice?.isVoiceMode ?? false,
|
||||
isVoiceSwitching: voice?.isVoiceSwitching ?? false,
|
||||
isMuted: voice?.isMuted ?? false,
|
||||
})
|
||||
console.log("[AgentInputArea] voice_snapshot", {
|
||||
serverId,
|
||||
agentId,
|
||||
isVoiceMode: voice?.isVoiceMode ?? false,
|
||||
isVoiceSwitching: voice?.isVoiceSwitching ?? false,
|
||||
isMuted: voice?.isMuted ?? false,
|
||||
activeServerId: voice?.activeServerId ?? null,
|
||||
activeAgentId: voice?.activeAgentId ?? null,
|
||||
})
|
||||
const isDictationReady =
|
||||
isConnected &&
|
||||
(snapshot?.agentDirectoryStatus === 'ready' ||
|
||||
@@ -168,19 +151,6 @@ export function AgentInputArea({
|
||||
`message-input:${serverId}:${agentId}:${Math.random().toString(36).slice(2)}`
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
console.log("[AgentInputArea] mount", {
|
||||
serverId,
|
||||
agentId,
|
||||
})
|
||||
return () => {
|
||||
console.log("[AgentInputArea] unmount", {
|
||||
serverId,
|
||||
agentId,
|
||||
})
|
||||
}
|
||||
}, [agentId, serverId])
|
||||
|
||||
const autocomplete = useAgentAutocomplete({
|
||||
userInput,
|
||||
cursorIndex,
|
||||
|
||||
Reference in New Issue
Block a user