Skip to content

首次启动分步提示,并支持容器创建模板 - #9

Merged
timeroute merged 1 commit into
mainfrom
cursor/setup-steps-and-templates-fef7
Oct 11, 2026
Merged

timeroute merged 1 commit into
mainfrom
cursor/setup-steps-and-templates-fef7

Conversation

@timeroute

Copy link
Copy Markdown
Owner

改了什么

首次启动不再只有一条总进度。安装弹窗分成两步,每步有「等待 / 检查中 / 通过 / 失败」:

  1. 检查 WSL 版本,要求 2.9.3 或更高。没有装、读不出版本,或版本过低时,失败原因写在这一步上,并提示运行 wsl --update。
  2. 下载并安装 SDK(含连接会话)。失败时同样把原因写在这一步上。

任一步失败后,会出现醒目的「查看日志 / 重试」。查看日志会打开应用内日志面板,可以一键复制;同时把日志追加写入 %LOCALAPPDATA%\WSLcDesktop\logs\sdk-setup.log,并可以「打开日志文件夹」。WSL 检查没过时不会继续下载 SDK。

创建容器对话框增加模板:

  • 「存为模板」会记下镜像、容器名、端口、绑定挂载、命名卷、退出后删除、命令。同名再次保存会更新该模板。
  • 打开创建对话框即可「从模板填充」,填完后字段仍可改。
  • 模板可以重命名、删除。
  • 存在 %LOCALAPPDATA%\WSLcDesktop\templates.json,和 prefs、catalog 放在一起。这一版没有导入/导出。

新增文案都走现有中英 i18n。

English

First launch now shows two steps (WSL 2.9.3+ check, then SDK install) with pass/fail on the step, plus Retry and an in-app copyable log that is also written under the app data logs folder. The create-container dialog can save, fill, rename, and delete local JSON templates.

未验证

  • 没有在 Windows 上实际跑过界面:WSL 命令输出、explorer 打开日志文件夹、剪贴板复制、GPUI 布局都只在代码和单元测试里覆盖。
  • Linux 上 cargo check 与 cargo test 通过(13 个测试,含版本判断、模板 JSON、日志轮转)。为了能在这台机器上编译 GPUI,安装了 fontconfig / xkbcommon 等系统库;这不代表 Windows 运行时已测过。
  • wsl --version 的中英文样例输出有单元测试;真实机器上的输出格式若和样例差很多,可能被当成「读不出版本」。
Open in Web Open in Cursor 

First-launch failures should say whether WSL or the SDK
failed, and keep a log the user can copy. Create forms are
saved locally so the same ports and mounts are not retyped.

Co-authored-by: 绿岸公式 <chinesejar@gmail.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

timeroute added a commit that referenced this pull request Oct 11, 2026
将包版本定为 0.1.1,并把 #9 记入 CHANGELOG
@timeroute
timeroute merged commit 80bd586 into main Oct 11, 2026
1 check passed
@timeroute
timeroute deleted the cursor/setup-steps-and-templates-fef7 branch October 11, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants