mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-06 22:14:37 +00:00
fix(tui): keep terminal panes off by default on Windows (#46821)
This commit is contained in:
parent
6051a1f987
commit
268ca2f63d
2 changed files with 3 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ export const settings: Setting[] = [
|
|||
title: "Terminal",
|
||||
category: "Session",
|
||||
path: ["session", "terminal"],
|
||||
default: true,
|
||||
default: process.platform !== "win32",
|
||||
values: [false, true],
|
||||
labels: ["off", "on"],
|
||||
keywords: ["pty", "shell", "terminal pane"],
|
||||
|
|
|
|||
|
|
@ -299,7 +299,8 @@ export function resolve(input: Info, options: { terminalSuspend: boolean }): Res
|
|||
session: {
|
||||
...input.session,
|
||||
new_location: input.session?.new_location ?? "launch",
|
||||
terminal: input.session?.terminal ?? true,
|
||||
// Persistent terminal panes need the opencode-pty daemon, which does not ship Windows binaries.
|
||||
terminal: input.session?.terminal ?? process.platform !== "win32",
|
||||
tps: input.session?.tps ?? true,
|
||||
},
|
||||
tabs: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue