feat(remote): add guarded ssh target runtime core#811
Closed
luoye520ww wants to merge 2 commits into
Closed
Conversation
This was referenced Jul 9, 2026
Reintroduces the backend SSH remote target runtime on the current develop baseline without the picker UI or port-forward tool. The runtime primes per-thread remote targets before a turn, evicts cached bindings when threads are cleared or deleted, and keeps the feature behind explicit thread remote target state.
luoye520ww
force-pushed
the
codex/p0-remote-target-core
branch
from
July 10, 2026 07:33
1340cb1 to
50e81c9
Compare
Collaborator
|
感谢这次实现。当前 PR 暂不合入并关闭,原因如下:
建议后续基于最新 develop 重新拆分:先提交远程目标契约与安全模型,再分别提交连接管理、受控文件操作、受控命令执行和 UI,每个阶段提供独立测试与产品入口。关闭仅针对当前实现形态,不否定该方向。 |
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.
Summary
developbaseline.Why this is split from the reverted remote feature
#690 reverted the earlier SSH Remote work because the product surface was not mature enough for release. This PR keeps only the guarded runtime foundation; Picker UI and Port Forward remain separate follow-up PRs.
Safety and reliability
remoteDirbefore protected-path checksexitCode: nullas tool errorsremoteDirtwice during SSH precheckTests
npm.cmd --prefix kun test -- src/remote/remote-command-risk.test.ts src/remote/remote-profile.test.ts src/remote/remote-connection.test.ts src/remote/remote-hosts-service.test.ts src/remote/ssh-executor.test.ts src/adapters/tool/remote-file-tools.test.ts src/adapters/tool/remote-command-tool.test.ts(60 passed)npm.cmd run build:kungit diff --checkFull Kun typecheck is currently blocked only by the shared
developbaseline tracked in #829; this branch adds no additional type errors after the production build.