@wu529778790/open-im 1.10.9-beta.7 → 1.10.9-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -381,7 +381,7 @@ async function getOrCreateSession(sessionId, workDir, model, permissionMode, onS
|
|
|
381
381
|
if (!sessionId) {
|
|
382
382
|
const latest = findLatestClaudeSession(workDir);
|
|
383
383
|
if (latest) {
|
|
384
|
-
// 安全检查:如果 CLI 正在使用该 session
|
|
384
|
+
// 安全检查:如果 CLI 正在使用该 session(文件 30 秒内有写入),不能接管
|
|
385
385
|
if (isCliSessionActive(latest.sessionId, latest.filePath)) {
|
|
386
386
|
log.info(`CLI is actively using session ${latest.sessionId}, skipping auto-resume`);
|
|
387
387
|
}
|