fix(cli): make Desktop target selection keyboard navigable [skip ci]

Reuse the existing questionary selector so users can highlight a target with arrow keys and confirm with Enter. Retain numeric shortcuts and the current Python executable label without changing discovery or attachment behavior.

Keep cancellation fail-closed with exit code 130. Exercise real navigation, EOF and Ctrl+C through both CLI launchers so cancelling cannot start a Python backend or attach to Desktop. Document the controls.
This commit is contained in:
Xubin Ren committed 2026-09-08 10:04:15 +08:00
1 parent 9a594f74ff
commit cf74d1c7e5
4 files changed
+116 -14

No files matched your search

+3
View File
@@ -39,6 +39,9 @@ The Python package and Nanobot Desktop keep separate runtimes, configuration,
workspaces, and state. When a running Desktop release publishes its private
terminal-access descriptor, an interactive bare `nanobot` or `nanobot webui`
asks which installation to use after authenticating a ready Desktop target.
Use `Up`/`Down` to highlight an installation and `Enter` to confirm; `1`/`2`
also move the highlight. `Ctrl+C` cancels with exit code 130 without attaching
to Desktop or starting a Python backend.
If Desktop is absent, busy, unavailable, or cannot be authenticated, the command
reports the current Python executable and continues normally. A virtual
environment's executable is shown without resolving it to its base interpreter.