{"record":{"id":"e3e39be940894edc","repo":"deepseek-ai/deepseek-harness","slug":"unsupported-deepseek-harness-runtime-mode-selecte","errorCode":null,"errorMessage":"unsupported DeepSeek Harness runtime mode {selected!r}: expected 'exe' or 'node' (explicit argument or $DSH_RUNTIME_MODE)","messagePattern":"unsupported DeepSeek Harness runtime mode (.+?): expected 'exe' or 'node' \\(explicit argument or \\$DSH_RUNTIME_MODE\\)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/sdk-runtime/src/deepseek_harness_runtime/__init__.py","lineNumber":120,"sourceCode":"\ndef resolve_bundled_launch_args(mode: str | None = None) -> tuple[str, ...]:\n    \"\"\"The argv tuple that launches the bundled runtime.\n\n    Mode selection: the explicit ``mode`` argument wins, then the\n    ``DSH_RUNTIME_MODE`` environment variable (``exe`` | ``node``), then\n    automatic resolution. Automatic resolution finds the production exe ONLY —\n    the dev-only node carrier must be selected explicitly so a production\n    deployment can never silently ride on a source build. Returns\n    ``(exe_path,)`` in exe mode and ``(node_path, bin_js_path)`` in node mode;\n    raises FileNotFoundError when the selected carrier is unavailable and\n    ValueError for an unknown mode value.\n    \"\"\"\n    selected = mode if mode is not None else os.environ.get(RUNTIME_MODE_ENV_VAR)\n    if selected is None or selected == \"exe\":\n        return (str(bundled_runtime_path()),)\n    if selected == \"node\":\n        return _node_launch_args()\n    raise ValueError(\n        f\"unsupported DeepSeek Harness runtime mode {selected!r}: expected 'exe' or 'node' \"\n        f\"(explicit argument or ${RUNTIME_MODE_ENV_VAR})\"\n    )\n\n\ndef _current_platform_tag() -> str:\n    plat = _PLATFORM_TAGS.get(sys.platform)\n    arch = _ARCH_TAGS.get(platform.machine().lower())\n    if plat is None or arch is None:\n        raise FileNotFoundError(\n            \"no bundled dsh-jsonrpc-agent executable exists for this platform \"\n            f\"(sys.platform={sys.platform!r}, machine={platform.machine()!r}); supported: \"\n            \"linux/macos on x64/arm64. \" + _EXE_ACQUISITION_HINT\n        )\n    return f\"{plat}-{arch}\"\n\n\ndef _node_launch_args() -> tuple[str, str]:","sourceCodeStart":102,"sourceCodeEnd":138,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/python/sdk-runtime/src/deepseek_harness_runtime/__init__.py#L102-L138","documentation":"Error \"unsupported DeepSeek Harness runtime mode {selected!r}: expected 'exe' or 'node' (explicit argument or $DSH_RUNTIME_MODE)\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at python/sdk-runtime/src/deepseek_harness_runtime/__init__.py:120 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Select runtime mode 'exe' or 'node' via the explicit argument or DSH_RUNTIME_MODE."],"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"}