[Bug]: SSH remote connection fails on Windows hosts - app-server requires a Unix-like remote host

Open
#611 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

Start by tracing how Desktop SSH connections install the remote CLI and launch the remote app-server; the issue does not name source files or tests. Check how the existing flow handles Unix-like hosts and where it reports remote startup failures. Done means Windows remotes either work through installation and app-server startup, or receive a clear unsupported-host message; the issue leaves support status and scope for maintainers to decide.

Written by the indexing model from the issue text.

Description

desktop
Product or interface

Desktop app

Version
  • Desktop app (client): 3.1.16 (macOS)
  • Remote CLI @minimax-ai/code: 0.7.7 (Windows x64, installed manually via install.ps1)
  • Remote CLI installed via the official Windows installer is reported as 0.7.7
Platform

Multiple platforms

OS version and architecture
  • Remote host: Windows 11, Microsoft Windows NT 10.0.26100.0, x64
  • Client: macOS 15.7.7, arm64
Issue area

Startup / install / update

Steps to reproduce
  1. Install MiniMax Code Desktop on a macOS machine.
  2. Open Settings → Connections → SSH → Add, and pick a host entry that points at a Windows machine over SSH (host 192.168.5.x, port 22, identity file ~/.ssh/<key>). The host entry is read from ~/.ssh/config.
  3. The connection is saved and enabled, but the host stays in a failed state with: "Remote MCode installation failed. Please check the developer machine network and retry."
  4. Click Install MCode on that host entry. The remote installer fails again, and the remote machine gets a new log file under ~/.minimax-code-install-logs/install-*.log.
  5. Install the CLI on the Windows host manually instead:
    irm https://filecdn.minimax.chat/public/install.ps1 | iex
    
    This succeeds and mcode --version reports 0.7.7.
  6. With the CLI present, the Desktop app still cannot connect. The app-server it needs on the remote host refuses to start on Windows (see the error summary below).
Expected and actual behavior

Expected: A Windows machine reachable over SSH can be registered as an SSH remote host in Settings → Connections → SSH, and the Desktop app can drive the MiniMax Code runtime installed there — the same way a Linux host works today.

Actual: Two independent Windows-specific failures block this:

  1. The Desktop remote installer runs the Unix installer on Windows. It executes install.sh on the Windows host, and that script rejects the platform:

    ==> [1/5] Checking platform and install location
    error: Windows is not supported by install.sh; run the install.ps1 command in PowerShell.
    

    The official install.ps1 works correctly when run manually in PowerShell on the same host.

  2. The remote app-server refuses to start on a Windows host. Even after the CLI is installed correctly, the app-server the Desktop app needs to connect to is rejected:

    mcode app-server daemon bootstrap --auth-mode remote-oauth
    {"action":"bootstrap","error":{"code":"appServerDaemonCommandFailed",
     "message":"The app-server daemon requires a Unix-like remote host.",
     "recommendedAction":"inspectRemoteLogs"}}
    
    mcode app-server --listen unix://<path> --foreground
    The app-server Unix transport requires a Unix-like remote host.
    

    Both the daemon path and the direct --listen unix:// path are refused, so this is not a configuration problem — the Windows host cannot host the app-server at all.

Redacted error summary
# Desktop side (macOS client), Settings -> Connections -> SSH
[info] [SshRuntime] connection failed: The remote CLI path could not be discovered.
[info] [SshRecovery] {"hostId":"<windows-host>","state":"action_required","phase":"stopped",
                       "code":"remote_mcode_not_found","disposition":"action_required"}
# Windows remote host, Desktop "Install MCode" action
[mcode-install] operationId=manual-<id> stage=1
==> [1/5] Checking platform and install location
error: Windows is not supported by install.sh; run the install.ps1 command in PowerShell.
[mcode-install] operationId=manual-<id> stage=1 exitCode=1
# Windows remote host, manual CLI install -> succeeds
> irm https://filecdn.minimax.chat/public/install.ps1 | iex
... Installation complete: @minimax-ai/[email protected] (fresh)
> mcode --version
0.7.7
# Windows remote host, app-server bootstrap (the blocker)
> mcode app-server daemon bootstrap --auth-mode remote-oauth
{"action":"bootstrap","error":{"code":"appServerDaemonCommandFailed",
 "message":"The app-server daemon requires a Unix-like remote host.",
 "recommendedAction":"inspectRemoteLogs"}}

> mcode app-server --listen unix://<path> --foreground
The app-server Unix transport requires a Unix-like remote host.
Screenshots

The Settings → Connections → SSH editor for the Windows host is filled in correctly (host 192.168.5.x, port 22, identity file ~/.ssh/<key>), and the host entry shows the "Remote MCode installation failed" state. Screenshot can be provided on request.

Additional notes
  • The SSH connection configuration itself is correct, and plain SSH to the same host works fine (mcode --version returns 0.7.7 over a normal SSH session).
  • The CLI on Windows is fully functional for headless use: mcode exec "..." runs successfully on the Windows host and returns a proper result. Only the Desktop-to-remote app-server transport is affected.
  • Related existing issues: #545 (slow hosts / stale socket) and #546 (remote app-server footprint). Both discuss Linux remotes only; neither covers a Windows remote host.
  • Searched this repository for existing reports: there is no issue or feature request about Windows as an SSH remote host — all Windows reports are about Windows as a client.
Before submitting
  • I have searched existing issues.
  • I have included my version and removed sensitive information.
Question for the maintainers

Is Windows supported (or planned) as an SSH remote host for the Desktop app? If it is not, could the Desktop app either:

  1. detect a Windows remote host and run install.ps1 instead of install.sh, and
  2. surface a clear "Windows remotes are not supported yet" message instead of the current generic installation failure?

Documenting the current limitation in the Connections settings page would also help — currently the SSH remote feature has no documentation page, and the only platform guidance I could find is in the changelog.

Thanks for taking a look.

Dominant language
TypeScript
Stars
2.3k
Forks
315
Avg merge
3h 54m
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MiniMax-AI/minimax-code

All issues in MiniMax-AI/minimax-code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.