Repository navigation
fix(desktop): resolve ssh.exe absolute path on Windows for remote terminal (#5345) - #5369
Merged
Conversation
…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
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🦋 Changeset detectedLatest commit: ce8e0b6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
commit: |
7Sageer
approved these changes
Nov 25, 2026
7Sageer
merged commit Nov 25, 2026
f8375e1
into
MoonshotAI:release/2026-11-25
38 of 39 checks passed
This was referenced Nov 25, 2026
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]>
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5345
Summary
apps/desktop/src/main/terminal/manager.ts: AddresolveSshExecutable(platform, env, pathExists)and use it when spawning remote SSH terminals. Onwin32,node-pty'sget_shell_pathfails on bare'ssh'(it does not append.exe, drops the finalPATHentry, and returns an empty path on CWD match).resolveSshExecutablesearchesPATH/Path(handling quoted and final entries), then falls back to%SystemRoot%\System32\OpenSSH\ssh.exe,%ProgramFiles%\Git\usr\bin\ssh.exe, and finallyssh.exe. POSIX platforms keep'ssh'.apps/desktop/tests/main/terminal/manager.test.ts: Add unit tests covering POSIXssh, WindowsPATHresolution (including quoted and final entries),System32\OpenSSH\ssh.exeandGit\usr\bin\ssh.exefallbacks, andcreateTerminalManager().create({ ssh })onwin32..changeset/desktop-windows-ssh-terminal-path.md: Add patch changeset forkimi-code-app.Verification
pnpm --filter kimi-code-app exec vitest run tests/main/terminal/manager.test.ts-> 25/25 passedpnpm --filter kimi-code-app typecheck-> passed (tsc+vue-tsc)