mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 14:50:00 -07:00
Fix listen button not disabling when agent selected
- Add fallback direct DOM manipulation in agents.js selectAgent() - Fix setListeningPostRunning to check agent mode before re-enabling button - Add debug logging for button state changes
This commit is contained in:
@@ -2474,8 +2474,10 @@ function setListeningPostRunning(isRunning, agentId = null) {
|
||||
// Update status
|
||||
updateScannerDisplay('IDLE', 'var(--text-secondary)');
|
||||
|
||||
// Re-enable listen button
|
||||
updateListenButtonState(false);
|
||||
// Only re-enable listen button if we're in local mode
|
||||
// (agent mode can't stream audio over HTTP)
|
||||
const isAgentMode = typeof currentAgent !== 'undefined' && currentAgent !== 'local';
|
||||
updateListenButtonState(isAgentMode);
|
||||
|
||||
// Clear polling
|
||||
if (listeningPostPollTimer) {
|
||||
|
||||
Reference in New Issue
Block a user