























@@ -1422,7 +1422,7 @@ export async function runEmbeddedAttempt(
14221422cfg: params.config,
14231423})
14241424 : undefined;
1425-const bundleMcpRuntime = bundleMcpSessionRuntime
1425+bundleMcpRuntime = bundleMcpSessionRuntime
14261426 ? await materializeBundleMcpToolsForRun({
14271427runtime: bundleMcpSessionRuntime,
14281428reservedToolNames: [
@@ -1436,7 +1436,7 @@ export async function runEmbeddedAttempt(
14361436disableTools: params.disableTools || isRawModelRun,
14371437toolsAllow: params.toolsAllow,
14381438});
1439-const bundleLspRuntime = bundleLspEnabled
1439+bundleLspRuntime = bundleLspEnabled
14401440 ? await createBundleLspToolRuntime({
14411441workspaceDir: effectiveWorkspace,
14421442cfg: params.config,
@@ -2953,13 +2953,6 @@ export async function runEmbeddedAttempt(
29532953}
2954295429552955let 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-};
29632956const abortCompaction = () => {
29642957if (!activeSession.isCompacting) {
29652958return;
@@ -3190,7 +3183,6 @@ export async function runEmbeddedAttempt(
3190318331913184let abortWarnTimer: NodeJS.Timeout | undefined;
31923185const isProbeSession = params.sessionId?.startsWith("probe-") ?? false;
3193-const compactionTimeoutMs = resolveCompactionTimeoutMs(params.config);
31943186let abortTimer: NodeJS.Timeout | undefined;
31953187let compactionGraceUsed = false;
31963188const scheduleAbortTimer = (delayMs: number, reason: "initial" | "compaction-grace") => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。