feat: update openclaw and polish desktop flows
This commit is contained in:
@@ -50,11 +50,17 @@ const OPENCLAW_AGENTS_SKILLS_PATCH_REPLACE = `\tconst openClawAgentsSkillsDisabl
|
||||
\t\tdir: path.resolve(workspaceDir, ".agents", "skills"),
|
||||
\t\tsource: "agents-skills-project"
|
||||
\t});`;
|
||||
const OPENCLAW_MAIN_SESSION_RECOVERY_MARK_SEARCH = `\t\t\tif (!interruptedSessionIds.has(entry.sessionId)) continue;
|
||||
const OPENCLAW_MAIN_SESSION_RECOVERY_MARK_SEARCH = `\t\t\tif (!resolveEntryTranscriptLockPaths({
|
||||
\t\t\t\tentry,
|
||||
\t\t\t\tsessionsDir
|
||||
\t\t\t}).some((lockPath) => interruptedLockPaths.has(lockPath))) continue;
|
||||
\t\t\tentry.abortedLastRun = true;
|
||||
\t\t\tstore[sessionKey] = entry;
|
||||
\t\t\tresult.marked++;`;
|
||||
const OPENCLAW_MAIN_SESSION_RECOVERY_MARK_REPLACE = `\t\t\tif (!interruptedSessionIds.has(entry.sessionId)) continue;
|
||||
const OPENCLAW_MAIN_SESSION_RECOVERY_MARK_REPLACE = `\t\t\tif (!resolveEntryTranscriptLockPaths({
|
||||
\t\t\t\tentry,
|
||||
\t\t\t\tsessionsDir
|
||||
\t\t\t}).some((lockPath) => interruptedLockPaths.has(lockPath))) continue;
|
||||
\t\t\tentry.abortedLastRun = true;
|
||||
\t\t\tif (process.env.OPENCLAW_DISABLE_MAIN_SESSION_RESTART_RECOVERY === "1") {
|
||||
\t\t\t\tentry.status = "failed";
|
||||
@@ -73,13 +79,13 @@ const OPENCLAW_MAIN_SESSION_RECOVERY_SCHEDULE_REPLACE = `function scheduleRestar
|
||||
\t\treturn;
|
||||
\t}
|
||||
\tconst initialDelay = params.delayMs ?? DEFAULT_RECOVERY_DELAY_MS;`;
|
||||
const OPENCLAW_STUCK_ACTIVE_ABORT_SEARCH = `\t\t\t\t(opts?.recoverStuckSession ?? recoverStuckSession)({
|
||||
const OPENCLAW_STUCK_ACTIVE_ABORT_SEARCH = `\t\t\t\tif (classification?.recoveryEligible) (opts?.recoverStuckSession ?? recoverStuckSession)({
|
||||
\t\t\t\t\tsessionId: state.sessionId,
|
||||
\t\t\t\t\tsessionKey: state.sessionKey,
|
||||
\t\t\t\t\tageMs,
|
||||
\t\t\t\t\tqueueDepth: state.queueDepth
|
||||
\t\t\t\t});`;
|
||||
const OPENCLAW_STUCK_ACTIVE_ABORT_REPLACE = `\t\t\t\t(opts?.recoverStuckSession ?? recoverStuckSession)({
|
||||
const OPENCLAW_STUCK_ACTIVE_ABORT_REPLACE = `\t\t\t\tif (classification?.recoveryEligible) (opts?.recoverStuckSession ?? recoverStuckSession)({
|
||||
\t\t\t\t\tsessionId: state.sessionId,
|
||||
\t\t\t\t\tsessionKey: state.sessionKey,
|
||||
\t\t\t\t\tageMs,
|
||||
@@ -194,6 +200,7 @@ const OPENCLAW_BUNDLED_RUNTIME_DEPENDENCY_NAMES = [
|
||||
'semver',
|
||||
'sharp',
|
||||
'silk-wasm',
|
||||
'socks-proxy-agent',
|
||||
'sqlite-vec',
|
||||
'tar',
|
||||
'tokenjuice',
|
||||
|
||||
Reference in New Issue
Block a user