{"record":{"id":"436ad0fe5094273d","repo":"HKUDS/nanobot","slug":"nanobot-tui-bin-does-not-exist-executable","errorCode":null,"errorMessage":"NANOBOT_TUI_BIN does not exist: {executable}","messagePattern":"NANOBOT_TUI_BIN does not exist: (.+?)","errorType":"exception","errorClass":"TuiUnavailableError","httpStatus":null,"severity":"error","filePath":"nanobot/cli/tui_launcher.py","lineNumber":160,"sourceCode":"            except subprocess.TimeoutExpired:\n                process.kill()\n                process.wait()\n        raise\n    finally:\n        lease = getattr(gateway, \"lease\", None) if gateway is not None else None\n        if lease is not None:\n            # Returning to the shell must not wait for process termination. The\n            # gateway's client monitor observes the released last lease and owns\n            # the orderly on-demand shutdown.\n            lease.release(wait_for_stop=False)\n\n\ndef _resolve_tui_command() -> list[str]:\n    override = os.environ.get(\"NANOBOT_TUI_BIN\", \"\").strip()\n    if override:\n        executable = Path(override).expanduser().resolve(strict=False)\n        if not executable.is_file():\n            raise TuiUnavailableError(f\"NANOBOT_TUI_BIN does not exist: {executable}\")\n        return [str(executable)]\n\n    suffix = \".exe\" if os.name == \"nt\" else \"\"\n    system = {\"Windows\": \"win32\", \"Darwin\": \"darwin\", \"Linux\": \"linux\"}.get(\n        platform.system(),\n        platform.system().lower(),\n    )\n    machine = {\"x86_64\": \"x64\", \"AMD64\": \"x64\", \"aarch64\": \"arm64\"}.get(\n        platform.machine(),\n        platform.machine().lower(),\n    )\n    if system == \"win32\" and machine == \"arm64\":\n        raise TuiUnavailableError(\n            \"the native TUI is not available on Windows ARM64 because Bun FFI is disabled \"\n            \"on that platform; use the classic prompt until the upstream runtime supports it\"\n        )\n    asset = f\"nanobot-tui-{system}-{machine}{suffix}\"\n    source_dir = _source_checkout_tui_dir()","sourceCodeStart":142,"sourceCodeEnd":178,"githubUrl":"https://github.com/HKUDS/nanobot/blob/42f37dc4c0e409eac7818a82d165c5f2757bc075/nanobot/cli/tui_launcher.py#L142-L178","documentation":"Error \"NANOBOT_TUI_BIN does not exist: {executable}\" thrown in HKUDS/nanobot.","triggerScenarios":"Thrown at nanobot/cli/tui_launcher.py:160 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":"42f37dc4c0e409eac7818a82d165c5f2757bc075","analyzedAt":"2026-08-26T00:18:52.276Z","schemaVersion":2},"datasetVersion":"2026-08-26T04:18:47.238Z"}