feat: 侧栏精简 + 设置加载优化 + codex 隔离集成#5
Merged
Merged
Conversation
- 移除「新建任务」按钮(与「首页」功能重复,保留首页作为唯一入口) - 移除导航里的「设置 / 体检」项(与底部设置按钮重复) - 底部改为三行按钮:设置 / 主题切换 / 语言切换;移除 Codex 登录状态与版本号、工具 chips - 技能列表只保留随语言切换的中文/英文名,去掉灰色 skill id 后缀
- 新增 useDoctor 控制器(App 层持有,跨视图存活):check_doctor + get_setup_status 首次进设置异步探测一次并缓存,再进秒开不重探(缓存 + 不随视图卸载重跑) - 首开异步非阻塞:页面立即渲染、探测结果回填 - codex mcp list 改为只在展开「文献检索 MCP」面板时才查,不进页面就派生 codex - 设置页加「重新检测」手动刷新按钮
- 配置隔离:新增 engine::codex_home()(~/.nature-app/codex-home,可 NATURE_APP_CODEX_HOME 覆盖)+ codex_command();codex exec / --version / mcp list·add / skills 安装 / 登录态检测 全部走隔离 CODEX_HOME,与本地 ~/.codex 的登录/skills/MCP/配置不交叉 - 独立登录:engine::login() + codex_login 命令(隔离 home 跑 codex login,浏览器 OAuth); 设置页未登录时显示「登录」入口,成功后刷新体检 - sidecar 打包:tauri.conf externalBin=binaries/codex;resolve_codex_bin 优先用打包 sidecar; scripts/fetch-codex.sh 按平台从 codex release(rust-v0.141.0)拉二进制(gitignore 不入库); test.yml/release.yml 在 cargo/打包前加「缓存 + 拉 sidecar」(externalBin 让 build.rs 把它当硬依赖) - README 同步:去掉"本机装 Codex CLI"、加 fetch-codex 步骤、说明隔离 home + 设置页独立登录
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.
同一对话内的三块前端/集成改进(按搭车规则叠加到本 PR)。
1. 侧栏精简
2. 设置页加载优化
useDoctor控制器提到 App 层:check_doctor+get_setup_status首次异步探测并缓存,再进秒开不重探;codex mcp list改为展开「文献检索 MCP」面板时才查;加「重新检测」。3. codex 隔离集成
~/.nature-app/codex-home,可NATURE_APP_CODEX_HOME覆盖):codex exec/--version/mcp list·add/ skills 安装 / 登录态 全部走隔离 home,与本地~/.codex不交叉。codex_login命令(隔离 home 跑codex login)+ 设置页未登录时「登录」入口。tauri.confexternalBin=binaries/codex;resolve_codex_bin优先打包 sidecar;scripts/fetch-codex.sh按平台从 codex release(rust-v0.141.0)拉二进制(gitignore 不入库);test.yml/release.yml在 cargo/打包前加「缓存 + 拉 sidecar」(externalBin 让 build.rs 把它当硬依赖)。验证
tsc --noEmit+vite build+cargo fmt --check+clippy -D warnings+cargo test本地全绿。🤖 Generated with Claude Code