{"record":{"id":"b54ff1d94bcc74ab","repo":"deepseek-ai/deepseek-harness","slug":"signal-signal-is-unsupported-on-windows-only-s","errorCode":null,"errorMessage":"signal ${signal} is unsupported on Windows; only SIGINT, SIGTERM, and SIGKILL are available","messagePattern":"signal (.+?) is unsupported on Windows; only SIGINT, SIGTERM, and SIGKILL are available","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/subprocess/subprocess-local/src/terminal.ts","lineNumber":113,"sourceCode":"  async signalForeground(signal: SubprocessTerminalSignal): Promise<number> {\n    const foreground = await this.inspectForeground()\n    if (foreground === undefined) {\n      throw new Error(`cannot resolve foreground process group for terminal ${this.pid}`)\n    }\n    if (signal === 'SIGKILL' && foreground.processGroupId === this.pid) {\n      throw new Error('refusing to SIGKILL the terminal shell; terminate the terminal session instead')\n    }\n    if (this.platform === 'win32') {\n      if (signal === 'SIGINT') {\n        // Windows has no process-group signalling: a `\\x03` input write is the\n        // Ctrl-C delivery path conhost turns into a console-wide CTRL_C event\n        // for attached processes. node-pty's signal kills throw on Windows, so\n        // no signal ever reaches the inspector.\n        this.terminal.write('\\x03')\n        return foreground.processGroupId\n      }\n      if (signal === 'SIGTSTP' || signal === 'SIGHUP') {\n        throw new Error(`signal ${signal} is unsupported on Windows; only SIGINT, SIGTERM, and SIGKILL are available`)\n      }\n    }\n    this.inspector.signalGroup(foreground.processGroupId, signal)\n    return foreground.processGroupId\n  }\n\n  terminate(): Promise<void> {\n    if (this.cleanup !== undefined) return this.cleanup\n    const cleanup = this.closeOnce()\n    this.cleanup = cleanup\n    void cleanup.catch(() => { this.cleanup = undefined })\n    return cleanup\n  }\n\n  /**\n   * Force-terminate the observable session synchronously during Node's exit\n   * event. This does not claim quiescence and does not replace terminate().\n   */","sourceCodeStart":95,"sourceCodeEnd":131,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/subprocess/subprocess-local/src/terminal.ts#L95-L131","documentation":"Error \"signal ${signal} is unsupported on Windows; only SIGINT, SIGTERM, and SIGKILL are available\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/subprocess/subprocess-local/src/terminal.ts:113 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use SIGINT, SIGTERM, or SIGKILL on Windows; other signals are unsupported."],"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"}