Conversation
Owner
Author
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.
未安装过配置的新用户只能看到空页面,没有创建 OpenCode 配置的入口。
空状态新增“初始化 OpenCode 配置”,通过现有 typed create 命令创建原生 opencode.jsonc,再重新发现配置。已有配置或候选读取错误会阻止初始化。创建使用写入临时文件后原子发布且不替换已有目标;路径与目录经过原有范围检查。
依赖 #8 的错误/不存在区分。OpenCode 仍是原生配置初始化,不支持虚构的命名 Profiles。
验证:23 个实际 command 模块测试通过(独立 Rust harness),覆盖首次初始化、重复初始化、损坏文件保留、两个并发创建只有一个成功;TypeScript 通过,821 个契约断言通过。Windows 分支使用不带 REPLACE_EXISTING 的 MoveFileExW,尚未实机执行,保持 draft。