Skip to content

fix(desktop): resolve ssh.exe absolute path on Windows for remote terminal (#5345) - #5369

Merged
7Sageer merged 4 commits into
MoonshotAI:release/2026-11-25from
markankamaransheogarat-sys:fix/desktop-windows-ssh-terminal-path-5345
Nov 25, 2026
Merged

7Sageer merged 4 commits into
MoonshotAI:release/2026-11-25from
markankamaransheogarat-sys:fix/desktop-windows-ssh-terminal-path-5345

Conversation

@markankamaransheogarat-sys

Copy link
Copy Markdown

Fixes #5345

Summary

  • apps/desktop/src/main/terminal/manager.ts: Add resolveSshExecutable(platform, env, pathExists) and use it when spawning remote SSH terminals. On win32, node-pty's get_shell_path fails on bare 'ssh' (it does not append .exe, drops the final PATH entry, and returns an empty path on CWD match). resolveSshExecutable searches PATH/Path (handling quoted and final entries), then falls back to %SystemRoot%\System32\OpenSSH\ssh.exe, %ProgramFiles%\Git\usr\bin\ssh.exe, and finally ssh.exe. POSIX platforms keep 'ssh'.
  • apps/desktop/tests/main/terminal/manager.test.ts: Add unit tests covering POSIX ssh, Windows PATH resolution (including quoted and final entries), System32\OpenSSH\ssh.exe and Git\usr\bin\ssh.exe fallbacks, and createTerminalManager().create({ ssh }) on win32.
  • .changeset/desktop-windows-ssh-terminal-path.md: Add patch changeset for kimi-code-app.

Verification

  • pnpm --filter kimi-code-app exec vitest run tests/main/terminal/manager.test.ts -> 25/25 passed
  • pnpm --filter kimi-code-app typecheck -> passed (tsc + vue-tsc)

sailist and others added 4 commits November 24, 2026 17:40
…oonshotAI#5141)

* docs: clarify tool registration and filtering

* fix(agent-core-v2): initialize loop after profile and mode selection

Start new agents on their first submission or operation while restoring
persisted agents immediately. Gate Tower activation after startup so its
tools enter the initial baseline.

* fix(agent-core-v2): restore deferred loop initialization

Derive startup state from the loop and its initialization promise, allow
failed starts to retry, and start source agents before forking. Preserve
initial tool baselines and align reminder and history initialization tests.

* test(desktop): initialize loops for browser reminder tests

Start loops before driving reminder hooks and seeding browser histories so
deferred initialization cannot leave reminder assertions empty.

* feat(agent-core-v2): toggle tower mode mid-session with deferred tools

* test(agent-core-v2): cover tower deferred tools end to end

* test(agent-core-v2): script tower tests with the testkit model
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T14:48:41.042057Z ce8e0b6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@changeset-bot

changeset-bot Bot commented Nov 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ce8e0b6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kimi-code-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Nov 25, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@ce8e0b6
npx https://pkg.pr.new/@moonshot-ai/kimi-code@ce8e0b6

commit: ce8e0b6

@7Sageer
7Sageer changed the base branch from main to release/2026-11-25 November 25, 2026 04:03
@7Sageer
7Sageer merged commit f8375e1 into MoonshotAI:release/2026-11-25 Nov 25, 2026
38 of 39 checks passed
kimi-agent-bot pushed a commit that referenced this pull request Nov 25, 2026
…minal (#5345) (#5369)

* fix(agent-core-v2): initialize loop after profile and mode selection (#5141)

* docs: clarify tool registration and filtering

* fix(agent-core-v2): initialize loop after profile and mode selection

Start new agents on their first submission or operation while restoring
persisted agents immediately. Gate Tower activation after startup so its
tools enter the initial baseline.

* fix(agent-core-v2): restore deferred loop initialization

Derive startup state from the loop and its initialization promise, allow
failed starts to retry, and start source agents before forking. Preserve
initial tool baselines and align reminder and history initialization tests.

* test(desktop): initialize loops for browser reminder tests

Start loops before driving reminder hooks and seeding browser histories so
deferred initialization cannot leave reminder assertions empty.

* feat(agent-core-v2): toggle tower mode mid-session with deferred tools

* test(agent-core-v2): cover tower deferred tools end to end

* test(agent-core-v2): script tower tests with the testkit model

* refactor(core): replace loop.drained/loop.idle with loop end info on turn.ended (#5337)

* fix(llm): validate deferred tool arguments against the visible tool view (#5231)

* fix(desktop): resolve ssh.exe absolute path on Windows for remote terminal (#5345)

---------

Co-authored-by: Haozhe <[email protected]>
kimi-agent-bot pushed a commit that referenced this pull request Nov 25, 2026
…minal (#5345) (#5369)

* fix(agent-core-v2): initialize loop after profile and mode selection (#5141)

* docs: clarify tool registration and filtering

* fix(agent-core-v2): initialize loop after profile and mode selection

Start new agents on their first submission or operation while restoring
persisted agents immediately. Gate Tower activation after startup so its
tools enter the initial baseline.

* fix(agent-core-v2): restore deferred loop initialization

Derive startup state from the loop and its initialization promise, allow
failed starts to retry, and start source agents before forking. Preserve
initial tool baselines and align reminder and history initialization tests.

* test(desktop): initialize loops for browser reminder tests

Start loops before driving reminder hooks and seeding browser histories so
deferred initialization cannot leave reminder assertions empty.

* feat(agent-core-v2): toggle tower mode mid-session with deferred tools

* test(agent-core-v2): cover tower deferred tools end to end

* test(agent-core-v2): script tower tests with the testkit model

* refactor(core): replace loop.drained/loop.idle with loop end info on turn.ended (#5337)

* fix(llm): validate deferred tool arguments against the visible tool view (#5231)

* fix(desktop): resolve ssh.exe absolute path on Windows for remote terminal (#5345)

---------

Co-authored-by: Haozhe <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants