feat(session): validate agents and browse workspace directories

This commit is contained in:
weishu
2026-08-25 16:12:29 +08:00
parent a04275b51d
commit e5a8212f4a
77 changed files with 3409 additions and 312 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { logger } from '@/ui/logger';
import { spawnWithTerminalGuard } from '@/utils/spawnWithTerminalGuard';
import { getAgentLaunchCommand } from '@/agent/agentLaunchCommand';
/**
* Filter out 'resume' subcommand which is managed internally by hapi.
@@ -82,7 +83,7 @@ export async function cursorLocal(opts: {
}
await spawnWithTerminalGuard({
command: 'agent',
command: getAgentLaunchCommand('cursor'),
args,
cwd: opts.path,
env: process.env,