Add an Agents panel default that launches the selected tab - #10780
Open
itsMrRobot wants to merge 1 commit into
Open
Add an Agents panel default that launches the selected tab#10780itsMrRobot wants to merge 1 commit into
itsMrRobot wants to merge 1 commit into
Conversation
Setup → Defaults → Agent → Agents panel records a sentinel instead of pinning one CLI. The bar widget persists the selected subscription, and omarchy-agent --pick (Super+Shift+Ctrl+A and the panel right-click) launches that CLI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Agents panel as a default-agent choice so launch follows the subscription currently selected in the agents bar widget, instead of pinning one CLI.
Today,
Super+Shift+Ctrl+Aand a right-click on the agents icon always runomarchy-agent --pick, which launches whatever is in~/.config/omarchy/defaults/agent. Switching tabs in the panel does not change that. This keeps that keybind and that command, and adds a sentinel default:agents-panelto the default-agent file. It is not a CLI and does not go through mise.~/.local/state/omarchy/agents/selected.agents-panel,omarchy-agent --picklaunches that tab's CLI. A missing, empty, or usage-only tab (e.g. Fireworks) still opens the picker.Related but opposite: #6860 opens the panel on the configured default agent. This PR is the other direction — launch follows the panel tab when you opt into it.
How to try it
Super+Shift+Ctrl+A.Pinning a specific agent still works as before; only the new Agents panel entry follows the widget.
Tests
bash test/shell.d/default-agent-test.shbash test/shell.d/agents-panel-test.shbash test/shell.d/menu-test.sh./test/all— CLI suite passed.Visual check: Default Agent menu lists Agents panel first, with the existing coding agents after it.