Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/opencode/src/cli/cmd/tui/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export function tui(input: {
},
{
targetFps: 60,
widthMethod: input.config.width_method,
gatherStats: false,
exitOnCtrlC: false,
useKittyKeyboard: {},
Expand Down
6 changes: 6 additions & 0 deletions packages/opencode/src/config/tui-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ export const TuiOptions = z.object({
.enum(["auto", "stacked"])
.optional()
.describe("Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column"),
width_method: z
.enum(["unicode", "wcwidth", "no_zwj"])
.optional()
.describe(
"Character width calculation method. Use 'no_zwj' if ZWJ emoji sequences cause layout corruption in your terminal (common with tmux and older terminals). Default: 'unicode'",
),
})

export const TuiInfo = z
Expand Down
Loading