@@ -310,6 +310,19 @@ export const BrowserAutomationConfigSchema = z.object({
310310 provider : BrowserAutomationProviderSchema . default ( "playwright" ) ,
311311} )
312312
313+ export const TmuxLayoutSchema = z . enum ( [
314+ 'main-horizontal' , // main pane top, agent panes bottom stack
315+ 'main-vertical' , // main pane left, agent panes right stack (default)
316+ 'tiled' , // all panes same size grid
317+ 'even-horizontal' , // all panes horizontal row
318+ 'even-vertical' , // all panes vertical stack
319+ ] )
320+
321+ export const TmuxConfigSchema = z . object ( {
322+ enabled : z . boolean ( ) . default ( false ) , // default: false (disabled)
323+ layout : TmuxLayoutSchema . default ( 'main-vertical' ) , // default: main-vertical
324+ main_pane_size : z . number ( ) . min ( 20 ) . max ( 80 ) . default ( 60 ) , // percentage, default: 60%
325+ } )
313326export const OhMyOpenCodeConfigSchema = z . object ( {
314327 $schema : z . string ( ) . optional ( ) ,
315328 disabled_mcps : z . array ( AnyMcpNameSchema ) . optional ( ) ,
@@ -330,6 +343,7 @@ export const OhMyOpenCodeConfigSchema = z.object({
330343 notification : NotificationConfigSchema . optional ( ) ,
331344 git_master : GitMasterConfigSchema . optional ( ) ,
332345 browser_automation_engine : BrowserAutomationConfigSchema . optional ( ) ,
346+ tmux : TmuxConfigSchema . optional ( ) ,
333347} )
334348
335349export type OhMyOpenCodeConfig = z . infer < typeof OhMyOpenCodeConfigSchema >
@@ -354,5 +368,7 @@ export type BuiltinCategoryName = z.infer<typeof BuiltinCategoryNameSchema>
354368export type GitMasterConfig = z . infer < typeof GitMasterConfigSchema >
355369export type BrowserAutomationProvider = z . infer < typeof BrowserAutomationProviderSchema >
356370export type BrowserAutomationConfig = z . infer < typeof BrowserAutomationConfigSchema >
371+ export type TmuxConfig = z . infer < typeof TmuxConfigSchema >
372+ export type TmuxLayout = z . infer < typeof TmuxLayoutSchema >
357373
358374export { AnyMcpNameSchema , type AnyMcpName , McpNameSchema , type McpName } from "../mcp/types"
0 commit comments