From 38542a1f513740559660a468ffbf68ed082b2381 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 12 Aug 2026 22:37:16 +0200 Subject: [PATCH] Open the agent in a normal tiled window (#6769) The floating rule pinned every agent terminal to 1200x800, which overflows small and scaled displays: window rules see logical pixels, so a 2560x1440 monitor at scale 1.6 is only 1600x900 and the window covered 89% of its height. Tiling drops the fixed size along with the rule, and the shared app-id still earns the terminal tag from terminals.lua. --- bin/omarchy-agent | 2 +- default/hypr/apps/agent.lua | 3 --- test/shell.d/default-agent-test.sh | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 default/hypr/apps/agent.lua diff --git a/bin/omarchy-agent b/bin/omarchy-agent index cb5cbd05..6b145c8b 100755 --- a/bin/omarchy-agent +++ b/bin/omarchy-agent @@ -100,6 +100,6 @@ if [[ $inline == "true" ]]; then exec "${command[@]}" else # A fixed app-id rather than the default org.omarchy., so every agent - # window shares one class for default/hypr/apps/agent.lua to float. + # window shares one class for window rules and themes to single out. exec omarchy-launch-tui --app-id=org.omarchy.agent "${command[@]}" fi diff --git a/default/hypr/apps/agent.lua b/default/hypr/apps/agent.lua deleted file mode 100644 index 18775342..00000000 --- a/default/hypr/apps/agent.lua +++ /dev/null @@ -1,3 +0,0 @@ --- omarchy-agent gives every agent terminal the same app-id, so this --- floats the keybinding, the menu, and a crash diagnosis alike. -o.window("org\\.omarchy\\.agent", { float = true, center = true, size = { 1200, 800 } }) diff --git a/test/shell.d/default-agent-test.sh b/test/shell.d/default-agent-test.sh index 302c7f13..f86cd747 100644 --- a/test/shell.d/default-agent-test.sh +++ b/test/shell.d/default-agent-test.sh @@ -316,7 +316,7 @@ assert_launched() { local description=$2 shift 2 # Every agent window launches under the same app-id, whichever agent is - # default, so default/hypr/apps/agent.lua can float them all. + # default, so window rules and themes see one class for all of them. local expected=(--app-id=org.omarchy.agent "$@") mapfile -d '' -t actual <"$launch_log"