Skip to content

Add providerOrder to agents panel - #11124

Open
PapeThePope wants to merge 1 commit into
omacom:quattrofrom
PapeThePope:feat/agents-provider-order
Open

Add providerOrder to agents panel#11124
PapeThePope wants to merge 1 commit into
omacom:quattrofrom
PapeThePope:feat/agents-provider-order

Conversation

@PapeThePope

Copy link
Copy Markdown

The agents widget orders tabs alphabetically with no way to choose the default shown tab (position 0).

This adds an optional top-level providerOrder list to the widget settings. Tabs sort by their index in that list; providers not listed keep the historical alphabetical fallback, so configs without it behave exactly as before.

{
  "id": "omarchy.agents",
  "providerOrder": ["opencode-go", "codex", "claude", "fireworks"]
}

Notes:

  • No Array.isArray gate on purpose: the shell delivers settings lists as array-like sequences that fail that check while supporting length and indexOf.
  • Manifest gains a providerOrder: [] default. No schema entry: like nested providers, it is configured via shell.json directly.
  • Verified live on my machine via a cloned widget (opencode-go first, codex second) plus test/shell.d/agents-panel-test.sh (3 new assertions, all green).

Tab order follows an optional providerOrder list in shell.json, with
position 0 as the default tab. Unlisted providers keep the alphabetical
fallback, so existing configs behave as before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant