Merge pull request #4139 from deepseek-harness/worktree/terminal-common-shells
feat(web): show common shells by default
This commit is contained in:
commit
0ef4ff9bd0
4 files changed
+5
-5
No files matched your search
@@ -2,5 +2,5 @@
|
||||
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
||||
# after editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write packages/api/terminal-controller/README.md
|
||||
README.md: c302a2b7269bdb6a76d0c6056d5851a84a876e9a
|
||||
README.zh.md: dfc50e30f3a35b70c40bb76f9832cbd9548ba2cf
|
||||
README.md: 21bcfb335246dc4b95a3cd70993c8444ad7de057
|
||||
README.zh.md: 6ba88bcecc55c850cf477257c8055b5babae9b52
|
||||
@@ -32,7 +32,7 @@ Shell discovery lists the execution environment's declared default shell first.
|
||||
| Configuration | Default | Meaning |
|
||||
|---|---|---|
|
||||
| `shell` | omitted | Use the execution environment's default shell, or one explicit profile |
|
||||
| `shellCandidates` | `zsh`, `bash`, `fish`, `sh`, `ksh`, `tcsh`, `csh`, `pwsh`, `powershell`, `cmd`, `nu` | Additional executable names or paths offered when installed |
|
||||
| `shellCandidates` | `zsh`, `bash`, `fish`, `pwsh`, `powershell`, `cmd` | Additional executable names or paths offered when installed |
|
||||
| `maxTerminals` | `8` | Retained terminals and pending allocations per Session |
|
||||
| `maxCols`, `maxRows` | `500`, `200` | Maximum PTY dimensions |
|
||||
| `scrollback` | `1000` | Retained screen history rows |
|
||||
|
||||
@@ -32,7 +32,7 @@ Shell 探测结果首先列出执行环境声明的默认 shell。仅当 provide
|
||||
| 配置 | 默认值 | 含义 |
|
||||
|---|---|---|
|
||||
| `shell` | 省略 | 使用执行环境默认 shell,或指定一个 profile |
|
||||
| `shellCandidates` | `zsh`、`bash`、`fish`、`sh`、`ksh`、`tcsh`、`csh`、`pwsh`、`powershell`、`cmd`、`nu` | 已安装时供用户选择的额外可执行名称或路径 |
|
||||
| `shellCandidates` | `zsh`、`bash`、`fish`、`pwsh`、`powershell`、`cmd` | 已安装时供用户选择的额外可执行名称或路径 |
|
||||
| `maxTerminals` | `8` | 每个 Session 保留的终端和创建请求上限 |
|
||||
| `maxCols`、`maxRows` | `500`、`200` | PTY 最大尺寸 |
|
||||
| `scrollback` | `1000` | 屏幕历史行数 |
|
||||
|
||||
@@ -69,7 +69,7 @@ export class TerminalController extends TypertRemoteService {
|
||||
shell: z.union([z.object({
|
||||
path: z.string().required(), name: z.string().required(), args: z.array(z.string()).default([]),
|
||||
}), z.const(undefined)]),
|
||||
shellCandidates: z.array(z.string().min(1)).default(['zsh', 'bash', 'fish', 'sh', 'ksh', 'tcsh', 'csh', 'pwsh', 'powershell', 'cmd', 'nu']),
|
||||
shellCandidates: z.array(z.string().min(1)).default(['zsh', 'bash', 'fish', 'pwsh', 'powershell', 'cmd']),
|
||||
maxTerminals: z.number().step(1).min(1).default(8),
|
||||
maxCols: z.number().step(1).min(2).default(500),
|
||||
maxRows: z.number().step(1).min(1).default(200),
|
||||
|
||||
Reference in new issue
Block a user