Skip to content

bug: diagnose unusable python3 on native Windows SSH destinations #151

Closed

Description

@abruption

Found during #150 on published 1.0.0rc1.

An authenticated macOS-to-native-Windows OpenSSH session-peer list --host USER@HOST --output-format json fails with only error: "USER@HOST: Python" when python3.exe resolves to the Windows Store execution alias. Working Python 3.10 is available as python.exe; local Windows list successfully discovers both Claude and Codex.

Reproduction: install CPython as python, leave the WindowsApps python3 alias on PATH, establish a valid SSH connection, then run remote list from macOS. Plain SSH whoami and python --version succeed; python3 --version emits only Python in this environment. No messages were submitted by the failing list operation.

session_peer_core/ssh.py:run_remote unconditionally executes python3 - and uses POSIX shlex.quote. The current failure does not explain the missing usable interpreter or native-Windows SSH boundary. Full native Windows SSH shell compatibility is not established by this result.

Expected: either resolve a supported remote Python/shell explicitly, or fail with an actionable diagnostic identifying the interpreter prerequisite and supported Windows/WSL route. Clarify the support matrix so native local CLI support is not mistaken for every inbound SSH shell being supported.

Acceptance: deterministic coverage for Store alias/non-working python3, usable-python prerequisite diagnostics, retained POSIX SSH argument safety, and a native Windows host validation if support is extended. Any runtime change requires RC2; do not silently rewrite SSH settings or disable the Store alias.

Environment: macOS arm64 sender, session-peer 1.0.0rc1; Windows native OpenSSH, Python 3.10.0, Claude Code 2.1.278; initial Windows package 0.9.1 (irrelevant to source-streamed remote execution). Secrets and addresses omitted.

Activity

  1. added this to the v1.0.0-rc.2 milestone on Sep 22, 2026
  2. added
    bug
    on Sep 22, 2026
  3. abruption commented on Sep 22, 2026

    @abruption
    OwnerAuthor

    Candidate now returns an actionable remoteRuntimeFailure=python3_unavailable_or_unsupported_shell on the actual native Windows SSH destination, replacing the previous bare "Python" error. It explicitly requires working python3 plus a POSIX-compatible remote shell, identifies Store aliases as insufficient, and recommends the native local CLI or a WSL SSH endpoint. No SSH settings, aliases or installed runtimes were changed; no automatic fallback/resend. Three deterministic regression tests pass, including preservation of SSH-auth failure precedence. This is a diagnosis fix, not a claim of native Windows SSH shell support. Included in stable 0.9.2 and RC forward-fix candidates.

  4. abruption commented on Sep 24, 2026

    @abruption
    OwnerAuthor

    2026-09-24 stable preflight: one read-only macOS→native-Windows SSH list attempt against the currently authenticated host reproduced the Windows Store python3 alias prerequisite. Plain python3 --version returned only "Python" (exit 49). session-peer 1.0.0 preparation source returned ok=false and remoteRuntimeFailure=python3_unavailable_or_unsupported_shell with actionable guidance to use a working python3 + POSIX-compatible remote shell, native local CLI, or WSL SSH endpoint. No message was submitted, no fallback or resend, and no SSH/Windows settings were changed. This verifies the issue’s diagnostic acceptance, not native Windows SSH shell support. The fix shipped in stable 0.9.2 and was carried into v1.0.0 candidates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions