diff --git a/docs/cli-reference.md b/docs/cli-reference.md index 7f7b7a15a..09cc50d6d 100644 --- a/docs/cli-reference.md +++ b/docs/cli-reference.md @@ -39,9 +39,8 @@ 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. +Use `Up`/`Down` to highlight an installation and `Enter` to confirm. +`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. diff --git a/nanobot/cli/desktop_target.py b/nanobot/cli/desktop_target.py index f84e431e9..f32b060b6 100644 --- a/nanobot/cli/desktop_target.py +++ b/nanobot/cli/desktop_target.py @@ -191,7 +191,6 @@ def _choose_target(status: DesktopReply) -> Literal["desktop", "python"]: ), ], default="desktop", - use_shortcuts=True, instruction="(↑/↓ to move, Enter to confirm, Ctrl+C to cancel)", ).unsafe_ask() except (EOFError, KeyboardInterrupt): diff --git a/tests/cli/test_desktop_target.py b/tests/cli/test_desktop_target.py index f329247ae..19df17259 100644 --- a/tests/cli/test_desktop_target.py +++ b/tests/cli/test_desktop_target.py @@ -216,8 +216,8 @@ def test_absent_desktop_selects_current_python(monkeypatch, capsys) -> None: ("\x1b[B\r", "python"), ("\x1b[B\x1b[A\r", "desktop"), ("\x1b[A\r", "python"), - ("2\r", "python"), - ("21\r", "desktop"), + ("2\r", "desktop"), # Numeric keys no longer move the highlight. + ("\x1b[B1\r", "python"), ]) def test_target_picker_accepts_real_navigation_keys(keys, expected): with create_pipe_input() as pipe_input: