feat: add intelligent session matching based on cwd and timestamp

This commit is contained in:
weishu
2025-12-26 21:11:43 +08:00
parent 09faf443ce
commit f03c7f2cc8
2 changed files with 226 additions and 23 deletions
+2
View File
@@ -9,6 +9,8 @@ import { getLocalLaunchExitReason } from '@/agent/localLaunchPolicy';
export async function codexLocalLauncher(session: CodexSession): Promise<'switch' | 'exit'> {
const scanner = await createCodexSessionScanner({
sessionId: session.sessionId,
cwd: session.path,
startupTimestampMs: Date.now(),
onSessionFound: (sessionId) => {
session.onSessionFound(sessionId);
},