diff --git a/src/features/tmux-subagent/action-executor-core.ts b/src/features/tmux-subagent/action-executor-core.ts index 466cbe95..70a8f463 100644 --- a/src/features/tmux-subagent/action-executor-core.ts +++ b/src/features/tmux-subagent/action-executor-core.ts @@ -72,7 +72,6 @@ export async function executeActionWithDeps( ) if (result.success) { - await deps.applyLayout(ctx.config.layout, ctx.config.main_pane_size) await enforceMainPane(ctx.windowState, ctx.config, deps) } diff --git a/src/features/tmux-subagent/action-executor.test.ts b/src/features/tmux-subagent/action-executor.test.ts index f5ab3d74..18e24b44 100644 --- a/src/features/tmux-subagent/action-executor.test.ts +++ b/src/features/tmux-subagent/action-executor.test.ts @@ -66,7 +66,7 @@ describe("executeAction", () => { mockSpawnTmuxPane.mockImplementation(async () => ({ success: true, paneId: "%7" })) }) - test("applies configured tmux layout after successful spawn", async () => { + test("enforces main pane width with configured percentage after successful spawn", async () => { // given // when const result = await executeActionWithDeps( @@ -83,8 +83,7 @@ describe("executeAction", () => { // then expect(result).toEqual({ success: true, paneId: "%7" }) - expect(mockApplyLayout).toHaveBeenCalledTimes(1) - expect(mockApplyLayout).toHaveBeenCalledWith("main-horizontal", 55) + expect(mockApplyLayout).not.toHaveBeenCalled() expect(mockEnforceMainPaneWidth).toHaveBeenCalledTimes(1) expect(mockEnforceMainPaneWidth).toHaveBeenCalledWith("%0", 220, 55) })