Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

show active AI provider at the top of the providers list (#486)

[._.]/ Adam Eivye551a408602e
diff --git a/client/src/pages/AIProviders.jsx b/client/src/pages/AIProviders.jsx
index efdfe7e195..71439dffb1 100644
--- a/client/src/pages/AIProviders.jsx
+++ b/client/src/pages/AIProviders.jsx
@@ -387,7 +387,11 @@ export default function AIProviders() {
{/* Provider List */}
<div className="grid gap-4">
- {providers.map(provider => (
+ {(() => {
+ const idx = providers.findIndex(p => p.id === activeProviderId);
+ if (idx <= 0) return providers;
+ return [providers[idx], ...providers.slice(0, idx), ...providers.slice(idx + 1)];
+ })().map(provider => (
<div
key={provider.id}
className={`bg-port-card border rounded-xl p-4 ${