{"record":{"id":"07afb1e738954ff9","repo":"deepseek-ai/deepseek-harness","slug":"background-terminal-sends-are-disabled-by-tool-ter","errorCode":null,"errorMessage":"background terminal sends are disabled by tool-terminal configuration","messagePattern":"background terminal sends are disabled by tool-terminal configuration","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/terminal/tool-terminal/src/index.ts","lineNumber":251,"sourceCode":"        text: value.kind === 'background'\n          ? `started background job ${value.jobId}`\n          : renderSend(value, maxResultBytes),\n      }],\n      presentationMeta: (_args, value) => value.kind === 'foreground'\n        ? {\n          viewport: value.viewport,\n          waitReason: value.waitReason,\n          sessionStatus: value.sessionStatus,\n          truncated: value.truncated,\n        }\n        : null,\n    },\n    async execute(args: SendArgs, exec) {\n      const owner = requireAgent(exec.agent)\n      const id = sessionId(args)\n      const request = { text: args.text, submit: args.submit ?? true }\n      if (args.run_in_background === true) {\n        if (!enableRunInBackground) throw new Error('background terminal sends are disabled by tool-terminal configuration')\n        const jobs = ctx.get('jobs')\n        if (jobs === undefined) throw new Error('background terminal sends require @deepseek-ai/dsh-jobs and @deepseek-ai/dsh-tool-jobs')\n        let cancelRequested = false\n        const jobId = jobs.start({\n          kind: 'pty-send',\n          label: `${id}: ${args.text || '(input)'}`,\n          owner,\n          outputLimitBytes: maxResultBytes,\n          run: () => {\n            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) }),","sourceCodeStart":233,"sourceCodeEnd":269,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/terminal/tool-terminal/src/index.ts#L233-L269","documentation":"Error \"background terminal sends are disabled by tool-terminal configuration\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/terminal/tool-terminal/src/index.ts:251 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable background sends in the tool-terminal configuration, or send in the foreground."],"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"}