fix(settings): keep invocation recovery on the launch seed

A one-shot CLI failure tells the caller to set the launch environment for the next REA process. update_analysis_settings stays on the continuing session. Reused JavaScript workers also keep the limit source that selected them.
This commit is contained in:
Cursor Agent authored and morluto committed 2026-11-11 19:48:33 +08:00
1 parent 073dda2a0a
commit 88202cbf67
10 files changed
+89 -20

No files matched your search

@@ -130,7 +130,12 @@ const sameLimits = (
left: JavaScriptSourceAnalysisLimits,
right: JavaScriptSourceAnalysisLimits,
): boolean => {
if (left.heapMb !== right.heapMb || left.timeoutMs !== right.timeoutMs)
if (
left.heapMb !== right.heapMb ||
left.timeoutMs !== right.timeoutMs ||
left.heapSource !== right.heapSource ||
left.timeoutSource !== right.timeoutSource
)
return false;
const leftPrecision = resolveJavaScriptSemanticPrecision(
left.semanticPrecision,