Skip to content

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

fix(layout): restore missing panel header in TwoPanelLayout

Steven Enamakel9e33ef9c0389
diff --git a/app/src/components/layout/TwoPanelLayout.tsx b/app/src/components/layout/TwoPanelLayout.tsx
index 9ecdf3d4a6..2a905c12ff 100644
--- a/app/src/components/layout/TwoPanelLayout.tsx
+++ b/app/src/components/layout/TwoPanelLayout.tsx
@@ -1,4 +1,5 @@
-import { type ReactNode, useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
+import { type ReactNode, useCallback, useEffect } from 'react';
+import { LuChevronRight } from 'react-icons/lu';
import { useT } from '../../lib/i18n/I18nContext';
import { useAppDispatch, useAppSelector } from '../../store/hooks';
@@ -11,6 +12,7 @@ import {
toggleSidebar,
} from '../../store/layoutSlice';
import { Button } from '../ui';
+import { clampWidth, useResizableDivider } from './useResizableDivider';
const namespace = 'two-panel-layout';
@@ -20,10 +22,6 @@ function debug(message: string, payload?: Record<string, unknown>) {
}
}
-function clampWidth(width: number, min: number, max: number): number {
- return Math.min(Math.max(width, min), max);
-}
-
/**
* Subscribe to a two-pane layout's persisted geometry and get back the
* helpers external chrome needs to drive it (e.g. a hamburger button living