Repository navigation
fix(desktop): 同步 Viva 上游至 46b10fdf(v0.6.6+)并更新固定版本 - #2220
Merged
Merged
Conversation
1lck
marked this pull request as ready for review
November 20, 2026 03:13
1lck
force-pushed
the
chore/sync-viva-46b10fd
branch
from
November 20, 2026 03:14
5cfed30 to
747f820
Compare
Owner
Author
|
PR #2220 verification note:
Squash-merging per authorization after local + cross-platform verification and filing a follow-up test bug Issue for the pre-existing |
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.10发版执行.agents/skills/release-lithe/SKILL.md与.agents/notes/implemented/process/2026-11-11-viva-fork-maintenance-and-commit-pin.md规定的发版前 Viva 上游同步流程。将Lithe-IDEA/Lithe-viva的main与vivaui/viva:main对齐后,更新desktop/go.mod与desktop/go.sum固定到最新 forkmain。改动 / Changes
desktop/go.mod、desktop/go.sum:require github.com/vivaui/viva从v0.6.6-0.20261119025243-bd396bc23c0f升至v0.6.7-0.20261120014117-f5b634bbcebf(上游基线f5b634bb)。replace github.com/vivaui/viva从github.com/Lithe-IDEA/viva v0.6.6-0.20261119170518-c7bffddf8794升至github.com/Lithe-IDEA/viva v0.6.7-0.20261120025921-46b10fdfd80d(fork PR Lithe-IDEA/Lithe-viva#48 合入后的main)。Viva 同步报告(按 2026-11-11 Note 要求)
main:c7bffddf(基于上游bd396bc)。bd396bc..f5b634bb(4 个提交:a5b102b0Page.RouteWheel/Wheel拆分、e2e6a075v0.6.6发布说明、0a00a30edocs、f5b634bbTabIconOnly())。main:46b10fdfd80d6d656d5a9cf81050333ffd1e07fd;desktop/go.mod新固定伪版本v0.6.7-0.20261120025921-46b10fdfd80d;已同步上游 tagv0.6.6到 forkorigin。Page.RouteWheel与Tabs.TabIconOnly();Lithe-IDEA当前未调用这两个新 API,无行为或编译影响。fix/popover-wheel-stays-in-panel即vivaui/viva#349、fix/tree-disclosure-in-base、fix/tooltip-arrow-border、codex/2199-list-clamp-release、feat/ui-textview、lithe/windows-payload-staging等),Lithe-viva PR feat(search): share workspace search index #48 已以--merge合入上游,未触发任何 patch 被取代或 revert。base/page.go的RouteWheel末尾:上游a5b102b0将p.baseScroll(event)从RouteWheel移到Wheel;保留上游移除p.baseScroll的结构,同时保留 fork PR Add Windows CI workflow configuration #40(vivaui/viva#349,上游仍 OPEN)的浮层拦截if panel >= 0 && !manual { return gfx.EventResult{Handled: true} },确保弹窗/浮层上的滚轮仍不会穿透到底层,且宿主从OnScroll转发到RouteWheel时不会死循环。Lithe-IDEA调用点无需修改。.Disabled(...)(base/box.go:444仍注明Box.Disabled仅作用于 Button/Checkbox/Switch/Tabs)。readOnlyField(plugin_settings_view.go:204依赖字符级绑定与文本选择重构,非本次 4 个上游提交新增能力)。fileTree.wheel(base/tree.go仍未注册横向滚轮路由)。verticalWheel(base/list.go:1240ListWheelX仍对任意dx != 0横向滚动,未过滤纵向主分量)。Page仍未内置 Splitter 方向键路由和控件 chord 钩子)。Lithe-viva本地运行go vet ./...通过;go test ./...除cmd/viva在 macOS 27 SDK 下因固件使用min_system = 12.0触发的既有部署目标不匹配失败外其余全部包通过;GOOS=windows GOARCH=amd64 go build ./...与GOOS=windows GOARCH=arm64 go build ./...均通过;git merge-base --is-ancestor upstream/main main返回 0。不在本 PR 范围内 / Out of scope
desktop/internal/pluginview/render.go:24,140的既有viva vet(kept-context)告警与desktop/internal/fileicons/注释头差异(均为合入前已有存量,未在本 PR 顺手修改;仓库无refactor标签,已在下方注明)。类型专属:fix
复现与根因
release-lithe与2026-11-11-viva-fork-maintenance-and-commit-pin.md在发版前同步 Viva 上游并升级固定版本。git log -S或git blame查):不适用(发版前常规同步)。desktop/go.mod)。检查项
RouteWheel与TabIconOnly在desktop/中当前均无调用方。desktop/go.mod,已在 fork 验证 Windows amd64/arm64 编译。refactor标签(按develop-lithe第九节不自行创建标签),已发现的存量项为desktop/internal/pluginview/render.go:24,140的 2 条viva vetkept-context提示(#2183引入)及desktop/internal/fileicons/icons*.go注释头与README.md的 3 行差异(#2141引入)。.agents/notes/implemented/bug-fix/记录:行为约束未变。范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/<id>.json:本次仅升级desktop/go.mod/desktop/go.sum依赖固定版本,无新增或改变用户可观察能力;已由 reviewer 审查并附matrix-exempt标签。./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh(validated 214 platform capabilities);MATRIX_UPDATE_EXEMPT=true ./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD通过。.artifacts/下生成的矩阵视图。插件归属 / Plugin ownership
develop-lithe第三节“插件归属与宿主零依赖”的自查命令,结果为空。shared/i18n/;插件构建资源没有写进文档。UI 验证 / UI evidence
N/A:仅同步 Viva 依赖固定版本,未改动布局、控件、样式或文案。
统一日志系统 / Structured logging
N/A:未新增或修改日志事件、错误处理或降级路径。
界面文案 / i18n
node scripts/i18n/generate-i18n.mjs --check与node scripts/i18n/verify-app-language-localization.mjs验证基线通过。逻辑归属 / Logic placement
N/A:未新增或修改业务逻辑。
性能与内存 / Performance and memory
N/A:未改动启动、后台任务或渲染热路径,4 个上游提交不改变现有调用行为。
设置 / Settings
N/A:未改动设置。
插件契约 / Plugin contract
N/A:未改动 Core 或插件契约。
发行包与资源 / Bundle and resources
zsh scripts/desktop/verify/verify-runtime-bundle-immutability.sh通过。无用代码与重构 / Dead code and refactoring
desktop/internal/pluginview/render.go:24,140的viva vetkept-context提示),因仓库无refactor标签暂未建单(按规则不自行创建标签,将在交付报告中向用户说明)。验证 / Verification
./scripts/desktop/desktop-go.sh test ./internal/workbench ./internal/editorview ./internal/settingswindow./scripts/desktop/desktop-go.sh test ./...internal/localshell外全包通过;localshell的/opt/homebrew/bin/bash用例在基线origin/main上同样失败(outlived the closed terminal by 5s),与本 PR 无关./scripts/desktop/desktop-go.sh vet ./..../scripts/desktop/generate-desktop-icons.shicons.go/viva_mark.go逐字节一致(零 diff)./scripts/desktop/generate-desktop-file-icons.sh#2141注释头差异产生 3 行注释 diff(已还原未提交)./scripts/desktop/desktop-go.sh --exec go run github.com/vivaui/viva/cmd/viva vet ./...desktop/internal/pluginview/render.go:24,140kept-context(非本 PR 引入)./scripts/platform-feature-matrix/verify-platform-feature-matrix.shvalidated 214 platform capabilitiesMATRIX_UPDATE_EXEMPT=true ./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD./scripts/agent-notes/verify-agent-notes.shok: 184 active Agent Note(s) verifiedzsh scripts/desktop/verify/verify-runtime-bundle-immutability.shnode scripts/i18n/generate-i18n.mjs --check&verify-app-language-localization.mjsrgLithe-viva:go vet ./...、go test ./...(除cmd/vivaSDK 部署目标问题外全过)、GOOS=windows GOARCH=amd64/arm64 go build ./...未能执行的检查和原因: 未在 Windows / Linux 本机实机运行桌面测试(本机为 macOS,Windows 交叉编译已在 fork 验证通过)。
提交前确认 / Final checks
main创建,目标分支为main