fix(crabbox): reclaim sparse reused leases · openclaw/openclaw@ca5905e
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2675,6 +2675,20 @@ function assertFullCheckoutAvailableBeforeExit(dir) {
|
2675 | 2675 | return false; |
2676 | 2676 | } |
2677 | 2677 | |
| 2678 | +function injectFullCheckoutLeaseReclaim(commandArgs) { |
| 2679 | +if ( |
| 2680 | +commandArgs[0] !== "run" || |
| 2681 | +!hasOption(commandArgs, "--id") || |
| 2682 | +hasOption(commandArgs, "--reclaim") |
| 2683 | +) { |
| 2684 | +return commandArgs; |
| 2685 | +} |
| 2686 | +const normalizedArgs = [...commandArgs]; |
| 2687 | +const { optionEnd } = runCommandBounds(normalizedArgs); |
| 2688 | +normalizedArgs.splice(optionEnd, 0, "--reclaim"); |
| 2689 | +return normalizedArgs; |
| 2690 | +} |
| 2691 | + |
2678 | 2692 | const version = checkedOutput(binary, ["--version"]); |
2679 | 2693 | const help = checkedOutput(binary, ["run", "--help"]); |
2680 | 2694 | const providerAliases = new Map([ |
@@ -2856,6 +2870,7 @@ try {
|
2856 | 2870 | const changedGateBase = isChangedGateCommand(runWords) ? mergeBaseForChangedGate() : ""; |
2857 | 2871 | const checkout = prepareFullCheckoutForSync({ changedGateBase }); |
2858 | 2872 | fullCheckout = checkout; |
| 2873 | +normalizedArgs = injectFullCheckoutLeaseReclaim(normalizedArgs); |
2859 | 2874 | childCwd = checkout.dir; |
2860 | 2875 | cleanupChildCwd = () => checkout.cleanup(); |
2861 | 2876 | remoteChangedGateBase = checkout.changedGateBase; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。