feat: enable split groups renderer path

Flip ENABLE_SPLIT_GROUPS to true now that the dark-launch PR and
prerequisite correctness fixes have landed.
This commit is contained in:
brennanb2025
2026-04-15 10:44:08 -07:00
parent 13f6c4a57b
commit 339e5cbf25
2 changed files with 15 additions and 7 deletions
+14
View File
@@ -0,0 +1,14 @@
# Split Groups PR 6: Enable Split Groups
This branch turns split groups on after the earlier model, lifecycle, restore,
and renderer-ownership branches are in place.
Scope:
- remove the temporary rollout gate from `Terminal.tsx`
- make the split-group ownership path the active renderer path
- keep only the small bootstrap fallback for cases where no layout exists yet
What Is Actually Hooked Up In This PR:
- split groups are live
- `Terminal.tsx` always resolves through the split-group path when layout/group state exists
- the temporary gate introduced in the dark-launch PR is removed instead of left behind as dead config
+1 -7
View File
@@ -31,10 +31,6 @@ import { shouldAutoCreateInitialTerminal } from './terminal/initial-terminal'
import CodexRestartChip from './CodexRestartChip'
const EditorPanel = lazy(() => import('./editor/EditorPanel'))
// Why: keep the split-group renderer path dark until dedicated Playwright
// coverage lands. This branch keeps the implementation and correctness fixes,
// but the user-visible rollout stays on the legacy workspace path by default.
const ENABLE_SPLIT_GROUPS = false
function Terminal(): React.JSX.Element | null {
const activeWorktreeId = useAppStore((s) => s.activeWorktreeId)
@@ -120,9 +116,7 @@ function Terminal(): React.JSX.Element | null {
[activeGroupIdByWorktree, groupsByWorktree, layoutByWorktree]
)
const effectiveActiveLayout = activeWorktreeId
? ENABLE_SPLIT_GROUPS
? getEffectiveLayoutForWorktree(activeWorktreeId)
: undefined
? getEffectiveLayoutForWorktree(activeWorktreeId)
: undefined
const activeWorktree = activeWorktreeId
? (allWorktrees.find((worktree) => worktree.id === activeWorktreeId) ?? null)