Skip to content

fix(history): 修正历史项目归属并补强恢复诊断#195

Merged
lulu-sk merged 1 commit intomasterfrom
fix/history-project-resolution-diagnostics
Mar 15, 2026
Merged

fix(history): 修正历史项目归属并补强恢复诊断#195
lulu-sk merged 1 commit intomasterfrom
fix/history-project-resolution-diagnostics

Conversation

@lulu-sk
Copy link
Owner

@lulu-sk lulu-sk commented Mar 15, 2026

统一历史记录的项目 scope 归属规则,修复父子项目并存时的误归类,并补强白屏/刷新定位链路。

技术改动:

  • 抽取前后端共识的路径 scope 归一化、边界匹配与“最具体项目”解析逻辑,盘符根目录仅允许精确命中
  • 提升 history index/list 缓存版本,统一 dirKey 生成与 fallback 诊断日志,避免旧缓存继续复用错误归属
  • 修复 Windows 主进程在 WSL 运行时对已配置 GEMINI_CLI_HOME 的处理,并对齐 Gemini projectHash 根目录候选
  • 保留历史 Markdown 中的 Windows 本地绝对路径与 file:// 链接,补充 renderer lifecycle 与 white screen 关键日志
  • 为项目扫描的盘符根目录生成稳定展示名,并补充 path scope、Gemini hash、history markdown、renderer lifecycle 回归测试

产品影响:

  • 历史列表与历史跳转在父子项目并存时会归属到最具体项目,不再被父项目误吞
  • 从历史记录打开本地文件链接时可正确保留 Windows 绝对路径
  • 白屏、强制刷新与恢复链路默认保留关键排障日志,便于后续定位现场

统一历史记录的项目 scope 归属规则,修复父子项目并存时的误归类,并补强白屏/刷新定位链路。

技术改动:
- 抽取前后端共识的路径 scope 归一化、边界匹配与“最具体项目”解析逻辑,盘符根目录仅允许精确命中
- 提升 history index/list 缓存版本,统一 dirKey 生成与 fallback 诊断日志,避免旧缓存继续复用错误归属
- 修复 Windows 主进程在 WSL 运行时对已配置 GEMINI_CLI_HOME 的处理,并对齐 Gemini projectHash 根目录候选
- 保留历史 Markdown 中的 Windows 本地绝对路径与 file:// 链接,补充 renderer lifecycle 与 white screen 关键日志
- 为项目扫描的盘符根目录生成稳定展示名,并补充 path scope、Gemini hash、history markdown、renderer lifecycle 回归测试

产品影响:
- 历史列表与历史跳转在父子项目并存时会归属到最具体项目,不再被父项目误吞
- 从历史记录打开本地文件链接时可正确保留 Windows 绝对路径
- 白屏、强制刷新与恢复链路默认保留关键排障日志,便于后续定位现场

Signed-off-by: Lulu <58587930+lulu-sk@users.noreply.github.com>
@lulu-sk lulu-sk self-assigned this Mar 15, 2026
@lulu-sk lulu-sk merged commit c3f8621 into master Mar 15, 2026
4 checks passed
@lulu-sk lulu-sk deleted the fix/history-project-resolution-diagnostics branch March 15, 2026 18:00
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.

1 participant