fix(tui): keep terminal panes off by default on Windows (#46821)

This commit is contained in:
James Long 2026-09-02 10:50:26 -04:00 committed by GitHub
parent 6051a1f987
commit 268ca2f63d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -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"],

View file

@ -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: {