Skip to content

Commit 7c45559

Browse files
committed
feat(tui): default session tabs to vertical
1 parent 33ab0bb commit 7c45559

5 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎PATCH.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ Plugin (`custom.shell.timeouts` + TUI `custom.timeouts`): foreground shell comma
7777

7878
Plugin (`custom.tool.subagent.resume`): a subagent `sessionID` that is not a child of the current session starts a new subagent instead of failing.
7979

80+
## Vertical Tabs Default
81+
82+
Session tabs default to vertical in the TUI (`tabs.layout`) and desktop app (`appearance.tabLayout`).
83+
8084
## Session List Preview (TUI) [NOT MIGRATED]
8185

8286
The session list (`<leader>l`) previews the highlighted session's latest messages on terminals 128 columns or wider.

‎packages/app/src/settings/model.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe("settings schema", () => {
102102
mono: "",
103103
sans: "",
104104
terminal: "",
105-
tabLayout: "horizontal",
105+
tabLayout: "vertical",
106106
},
107107
keybinds: {},
108108
permissions: { autoApprove: false },

‎packages/app/src/settings/model.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export const defaultSettings: Settings = {
272272
terminalPlacement: "side",
273273
followUpBehavior: "steer",
274274
},
275-
appearance: { fontSize: 14, mono: "", sans: "", terminal: "", tabLayout: "horizontal" },
275+
appearance: { fontSize: 14, mono: "", sans: "", terminal: "", tabLayout: "vertical" },
276276
keybinds: {},
277277
permissions: { autoApprove: false },
278278
workspaces: { defaultDestination: "last-used", lastUsed: {} },

‎packages/tui/src/config/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export function resolve(
351351
mode: tabsMode,
352352
enabled: tabsMode === "on" || (tabsMode === "auto" && (options.environment ?? process.env).HERDR_ENV !== "1"),
353353
scope: input.tabs?.scope ?? "cwd",
354-
layout: input.tabs?.layout ?? "horizontal",
354+
layout: input.tabs?.layout ?? "vertical",
355355
indicators: input.tabs?.indicators ?? "status",
356356
},
357357
}

‎packages/tui/test/config-v2.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ test("resolves nested config and keybind defaults", () => {
6868
mode: "auto",
6969
enabled: true,
7070
scope: "cwd",
71-
layout: "horizontal",
71+
layout: "vertical",
7272
indicators: "status",
7373
})
7474
expect(config.session.new_location).toBe("launch")

0 commit comments

Comments
 (0)