Repository navigation
同步上游 v0.7.25→v0.7.26,并准备发布 v1.0.12 - #15
Merged
Merged
Conversation
- 健康轮询只探未连接服务器,后台体检不再闪 checking / 无变化不 notify - 时钟校准不再触发全量重渲染,快照按内容 diff 保持引用 - 多地址探测健康时跳过常态轮询,观察者注册按签名短路 - SSE 连上即把健康快照提升为在线,避免设置页长期红叉 - 重连补偿通知逐个隔离,单个订阅者抛错不影响其它 pane - 本机服务运行时地址写入 sessionStorage,窗口刷新后可恢复 Co-authored-by: xiufeigo <xiufeigo@users.noreply.github.com>
- 5000 条目录补拉不再逐条 filter/sort/notify(O(n²)),改为一次合并提交 - server.connected 时用 force 排队补拉,避免初始请求挂在未就绪服务上导致列表停在失败态 - 用 then(settle, settle) 替代 finally,消除请求失败时的未处理 rejection - serverStore 通知来自健康检查时按快照引用短路,不再重建服务器集合
页面重载时运行时地址已从 sessionStorage 恢复,先探一次 /api/info: 服务还活着就直接复用,不设 starting、不调用 start_opencode_service。 之前每次刷新都完整走探测/认领/spawn,期间新的会话加载被 starting 挡住, 看起来就像服务被重启了一次。冷启动和新窗口仍按原优先级走注册表认领。
开启「追补已等待权限」时,refreshPendingRequests 与 replyPermission 并发: 刷新先发出,reply 成功、卡片移除后,刷新的旧快照才落地,把刚通过的请求 重新加回列表,卡片永远停在待批准。 用本端已解决 id 集合挡住所有快照合并(刷新 / 首屏恢复 / SSE 重放), permission.replied 广播也写入标记,覆盖手动允许、自动放行、其他客户端 处理三条路径。
SidePanel 原来把会话索引里出现的所有 location.directory 一次性 trackDirectory:每个目录首次登记就 listShells,之后每 15s 轮询全部。 最近 200 条会话可能横跨几十个项目,冷启动等于把用户没打开的工作区全开了。 现在只水合「正在运行的会话」目录(通常 0~2 个)和当前打开会话的目录; 其它目录靠全局 shell.created/exited/deleted 事件维护内存,未登记目录的 running shell 全部退出后立即回收。可见会话行仍按需水合自己所属目录。
面板关闭时 ResizablePanel 只是宽度归零,children 仍会渲染:默认 tab 是 files + changes,启动就拉文件树/状态,切会话还会拉 session.diff。 改成一次性挂载闸门:第一次打开后才渲染,之后保持挂载以保留展开态和预览。 Co-authored-by: xiufeigo <xiufeigo@users.noreply.github.com>
内联箭头 / .bind() 每次渲染都会生成新的 subscribe,React 会在每次提交后 先解绑再重绑(ChatPane、输入栏、侧栏、各 store hook 都在热路径上)。 改成模块级稳定引用,行为不变,只去掉这部分无意义开销。 涉及 serverStore / autoApproveStore / keybindingStore / layoutStore / multiServerStore / paneControllerStore / childSessionStore 及其调用点。 Co-authored-by: xiufeigo <xiufeigo@users.noreply.github.com>
将版本号从 1.0.11 升到 1.0.12。changelog 只收录相对上游 v0.7.25 的功能变更,不写入 0.7.26 bump。 Co-authored-by: xiufeigo <xiufeigo@users.noreply.github.com>
xiufeigo
marked this pull request as ready for review
November 7, 2026 00:32
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.
概要
从上游
lehhair/OpenCodeUI的c5a729e(v0.7.25)之后 cherry-pick 功能提交到08f1e2e之前,跳过chore: bump version to 0.7.26。fork 版本线仍为 1.x,本 PR 把版本从 1.0.11 准备到 1.0.12。只开 draft,不合并、不打 tag。合入
main后再在 tip 上打v1.0.12触发 Release。已合入的上游提交
f0084a0ff5491ef782e9080da0c9e240d0c6ad5fc106716ec3f96b6b141181d3f1997d24b5e1770f6eb6847a1c3c03f93f8e8a2c06c69018a9c7d271ab2629d3fa5d84b351546064a77cd7跳过:
08f1e2echore: bump version to 0.7.26。版本提交:
a6638776chore: 准备发布 v1.0.12。冲突处理
src/store/serverStore.ts(40d0c6a):保留 fork 的移动端清理(isTauriMobile下清掉旧版自动生成的 local 条目)以及存储加载失败时的console.error;失败回退仍走platformServers([])。同时接入上游:刷新后从 sessionStorage 恢复本机服务运行时地址。src/components/RightPanel.tsx(6c69018):保留 fork 的终端恢复状态条、terminals.close以及独立文件标签的面板结构。桌面端改为上游的一次性挂载闸门:首次打开右侧面板前不渲染 files/changes。src/features/chat/ChatPane.tsx(3515460):仅导入格式冲突。保留 fork 的多行 import,并改用稳定的subscribeServerStore。src/features/chat/sidebar/SearchResults.tsx(3515460):上游在组件内重算服务器列表;fork 已改为由父级传入serverIds(全局模式会话列表的家目录过滤在外层)。没有把这段列表计算引回来。其余提交无冲突,自动合并结果与上游补丁一致。更新源、Android release 签名、会话/终端隔离未被这批提交改写。
验证
npm run validate(typecheck + lint + test + build)在升版前后各跑一次,均通过:package.json、package-lock.json、src-tauri/Cargo.toml、src-tauri/Cargo.lock、src-tauri/tauri.conf.json均为 1.0.12。仓库内没有把本仓版本写成 0.7.26。