Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

fix(desktop): the island's Usage tab shows the providers closest to a limit

leepokaife6d086686ad
diff --git a/apps/desktop/src/renderer/views/island/IslandUsage.tsx b/apps/desktop/src/renderer/views/island/IslandUsage.tsx
index 0a034560..c555c3cd 100644
--- a/apps/desktop/src/renderer/views/island/IslandUsage.tsx
+++ b/apps/desktop/src/renderer/views/island/IslandUsage.tsx
@@ -54,9 +54,12 @@ export function UsageMeter({ model }: { model: IslandModel }) {
)
}
-/** Every provider's limits side by side, each window a bar with when it resets. */
+/**
+ * The two providers closest to a limit side by side, each window a bar with when it resets. The
+ * header meter's provider is always one of them; ones with notes only come last.
+ */
export function UsageView({ model }: { model: IslandModel }) {
- const usage = model.summary.usage
+ const usage = [...model.summary.usage].sort((a, b) => (tightest(b)?.percent ?? -1) - (tightest(a)?.percent ?? -1))
const tr = useTr()
const line = useResetLine()
if (!usage.length) {