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

fix: keep the AI Providers editor routes on the full-width layout

Adam Eivyd20e74db56ff
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 4c6c6f24e5..09857acee9 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -546,6 +546,12 @@ const FULL_WIDTH_PATH_PREFIXES = [
// stepper that owns its own scroll; the bare /story-builder index
// (list + create form) takes the normal padded+scrolling main.
'/story-builder/',
+ // The AI Providers editor is a drawer over the same page (/ai/new,
+ // /ai/:providerId), so its sub-routes need the bare full-width main the
+ // bare /ai index gets from EXACT_FULL_WIDTH_PATHS above — without it the
+ // page's own `flex-1 overflow-auto` body sits inside a padded, scrolling
+ // main and double-pads.
+ '/ai/',
'/writers-room',
'/agents',
'/shell/',
diff --git a/client/src/components/Layout.test.jsx b/client/src/components/Layout.test.jsx
index 8ffd251f5c..3c2abc2046 100644
--- a/client/src/components/Layout.test.jsx
+++ b/client/src/components/Layout.test.jsx
@@ -275,6 +275,9 @@ describe('Layout — isFullWidthRoute classification', () => {
['/universes', false], ['/universes/u1', true],
['/rounds', false], ['/rounds/guide', true],
['/story-builder', false], ['/story-builder/s1/step', true],
+ // AI Providers: the index AND its editor sub-routes (a drawer over the same
+ // page) are full-width, but a sibling path sharing the `/ai` prefix is not.
+ ['/ai', true], ['/ai/new', true], ['/ai/codex', true], ['/airlock', false],
['/pipeline', false], ['/pipeline/series/s1', true],
['/local-llm', false], ['/local-llm/m', true],
// Music owns the same full-bleed title/tab/body shell as Media Gen, but