Repository navigation
fix(mac): 精简采集状态并修复数据库取消与多库阻塞 - #5
Merged
Merged
Conversation
- 本机 SQLite 保留待办,Capture 使用标准共享图恢复原提交。 - 连接编辑保留身份,本机启停独立,明确选择内置扩展版本。 - 数据库操作可取消且有截止时间,各信息库分别推进。
This was referenced Oct 26, 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.
采集待办改由本机 SQLite 保存,共享资料使用既有 Block/Relation/Storage 和 Capture 根中的提交身份恢复;移除专用共享回执、重复摘要和未发布兼容逻辑。修复连接编辑造成身份重复、本机开关隐式改写共享参与、内置版本无法明确采用及重复注册等问题。
数据库操作将连接租用、完整结果读取与事务放进同一个可取消作用域,30 秒截止后关闭当前连接;服务端设置查询超时和断连检查。各信息库独立续租、刷新目录、处理 Capture 队列,同库待办保持顺序。取消后仍保留结果未知的原提交、材料和目标。
验证:
bash scripts/check.sh通过(64 项;常规入口的真实数据库 opt-in 用例单独执行)。真实一次性 PostgreSQL 验证取消中断与回滚、原图写入/恢复/冲突、六格式文件更新/删除保留以及监视重启;4 项本地文件用例、3 项提交/取消/跨库定向回归通过。合成 PostgreSQL 服务端不响应时,取消在一秒内结束,未取消操作由 30 秒上限结束。已查看设置页明暗渲染;本轮未重复前台截屏与焦点验收。交付:universal 0.1.0(build 19),使用用户已授权 Apple Development 身份签名,未发布/公证。人工审查结论:保留对等 Peer、扩展业务所有权与未知提交恢复,不增加调度框架。关联 InKCre/docs#42、InKCre/impl-py#158、InKCre/impl-ts#164。
风险与回退:旧开发配置不自动迁移,原文件保留;提交响应丢失且远端根在恢复前被删除的窄窗口不保证防重建。回退可恢复先前开发包,勿清除 SQLite 或原材料。