fix(tui): enforce supported platform boundaries

This commit is contained in:
Xubin Ren
2026-08-17 20:56:10 +08:00
parent 406509aeb8
commit 14c5607e5e
5 changed files with 26 additions and 2 deletions
+5
View File
@@ -108,6 +108,11 @@ def _resolve_tui_command() -> list[str]:
platform.machine(),
platform.machine().lower(),
)
if system == "win32" and machine == "arm64":
raise TuiUnavailableError(
"the native TUI is not available on Windows ARM64 because Bun FFI is disabled "
"on that platform; use the classic prompt until the upstream runtime supports it"
)
asset = f"nanobot-tui-{system}-{machine}{suffix}"
packaged = Path(__file__).resolve().parents[1] / "tui" / "bin" / asset
if packaged.is_file():