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: preserve Game index scrolling (#3228)

[._.]/ Adam Eivy94f80c21c6cf
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 247f2526b4..a635f17dee 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -1212,7 +1212,7 @@ export default function Layout() {
location.pathname.startsWith('/feature-agents') ||
// Only Game DETAIL workspaces own an internal scroll region; the
// bare /game index stays on the normal padded page layout.
- location.pathname.startsWith('/game/') ||
+ /^\/game\/[^/]+\/?$/.test(location.pathname) ||
location.pathname.startsWith('/goals') ||
location.pathname.startsWith('/insights') ||
location.pathname.startsWith('/meatspace') ||
diff --git a/client/src/components/Layout.test.jsx b/client/src/components/Layout.test.jsx
index 6c33385c84..944759ca85 100644
--- a/client/src/components/Layout.test.jsx
+++ b/client/src/components/Layout.test.jsx
@@ -190,6 +190,12 @@ describe('Layout — Game workspace scroll mode', () => {
const main = index.container.querySelector('#main-content');
expect(main?.className).toContain('overflow-auto');
expect(main?.className).toContain('p-4');
+ index.unmount();
+
+ const trailingSlashIndex = await renderLayout('/game/');
+ const trailingSlashMain = trailingSlashIndex.container.querySelector('#main-content');
+ expect(trailingSlashMain?.className).toContain('overflow-auto');
+ expect(trailingSlashMain?.className).toContain('p-4');
});
});