{"record":{"id":"284e549e5ff68631","repo":"deepseek-ai/deepseek-harness","slug":"native-path-opener-is-unsupported-on-platform","errorCode":null,"errorMessage":"native path opener is unsupported on ${platform}","messagePattern":"native path opener is unsupported on (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/native-path-opener.ts","lineNumber":152,"sourceCode":"    await run('open', intent === 'text-editor' ? ['-t', path] : [path], signal)\n    return\n  }\n\n  if (platform === 'win32') {\n    await openWindowsPath(path, signal, run)\n    return\n  }\n\n  if (platform === 'linux') {\n    if (wsl) {\n      await openWslPath(path, signal, run)\n      return\n    }\n    await run('xdg-open', [path], signal)\n    return\n  }\n\n  throw new Error(`native path opener is unsupported on ${platform}`)\n}\n\n/**\n * Whether {@link openNativePath} plausibly reaches a desktop on this host.\n *\n * macOS and Windows always carry a desktop opener; Linux does when it is WSL\n * (the Windows desktop takes the path) or a display server is announced.\n * A headless or containerised Linux host answers false, which is what lets a\n * surface show a path as text instead of offering a button that would spawn\n * `xdg-open` into nothing.\n * @param internals - platform and environment seam for deterministic tests.\n * @returns true when handing a path to the native opener can work at all.\n */\nexport function canOpenNativePath(internals: PathOpenerInternals = {}): boolean {\n  const platform = internals.platform ?? process.platform\n  if (platform === 'darwin' || platform === 'win32') return true\n  if (platform !== 'linux') return false\n  const env = internals.env ?? process.env","sourceCodeStart":134,"sourceCodeEnd":170,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/native-path-opener.ts#L134-L170","documentation":"Error \"native path opener is unsupported on ${platform}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/native-path-opener.ts:152 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"}