{"record":{"id":"0debfa9acf802fab","repo":"deepseek-ai/deepseek-harness","slug":"run-code-run-is-over-string-runcontroller-signa","errorCode":null,"errorMessage":"run_code run is over (${String(runController.signal.reason)}); ${name} not dispatched","messagePattern":"run_code run is over \\((.+?)\\); (.+?) not dispatched","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/core/tools/src/code-mode.ts","lineNumber":468,"sourceCode":"      /** Every dispatch settled AND committed; nothing can start (the run is aborted at call time). */\n      const drainDispatches = async (): Promise<void> => {\n        // The abort already fired: the driver abandons queued-unstarted\n        // entries, awaits the live pool, and drains the ordered commit lane —\n        // including a commit already in progress when the program returned.\n        await drive()\n        // Every settle event is appended inside the open run_code turn\n        // (tasks self-remove on settlement).\n        while (logWork.size > 0) await Promise.allSettled([...logWork])\n      }\n\n      // Read through a call, not a bare property: the abort state genuinely\n      // changes across awaits, and a direct `.aborted` re-check after one\n      // would be narrowed away by control flow analysis.\n      const runOver = (): boolean => runController.signal.aborted\n\n      const binding = (name: string): CodeBindingFunction => async (rawArgs: unknown): Promise<JsonValue> => {\n        if (runOver()) {\n          throw new Error(`run_code run is over (${String(runController.signal.reason)}); ${name} not dispatched`)\n        }\n        const normalized = jsonNormalizeArgs(rawArgs)\n        const n = ++dispatches\n        const subCallId = CallId(`${String(exec.callId)}:code:${n}`)\n        const input = {\n          callId: subCallId,\n          rootCallId: exec.rootCallId,\n          name,\n          arguments: normalized.dispatched,\n          ...exec.agent ? { agent: exec.agent } : {},\n          parent: exec.token,\n          signal: runController.signal,\n        }\n        type DispatchOutcome = { isError: true; message: string } | { isError: false; value: JsonValue }\n        const scheduler = registry[TOOL_RUNTIME_SCHEDULER]\n        const outcome = await new Promise<DispatchOutcome>((resolve, reject) => {\n          // Set by the dispatch stage (or start() for a pre-settled result): what commit() finalizes in submission order.\n          let parked:","sourceCodeStart":450,"sourceCodeEnd":486,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/core/tools/src/code-mode.ts#L450-L486","documentation":"Error \"run_code run is over (${String(runController.signal.reason)}); ${name} not dispatched\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/core/tools/src/code-mode.ts:468 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}