diff --git a/gui/main.qml b/gui/main.qml index 5f44402..b6d74db 100644 --- a/gui/main.qml +++ b/gui/main.qml @@ -64,7 +64,10 @@ ApplicationWindow { onActivated: { if (renamingIndex >= 0) { cancelRename() - } else if (ollie.activeState !== "idle") { + } else { + // Always send stop - server-side Interrupt() is safe to call + // on an idle agent (no-op). This avoids races where the GUI's + // cached activeState is stale. ollie.interrupt() } }