Skip to content

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

fix(settings): restore missing tab navigation in settings page

Steven Enamakel78714e729fcc
diff --git a/app/src/components/settings/layout/SettingsTabbedPage.tsx b/app/src/components/settings/layout/SettingsTabbedPage.tsx
index 3913e285ac..150ac6de83 100644
--- a/app/src/components/settings/layout/SettingsTabbedPage.tsx
+++ b/app/src/components/settings/layout/SettingsTabbedPage.tsx
@@ -7,6 +7,17 @@ export interface SettingsTabbedPageProps<T extends string> {
description?: ReactNode;
/** Optional compact control aligned with the page title. */
headerAction?: ReactNode;
+ /**
+ * Node rendered before the title on the same row — the routed settings
+ * pages pass their back button here (it hides itself in the two-pane shell).
+ */
+ leading?: ReactNode;
+ /**
+ * Extra fixed-header content below the description and above the chip row —
+ * the routed settings pages pass their sibling sub-nav here, so the order is
+ * always title → description → sub-nav → chips → body.
+ */
+ headerExtra?: ReactNode;
tabs?: ChipTabItem<T>[];
value?: T;
onChange?: (value: T) => void;
@@ -18,16 +29,29 @@ export interface SettingsTabbedPageProps<T extends string> {
}
/**
- * Reusable settings-detail shell for a titled page with sibling chip views.
+ * The layout every Settings page uses: a large page title, a muted description,
+ * the sibling sub-nav, an optional local chip row, a full-bleed hairline, then
+ * the scrolling body.
*
* The two-pane Settings navigation replaced breadcrumb trails, so this
* primitive deliberately keeps page navigation to the title, description, and
* local chip row. Its child owns the active view and its scrolling behavior.
+ *
+ * It reached the routed `/settings/*` pages through {@link SettingsPanel},
+ * which used to wrap `PanelPage` instead — a smaller header with no page-level
+ * title treatment. Connections pages (LLM, Voice, …) were already built on
+ * this, so the two hosts had visibly different chrome for the same panels; now
+ * there is one implementation.
+ *
+ * The `-mx-4` divider bleeds to the page edge, so the host must supply `p-4`
+ * (`SettingsPanel` does; the Connections pane already did).
*/
export default function SettingsTabbedPage<T extends string>({
title,
description,
headerAction,
+ leading,
+ headerExtra,
tabs,
value,
onChange,
@@ -40,12 +64,16 @@ export default function SettingsTabbedPage<T extends string>({
<div className="flex h-full flex-col">
<div className="space-y-4 pb-4">
<header className="flex items-start justify-between gap-3">
- <div className="min-w-0 space-y-0.5">
- <h1 className="text-2xl font-semibold tracking-tight text-content">{title}</h1>
- {description != null && <p className="text-sm text-content-muted">{description}</p>}
+ <div className="flex min-w-0 items-start gap-2">
+ {leading}
+ <div className="min-w-0 space-y-0.5">
+ <h1 className="text-2xl font-semibold tracking-tight text-content">{title}</h1>
+ {description != null && <p className="text-sm text-content-muted">{description}</p>}
+ </div>
</div>
{headerAction != null && <div className="shrink-0">{headerAction}</div>}
</header>
+ {headerExtra}
{tabs && tabs.length > 0 && value != null && onChange && tabsAriaLabel ? (
<div>
<ChipTabs