{"record":{"id":"704f430785776551","repo":"deepseek-ai/deepseek-harness","slug":"terminal-send-aborted","errorCode":null,"errorMessage":"terminal send aborted","messagePattern":"terminal send aborted","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/terminal/tool-terminal/src/index.ts","lineNumber":279,"sourceCode":"            const operation = ctx.terminals.startSend(owner, id, request)\n            return {\n              cancel: () => {\n                cancelRequested = true\n                operation.cancel()\n              },\n              done: operation.done.then(\n                result => ({ status: cancelRequested ? 'killed' as const : 'completed' as const, detail: sendDetail(result) }),\n                (error: unknown) => ({ status: 'failed' as const, detail: String(error) }),\n              ),\n              readOutput: () => renderSendRead(operation.readOutput()),\n            }\n          },\n        })\n        return { kind: 'background' as const, jobId }\n      }\n      const operation = ctx.terminals.startSend(owner, id, { ...request, signal: exec.signal })\n      const result = await operation.done\n      if (exec.signal.aborted) throw new Error('terminal send aborted')\n      return { kind: 'foreground' as const, ...result }\n    },\n    presentCall(args) {\n      const parsed = args as Partial<SendArgs>\n      if (parsed.run_in_background === true) {\n        return { card: 'generic', title: `Send to terminal ${parsed.sessionId as string} in background`, kind: 'execute', rawInput: parsed.text }\n      }\n      return { card: 'terminal', title: parsed.text || '(send input)', description: `Terminal ${parsed.sessionId as string}` }\n    },\n    presentResult(args, result) {\n      if ((args as Partial<SendArgs>).run_in_background === true || result.isError) return undefined\n      const raw = rawContentText(result.content)\n      return raw === undefined ? undefined : { card: 'terminal', output: raw }\n    },\n  }))\n\n  ctx.tools.register(defineTool({\n    name: 'terminal_read',","sourceCodeStart":261,"sourceCodeEnd":297,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/terminal/tool-terminal/src/index.ts#L261-L297","documentation":"Error \"terminal send aborted\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/terminal/tool-terminal/src/index.ts:279 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the send without aborting, or handle the abort as a cancelled send."],"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"}