@@ -1422,7 +1422,7 @@ export async function runEmbeddedAttempt(
|
1422 | 1422 | cfg: params.config, |
1423 | 1423 | }) |
1424 | 1424 | : undefined; |
1425 | | -const bundleMcpRuntime = bundleMcpSessionRuntime |
| 1425 | +bundleMcpRuntime = bundleMcpSessionRuntime |
1426 | 1426 | ? await materializeBundleMcpToolsForRun({ |
1427 | 1427 | runtime: bundleMcpSessionRuntime, |
1428 | 1428 | reservedToolNames: [ |
@@ -1436,7 +1436,7 @@ export async function runEmbeddedAttempt(
|
1436 | 1436 | disableTools: params.disableTools || isRawModelRun, |
1437 | 1437 | toolsAllow: params.toolsAllow, |
1438 | 1438 | }); |
1439 | | -const bundleLspRuntime = bundleLspEnabled |
| 1439 | +bundleLspRuntime = bundleLspEnabled |
1440 | 1440 | ? await createBundleLspToolRuntime({ |
1441 | 1441 | workspaceDir: effectiveWorkspace, |
1442 | 1442 | cfg: params.config, |
@@ -2953,13 +2953,6 @@ export async function runEmbeddedAttempt(
|
2953 | 2953 | } |
2954 | 2954 | |
2955 | 2955 | let yieldAborted = false; |
2956 | | -const getAbortReason = (signal: AbortSignal): unknown => |
2957 | | -"reason" in signal ? (signal as { reason?: unknown }).reason : undefined; |
2958 | | -const makeTimeoutAbortReason = (): Error => { |
2959 | | -const err = new Error("request timed out"); |
2960 | | -err.name = "TimeoutError"; |
2961 | | -return err; |
2962 | | -}; |
2963 | 2956 | const abortCompaction = () => { |
2964 | 2957 | if (!activeSession.isCompacting) { |
2965 | 2958 | return; |
@@ -3190,7 +3183,6 @@ export async function runEmbeddedAttempt(
|
3190 | 3183 | |
3191 | 3184 | let abortWarnTimer: NodeJS.Timeout | undefined; |
3192 | 3185 | const isProbeSession = params.sessionId?.startsWith("probe-") ?? false; |
3193 | | -const compactionTimeoutMs = resolveCompactionTimeoutMs(params.config); |
3194 | 3186 | let abortTimer: NodeJS.Timeout | undefined; |
3195 | 3187 | let compactionGraceUsed = false; |
3196 | 3188 | const scheduleAbortTimer = (delayMs: number, reason: "initial" | "compaction-grace") => { |
|