Repository navigation
feat(desktop): 远程开发窗口按原型补齐选文件夹、信任、导入页和测试结果 (#2231) - #2279
Merged
Merged
Conversation
空状态卡片和导入菜单的 Motty、~/.ssh/config 数量此前不带已保存列表,Core 无法标出已存在的主机;现在把列表交给 Core,并在每次列表变化后重新计数。
- 三页都画在右侧页面里,左侧列表保留;在列表里选另一个连接、新建或导入时先结束当前流程(正在打开或导入时不打断)
- 选文件夹页:头部显示主机图标、“选择 {name} 上的文件夹”、已连接、地址和系统,右侧断开
- 路径栏加“前往”;常用:主目录与最近打开的文件夹;面包屑可点
- 列表首行“上一级”,文件夹行提示双击进入,文件灰色显示
- 底部“稍后再选”和“打开 {文件夹名}”
- 侧栏连接行:左侧连接颜色竖条、选中底色;正在选文件夹的连接也显示“已连接” - 选文件夹:列表显示后用已有 remote.stat 查前 64 个子文件夹的 .git(最多 8 个并行),标“Git” - 表单:测试结果移到高级选项之后;成功为绿框一行结论加主机信息标签,失败为红框原因加检查建议,OpenSSH 输出在框下方,可展开/收起 - 高级选项改为分隔线下的折叠标题,折叠时显示当前连接超时和保活间隔 - 面包屑显示“编辑 <名称>”,表单顶部不再重复标题 - 新增测试成功截图场景,重新生成全部截图
xiaoyumuxi
marked this pull request as ready for review
November 21, 2026 11:23
This was referenced Nov 21, 2026
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.
关联 Issue / Linked issue
main重新带上,并补上功能矩阵。PR 类型 / Type
改动说明 / What changes
背景 / Why
#2275 合入时,远程开发窗口的选文件夹、信任、导入三页和测试结果还没按原型(#2276)做完。这几部分的提交在 #2275 合入之后才推到原分支,所以没进 main。本 PR 从最新
main重新 cherry-pick 这些提交。main 已合入 ⑤ 搜索(#2278),本 PR 解决了冲突。Core 逻辑都在已合入的 Core #154 里,桌面端只负责显示。改动 / Changes
~/.ssh/config可导入数量,现在把已保存列表交给 Core 比对,已经保存过的主机不再计入。主机 : 路径;正文说明信任后会在远端运行哪些程序。ssh -G解析出的生效值和结果。config.db,不读取vault.json,不导入密码。remote-connections.json里远程工作区的 banner 和 localOnly 两条词条,保留 main 的版本(⑤ 搜索已可用),只加入导入页的新词条。remote.stat查看前 64 个子文件夹里有没有.git(目录或工作树的文件),最多 8 个并行,有的标“Git”。crates/remote,所以没有新增 Core 方法,由桌面端组合已有方法。remote-connections.json的能力描述和验证动作补上搜索、导入、ssh -G生效设置、测试结果和 Git 标记,证据加上新的视图文件。文案、测试与截图
shared/i18n/features/remote-connections.json补齐中英文词条,重新生成shared.generated.go。TestRemoteImportCountsLeaveOutSavedHosts:用替身 Kernel 返回导入列表(不跑 ssh、不读账号文件),确认保存 alpha 后可导入数量从 2 变成 1。TestRemoteImportNewGroupsAreTheChosenOnesTheListLacks:底部只列出勾选主机带来、列表里还没有的分组;不保留分组时不列。TestRemoteBrowserTagsGitRepositories:.git是目录或文件的子文件夹都标 Git,其他不标。TestRemoteTestAsksInTheWindowAndReportsTheHost改为检查成功结果的“这台主机可以用于远程开发”,不再找主机信息表格的“CPU 数”表头。TestVisualRemoteConnections:新增测试成功、选文件夹、SSH 配置导入场景,信任、Motty 导入等场景重新截图。说明见docs/assets/remote-connections/README.md。不在本 PR 范围内 / Out of scope
类型专属:feat
多平台对齐
范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/remote-connections.json:能力、证据、验证动作和 notes 已更新,两端验证状态保持pending(没有做原生验收)./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh和./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD,均通过.artifacts/下生成的矩阵视图插件归属 / Plugin ownership
N/A:只改宿主的远程开发窗口,不涉及插件。
UI 验证 / UI evidence
TestVisualRemoteConnections(-tags vivahead,lithevisual,1200×760,浅色英文、深色中文),共 14 个场景、28 张截图。在合并 main 后的代码上重跑过,与已提交截图逐字节相同docs/assets/remote-connections/,本次改动的场景嵌入下方统一日志系统 / Structured logging
app.action.performed事件(a.performed),没有新增事件,也没有手写事件 ID界面文案 / i18n
shared/i18n/features/remote-connections.json,已运行node scripts/i18n/generate-i18n.mjs并提交生成结果node scripts/i18n/verify-app-language-localization.mjs和node scripts/i18n/generate-i18n.mjs --check,均通过,没有放宽脚本逻辑归属 / Logic placement
crates/remote):导入候选与状态判断、ssh -G生效值、远程信任、已保存主机比对。桌面端只负责显示和转发用户的选择remote.stat做显示,没有新的判定规则。按 [Feature] 远程开发完整设计:各平台连接 Linux(SSH、WSL、容器),插件留在本机、工具与项目进程在远端运行 #2231 的约束 Core 改动只限crates/remote,这里不需要新增 Core 方法~/.ssh/config是 Core 给出的导入来源)性能与内存 / Performance and memory
设置 / Settings
config.db和 SSH 配置,打开页面时不写文件;不读取vault.json,密码不回显也不保存插件契约 / Plugin contract
N/A:只用到 Core 的远程开发接口(
crates/remote),不涉及插件契约、能力版本或宿主方法。发行包与资源 / Bundle and resources
./scripts/desktop/verify/verify-runtime-bundle-immutability.sh,通过无用代码与重构 / Dead code and refactoring
验证 / Verification
以下都在合并最新 main 后的代码上运行。
../scripts/desktop/desktop-go.sh test ./internal/workbench -count=1../scripts/desktop/desktop-go.sh vet ./internal/workbench../scripts/desktop/desktop-go.sh test -tags vivahead,lithevisual ./internal/workbench -run '^TestVisualRemoteConnections$'gofmt -l internal/node scripts/i18n/verify-app-language-localization.mjs/generate-i18n.mjs --checkverify-platform-feature-matrix.sh/verify-platform-feature-matrix-change.sh origin/main HEADverify-runtime-bundle-immutability.sh未能执行的检查和原因:
go test ./internal/...没有跑,只跑了改动所在的workbench包。提交前确认 / Final checks
main创建,目标分支main