Skip to content

Add providerOrder to agents panel - #11124

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

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.
@omarchybot omarchybot added the enhancement New feature or request label Sep 27, 2026
@dhh

dhh commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Thanks! Agent order is now set by dragging an agent's mark or with Ctrl+Up/Down, kept in order.json (#14004). Closing in favor of that.

@dhh dhh closed this Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants