Repository navigation
fix(desktop): 同步 Viva 上游 df223f97,固定 fork d71b14c6 - #2540
Merged
Merged
Conversation
1lck
marked this pull request as ready for review
November 30, 2026 07:31
1 task done
Contributor
There was a problem hiding this comment.
🔍 Devin Review: 3 flags
Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
9 tasks done
19 of 22 tasks
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.
关联 Issue / Linked issue
PR 类型 / Type
改动说明 / What changes
背景 / Why
桌面端发版(
desktop-v0.8.22)前需按release-lithe与2026-11-11-viva-fork-maintenance-and-commit-pin.md同步 Viva 上游并清点 fork 未合入补丁:此前Lithe-IDEA/Lithe-vivamain落后vivaui/vivamain15 个提交,且 fork 尚有未合入的 PR #81(Windows WebView2 原生消息投递)。改动 / Changes
Lithe-IDEA/Lithe-viva:通过 merge commit PR Lithe-IDEA/Lithe-viva#82 将vivaui/viva上游df223f971192合入 forkmain(并确认 tag 与上游完全一致),随后验证并合入 fork PR Lithe-IDEA/Lithe-viva#81,forkmain更新至d71b14c669bd。desktop/go.mod与desktop/go.sum:require升至v0.6.11-0.20261130044453-df223f971192,replace升至github.com/Lithe-IDEA/viva v0.6.11-0.20261130071102-d71b14c669bd。shared/platform-feature-matrix/features/plugin-web-tool-windows.json:记录新固定 Viva 版本及 PR add: add comments to the rust core #81 引入的 Windows WebView2 原生消息投递变更说明(实机 WebView2 CSP 与导航验收仍保持pending)。Viva 同步报告
main68d1a34e4abe(v0.6.11-0.20261129154924-68d1a34e4abe),上游基线a3ba5df6ba40(v0.6.11-0.20261129062444-a3ba5df6ba40)。a3ba5df6..df223f97(共 15 个提交),同步 PR Lithe-IDEA/Lithe-viva#82 以 merge commit 合入。maind71b14c669bd(v0.6.11-0.20261130071102-d71b14c669bd),上游基线df223f971192(v0.6.11-0.20261130044453-df223f971192)。bf27870b、d0bc7dee、1ae779f9)。df223f97,vivaui/viva#515)、无连字渲染时保持单字形单格(405e1b61)、Windows OpenWith 窗口前置(5ff87fab)、Windows WebView 自定义 scheme 路径与源保留(77f6ae74,vivaui/viva#510,与 fork Fix staging/unstaging of files in changes group checkbox #80 相同)。26c2022b)、List新行滚动展示不再盖住下方行(e8ba9843)、TextAreaShowCount位置修复(9fc9d19f)、Sticky吸顶支持(000af633)、CodeMerge冲突计数导航(b1aaeb70)及Config.OnShow/ Windows 提权能力。#80(d8ef7a93)对应的上游 vivaui/viva#510(77f6ae74)已合入上游main。main:Lithe-IDEA/Lithe-viva#81(fix(windows): deliver WebView messages through the native channel,作者@WhiteZeek),对应上游 vivaui/viva#516 已由作者于 2026-11-30 关闭,当前仅保留在 forkmain。rowBackground连续树着色(f031d0df)、markdown索引与程序化构建(a311b108、097bdbd4)、Windows 目录替换监听(8d5bd50e)、TooltipOn/EllipsisTooltipOn扩展及既有窗口/菜单/滚轮/列表键校验补丁,均保持可合并无冲突。git merge upstream/main与gh pr merge 81均无冲突)。Disabled):框架已支持;Lithe 侧「忙碌时不可输入」测试与变灰外观验收仍待补,保持不变。base/tree.go仍无wheelXRoute/ScrollX,保留filetree_view.go的fileTree.wheel与转发。base/list.go的ListWheelX仍只要DeltaX != 0即横向滚动,保留editor_view.go的verticalWheel。base/control.goHandlers仍无 chord 钩子,且editor_view.go的splitterKey同时负责持久化尺寸变化,保留现有实现。不在本 PR 范围内 / Out of scope
#1821剩余第 1、3、4、5 项待后续上游能力齐备后清理。plugin-web-tool-windows.json保持pending)。desktop/internal/workbench/agents.go:207,220既有的 2 处viva vetkept-context提示(origin/main已存在,不在本依赖升级 PR 中顺手重构)。类型专属:fix
复现与根因
检查项
pending。./scripts/desktop/desktop-go.sh test ./...(含workbench全套与TestLogCommitKeysKeepFooterInRangeAndSeparate)及generate-desktop-icons.sh/generate-desktop-file-icons.sh验证所有桌面包与生成文件兼容。.agents/notes/implemented/bug-fix/记录:未改变行为约束。范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/plugin-web-tool-windows.json:如实记录 Viva 新固定版本与 PR add: add comments to the rust core #81 状态,Windows 原生验收保持pending。./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh和./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD。.artifacts/下生成的矩阵视图。插件归属 / Plugin ownership
develop-lithe第三节“插件归属与宿主零依赖”的自查命令,结果为空。shared/i18n/;插件的构建步骤、资源路径和补丁没有写进docs/ci-builds.md、Agent Note 或 Skill。UI 验证 / UI evidence
N/A:本次未改动 Lithe 界面布局、控件、样式或文案。
统一日志系统 / Structured logging
N/A:未新增或修改生命周期、错误边界或日志事件。
界面文案 / i18n
N/A:未新增或修改任何界面文案。
逻辑归属 / Logic placement
N/A:仅更新 Go 依赖固定版本与功能矩阵文档记录,未在平台层新增或修改业务逻辑。
性能与内存 / Performance and memory
N/A:未新增后台任务、子进程、缓存或依赖项。
设置 / Settings
N/A:未新增或修改设置项。
插件契约 / Plugin contract
N/A:未修改 Rust Core 插件契约或
PINNED_CORE_REVISION。发行包与资源 / Bundle and resources
N/A:未新增或修改运行时资源或构建下载步骤。
无用代码与重构 / Dead code and refactoring
验证 / Verification
Lithe-viva:GOOS=windows GOARCH=amd64 go build ./...&arm64 go build ./...maind71b14c6)Lithe-viva:go vet ./...&GOOS=windows GOARCH=amd64 go vet ./...Lithe-viva:go test ./...(同步后)&go test ./internal/platform/...(PR #81)cmd/viva夹具min_system=12.0与本机 Go 工具链 13.0 不匹配(在未修改upstream/maindf223f97上完全复现)外,其余全包通过./scripts/desktop/desktop-go.sh test ./...workbench(400.37s)及全部 UI/Core 包通过;4 个非 UI 包在并发高负载下超时后已单独串行(-p 1)通过:cli(2.71s)、loginenv(0.74s)、pluginservice(39.90s)、localshell(重置工具子壳忽略的SIGHUP为SIG_DFL后 7.56s 全包通过)./scripts/desktop/generate-desktop-icons.sh&generate-desktop-file-icons.shgit diff为空./scripts/desktop/desktop-go.sh --exec go run github.com/vivaui/viva/cmd/viva vet ./...desktop/internal/workbench/agents.go:207,220报 2 条origin/main既有kept-context提示(未在本 PR 改动)./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEADrg自查未能执行的检查和原因:
go test与 WebView2 原生 CSP/消息投递验收(当前在 macOS 主机,交由 GitHub Actions Windows CI 与后续实机验证)。Lithe-vivaJS/Wasm 桥接测试(本机缺少go_js_wasm_exec)。提交前确认 / Final checks
main创建;目标分支:main.build/、target/、dist/、.artifacts/等产物