mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-28 09:23:08 +08:00
feat: 添加会话关闭功能及确认对话框,更新相关国际化文本
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user