fix(cli): harden attach-only Desktop selection [skip ci]

Preserve current Python startup when Desktop is not ready before target selection, while refusing fallback after the user chooses Desktop. Keep retained launchers and virtual environment labels consistent.

Authenticate Windows pipe ownership before I/O and drain cancelled operations before releasing buffers. Add entrypoint, failure-path, transport and credential-safe browser regressions without changing backend lifecycle or configuration.
This commit is contained in:
Xubin Ren committed 2026-09-08 10:04:15 +08:00
1 parent 8fe0c62d68
commit dba77b5e74
8 files changed
+529 -43

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ def test_root_alias_dispatches_the_shared_agent_command(monkeypatch) -> None:
def test_desktop_handled_bare_invocation_does_not_start_python(monkeypatch) -> None:
from nanobot.cli import desktop_target
monkeypatch.setattr(entry.sys, "argv", ["nanobot", "webui"])
monkeypatch.setattr(entry.sys, "argv", ["nanobot"])
monkeypatch.setattr(entry, "set_cli_process_identity", lambda _args: None)
monkeypatch.setattr(entry, "_configure_windows_console", lambda: None)
monkeypatch.setattr(desktop_target, "dispatch_bare_desktop_target", lambda _args: 0)