Repository navigation
fix(desktop): 同步 Viva 上游 91da94ad(v0.6.9),固定 fork 7696355e - #2439
Merged
Merged
Conversation
fork Lithe-IDEA/Lithe-viva#63 用 merge commit 把上游 vivaui/viva main 91da94ad(12 个提交,含 v0.6.9 和 vivaui/viva#458 的 ColorPickerLabels.InvalidColor)合进 fork main 7696355e。replace 升到 v0.6.10-0.20261126074811-7696355e44b5,require 升到上游 v0.6.10-0.20261126065824-91da94ad9452。 Refs #1821
上游 a3ad0481 把 Windows 剪贴板事务固定在同一个系统线程,终端复制粘贴 和剪贴板图片粘贴都经过它;Lithe 代码不变,验证状态保持 pending。
30 of 36 tasks
xiaoyumuxi
marked this pull request as ready for review
November 26, 2026 08:10
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
ColorPickerLabels.InvalidColor随本 PR 进固定版本)PR 类型 / Type
改动说明 / What changes
Viva 上游同步,按
.agents/notes/implemented/process/2026-11-11-viva-fork-maintenance-and-commit-pin.md的「发版前同步上游」做:先把上游 merge 进 forkmain,再升级 Lithe 的固定版本,逐项复核绕过代码。背景 / Why
448b0553(fix(desktop): 同步 Viva 上游 ac665a8f,固定 fork 448b0553 #2421)。之后上游vivaui/vivamain 又有 12 个提交(含v0.6.9)fork 没有。ColorPickerLabels.InvalidColor,旧固定版本没有,feat(editor): 内置彩虹配色、缩进参考线与上下文高亮 #2420 编译不过。改动 / Changes
replace从v0.6.9-0.20261125212154-448b0553faf8升到v0.6.10-0.20261126074811-7696355e44b5(forkmain新头);require从v0.6.9-0.20261125164855-ac665a8f86e4升到上游91da94ad对应的v0.6.10-0.20261126065824-91da94ad9452。go.sum同步。terminal-interaction的 notes 补一段 2026-11-26 的 Windows 剪贴板线程修复(上游a3ad0481),验证状态保持pending。Lithe 的 Go 代码没有改动:这 12 个上游提交没有改名或删掉 Lithe 在用的 API。
不在本 PR 范围内 / Out of scope
类型专属:fix
复现与根因
git log --oneline main..upstream/main列出 12 个提交,期望发版前固定版本是同步过上游的 forkmain头。feat(editor): 内置彩虹配色、缩进参考线与上下文高亮 #2420 在旧固定版本上编译报ColorPickerLabels没有InvalidColor字段,期望能编译。检查项
ui/、base/只改了base/state_types.go、ui/color_paint.go(新增InvalidColor),其余是gfx、headless、components、app、平台层的新增或修复;rg 'components\.(CodeEditor|NewCodeEditor)|ColorPickerLabels|DrawBitmapPixels|SetClipboardFiles' desktop/结果为空同步报告 / Sync report
基线
Lithe-IDEA/Lithe-vivamain448b05537696355e(fork PR #63,merge commit)ac665a8fac665a8f..91da94ad,12 个提交(含v0.6.9)v0.6.9-0.20261125212154-448b0553faf8v0.6.10-0.20261126074811-7696355e44b5v0.6.9git ls-remote --tags --refs与上游 24 个 tag 完全一致同步后
git merge-base --is-ancestor upstream/main main通过,共同历史没有断。上游带来的、会影响 Lithe 的变化
b5876fcb(vivaui/viva#458)ColorPickerLabels.InvalidColor:颜色选择器的非法 HEX 提示可以由应用传入译文,空着时仍显示Invalid colora3ad0481e1487a1a23caf6cb、99f24a3c4ac15c8b、1e4d4112、ae09ce0eSurface.Pixel、Canvas.DrawBitmapPixels、headless 的clipfiles命令91da94adcomponents.CodeEditor的折叠行画可点击的省略徽标editorview,不用这个组件f7ca3fc0、7b0ad16e、a8125f2a我们每一个补丁的结果
b5876fcb(vivaui/viva#458,同一作者)逐行相同,已关闭并在评论里写明。它从没进过 forkmain,不用 revertmain的补丁每一处冲突
这次 merge 没有冲突。
删掉的绕过代码
没有。Lithe 里没有引用 Viva PR 或 Issue 的绕过注释,也没有因 Viva 被跳过的测试(
rg 'vivaui/viva#|Lithe-IDEA/viva#|Lithe-viva#' desktop/为空)。还留着的绕过代码
上游这 12 个提交在
ui/、base/只改了颜色选择器,#1821 剩下各项的核对结果和 #2421 相同:Disabledbase/list.go注册wheelXRoute;workbench/filetree_view.go的wheel保留ListWheelX仍然只要DeltaX != 0就横向滚Handlers仍没有 chord 钩子,root.go的转发保留范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/<id>.json:terminal-interaction的 notes 补了 Windows 剪贴板线程修复;两端实现状态不变,验证状态保持pending./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh(224 项通过)和./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD(通过).artifacts/下生成的矩阵视图插件归属 / Plugin ownership
N/A:只改 Viva 固定版本和一条矩阵 notes,不涉及插件。
UI 验证 / UI evidence
N/A:Lithe 的界面代码没有改动。上游这次没有改 Lithe 在用控件的布局或样式(颜色选择器的新字段 main 还没用)。
统一日志系统 / Structured logging
N/A:没有改日志路径。
界面文案 / i18n
N/A:没有新增文案。
node scripts/i18n/generate-i18n.mjs --check通过。逻辑归属 / Logic placement
N/A:没有新增或修改业务逻辑。
性能与内存 / Performance and memory
N/A:上游这 12 个提交不改 Lithe 用到的绘制、布局路径(
components.CodeEditor不在 Lithe 里),没有新增依赖。设置 / Settings
N/A:不涉及设置。
插件契约 / Plugin contract
N/A:不涉及插件契约,Core 固定版本不变。
发行包与资源 / Bundle and resources
N/A:没有新增运行时资源或构建步骤。
无用代码与重构 / Dead code and refactoring
验证 / Verification
./scripts/desktop/desktop-go.sh build ./...、vet ./...viva vet./scripts/desktop/desktop-go.sh test ./... -count=1 -timeout=900slocalshell、workbench的失败都和本 PR 无关,见下面三行workbenchTestRunPerformanceCollapseKeepsSummaryAndPersistsTheChoiceno control named "Test run"。换回同步前的go.mod/go.sum后同样 3/3 失败,是 main 上已有的 #2434(#2426 引入),main 的 Desktop CI 也是红的workbenchTestProbeBuildToolBoundsHangingProcess、TestResolveBuildExecutableFallsBackAcrossAutomaticCandidates-count=5全部通过。这两个用例只起子进程,不经过 VivalocalshellTestClosingAnIntegratedShellRightAfterACommandHangsUpItsJobs/zsh-count=3全部通过go build ./...、go vet ./...、GOOS=windows GOARCH=amd64/arm64 go build ./...、go test ./...cmd/viva的 dmg/签名测试遇到 macOS 27 SDK;ui/inputnumber等分配测试在 go1.27.4 下失败,换 go1.26.0 通过),细节见 fork #63node scripts/i18n/generate-i18n.mjs --check、node scripts/i18n/verify-app-language-localization.mjsnode scripts/agent-notes/verify-agent-notes.mjs./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh、verify-platform-feature-matrix-change.sh origin/main HEAD未能执行的检查和原因:
GOOS=windows交叉编译检查过 Viva 本身,Lithe 的 Windows 构建交给 CI。pending。提交前确认 / Final checks
main(cc46ec0bf)创建;目标分支:main.build/、target/、dist/、.artifacts/等产物,没有凭据、个人路径和未脱敏的日志或截图