gui: show bypass banner for any session, not just active

The GUI is a global view - show bypass requests immediately
regardless of which session is currently selected.
This commit is contained in:
Levi Neely 2026-10-06 14:07:05 +02:00
parent 7b870443bb
commit ceec28c2b9
1 changed files with 7 additions and 9 deletions

View File

@ -589,16 +589,14 @@ Connections {
if (ollie.activeAgentId) chatPane.loadChat() if (ollie.activeAgentId) chatPane.loadChat()
} }
function onBypassRequested(sessionId, id, cmd, cwd) { function onBypassRequested(sessionId, id, cmd, cwd) {
// Show bypass request if it's for the active session // Show bypass request immediately (no session filter - GUI is global)
if (sessionId === ollie.activeSessionId) { chatPane.pendingBypass = {
chatPane.pendingBypass = { sessionId: sessionId,
sessionId: sessionId, id: id,
id: id, cmd: cmd,
cmd: cmd, cwd: cwd
cwd: cwd
}
chatPane.hasPendingBypass = true
} }
chatPane.hasPendingBypass = true
} }
} }