From f9e6785add6a46f2025daed5bd210ba3763f99c6 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Tue, 6 Oct 2026 14:41:09 +0200 Subject: [PATCH] gui: hide bypass banner when switching away from the requesting agent --- kde/gui/ChatPane.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/kde/gui/ChatPane.qml b/kde/gui/ChatPane.qml index 2f9de5e..629480e 100644 --- a/kde/gui/ChatPane.qml +++ b/kde/gui/ChatPane.qml @@ -584,9 +584,19 @@ Connections { target: ollie function onActiveSessionIdChanged() { if (!ollie.activeAgentId) chatPane.loadChat() + // Hide bypass banner if it's not for the now-active session + if (chatPane.pendingBypass && chatPane.pendingBypass.sessionId !== ollie.activeSessionId) { + chatPane.hasPendingBypass = false + } } function onActiveAgentIdChanged() { if (ollie.activeAgentId) chatPane.loadChat() + // Hide bypass banner if it's not for the now-active agent + if (chatPane.pendingBypass && + (chatPane.pendingBypass.sessionId !== ollie.activeSessionId || + chatPane.pendingBypass.agentId !== ollie.activeAgentId)) { + chatPane.hasPendingBypass = false + } } function onBypassRequested(sessionId, agentId, id, cmd, cwd) { // Show bypass request only for the currently active agent