Launch the default agent from the agents widget right-click (#6759)

This commit is contained in:
David Heinemeier Hansson
2026-08-12 18:46:17 +02:00
committed by GitHub
parent 2cc3510d2a
commit f5893ddd9e
4 changed files with 25 additions and 3 deletions
+6 -1
View File
@@ -59,6 +59,11 @@ Panel {
usage.refreshAll(true)
}
function launchAgent() {
if (root.bar) root.bar.run("omarchy-agent --pick")
root.close()
}
// ---------------------------------------------------------------- limits
//
// Both providers report the same two shapes: a short rolling session window
@@ -337,7 +342,7 @@ Panel {
text: "󱚣"
active: root.alarming
onPressed: function(buttonCode) {
if (buttonCode === Qt.RightButton) root.refreshNow()
if (buttonCode === Qt.RightButton) root.launchAgent()
else if (buttonCode === Qt.MiddleButton) root.selectProvider(root.providerIndex + 1)
else root.toggle()
}