feat: 添加会话关闭功能及确认对话框,更新相关国际化文本

This commit is contained in:
catlog22
2026-02-20 20:48:24 +08:00
parent d6bf941113
commit aa9f23782a
8 changed files with 136 additions and 9 deletions

View File

@@ -280,8 +280,10 @@ export class CliSessionManager {
} else {
// Legacy shell session: spawn bash/pwsh
const preferredShell = options.preferredShell ?? 'bash';
const picked = pickShell(preferredShell);
// Note: 'cmd' is for CLI tools only, for legacy shells we default to bash
const shellPreference = options.preferredShell ?? 'bash';
const preferredShell = shellPreference === 'cmd' ? 'bash' : shellPreference;
const picked = pickShell(preferredShell as 'bash' | 'pwsh');
shellKind = picked.shellKind;
file = picked.file;
args = picked.args;