Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(settings): correct AI panel visibility in skills page

Steven Enamakel838d9de7121f
diff --git a/app/src/components/settings/panels/AIPanel.tsx b/app/src/components/settings/panels/AIPanel.tsx
index c6a181dc23..ffeeceb618 100644
--- a/app/src/components/settings/panels/AIPanel.tsx
+++ b/app/src/components/settings/panels/AIPanel.tsx
@@ -143,7 +143,15 @@ const AIPanel = ({ embedded = false }: AIPanelProps = {}) => {
contentClassName=""
description={embedded ? undefined : t('pages.settings.ai.llmDesc')}
leading={embedded ? undefined : <SettingsBackButton onBack={navigateBack} />}>
- <div className={cn('flex w-full flex-col gap-6', !embedded && 'p-4')}>
+ {/*
+ Flex-wrap rather than a breakpoint grid. This panel renders inside a
+ pane whose width is set by the shell (sidebar, two-pane split), not by
+ the viewport, so a `xl:grid-cols-2` would be deciding from a number it
+ cannot see. `basis` + `flex-wrap` reflows off the space actually
+ available: one column when the pane is narrow, two once each section
+ has room for its own content.
+ */}
+ <div className={cn('flex w-full flex-wrap items-start gap-6', !embedded && 'p-4')}>
<ProviderAuthSection
draft={draft}
persist={persist}
diff --git a/app/src/pages/Skills.tsx b/app/src/pages/Skills.tsx
index ed6fc3b4bb..46bde1c8f4 100644
--- a/app/src/pages/Skills.tsx
+++ b/app/src/pages/Skills.tsx
@@ -992,7 +992,11 @@ export default function Skills() {
/>
</div>
</SidebarContent>
- <div className="mx-auto h-full w-full max-w-3xl">
+ {/* The content pane is no longer capped at a centered 3xl column.
+ Views that read best as a narrow column still center themselves
+ (PageWelcome by design, the skills/integrations branch below via
+ its own wrapper); the panel views are free to use the width. */}
+ <div className="h-full w-full">
{/* Welcome landing — the first destination; pitches the page and offers
a few immediate actions into the functional views. */}
{activeTab === 'welcome' ? (