Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(platforms): let Configure/Close own the card's expanded state

cyh858b7280a5ab
diff --git a/ui/src/components/settings/SettingsPlatformsPage.tsx b/ui/src/components/settings/SettingsPlatformsPage.tsx
index 202d9fe33..db0552748 100644
--- a/ui/src/components/settings/SettingsPlatformsPage.tsx
+++ b/ui/src/components/settings/SettingsPlatformsPage.tsx
@@ -301,9 +301,10 @@ export const SettingsPlatformsPage: React.FC = () => {
const tile = tileStyle(id);
const runnable = platformHasRunnableConfig(config, id);
const enabled = enabledPlatforms.includes(id);
- // Reveal the form immediately for a freshly-checked unconfigured
- // platform; an enabled platform opens collapsed (Configure to edit).
- const open = openConfig === id || (!enabled && !runnable);
+ // ``toggleTile`` opens a freshly-revealed platform's form (so settings
+ // appear right when you check it); from then on the Configure/Close
+ // toggle owns the state, so Close actually collapses the card.
+ const open = openConfig === id;
return (
<PlatformCard
key={id}