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()
}
function onBypassRequested(sessionId, id, cmd, cwd) {
// Show bypass request if it's for the active session
if (sessionId === ollie.activeSessionId) {
chatPane.pendingBypass = {
sessionId: sessionId,
id: id,
cmd: cmd,
cwd: cwd
}
chatPane.hasPendingBypass = true
// Show bypass request immediately (no session filter - GUI is global)
chatPane.pendingBypass = {
sessionId: sessionId,
id: id,
cmd: cmd,
cwd: cwd
}
chatPane.hasPendingBypass = true
}
}