Repository navigation
fix(viva): 同步 Viva fork、修复节点 Key 泄漏并合入 #2328 忽略测试以解除 main CI 死锁 - #2355
Merged
Merged
Conversation
Contributor
Author
|
Lithe Review — 最新 CI 验证(head 已按 Linux CI 逐个修复最初两处 Key 断言及后续同类叶节点用法,并纠正迁移中发现的未使用索引、辅助方法匿名父上下文问题。最新运行的 完整 Desktop CI gate 仍为 failure,现有唯一失败 |
This was referenced Nov 23, 2026
…-key-on-leaf-elements
Mucheen
added a commit
to Mucheen/Lithe-IDEA
that referenced
this pull request
Nov 23, 2026
Keep keys on the containers and controls that use them, and let context menus inherit their trigger identity. Start from the relevant changes in 1lck#2355 and cover the other failures found by the complete dev suite. Pin the fork main revision from Lithe-IDEA/Lithe-viva#58 for the upstream textview menu fix.
18 of 23 tasks
1lck
marked this pull request as ready for review
November 23, 2026 14:27
Mucheen
added a commit
that referenced
this pull request
Nov 23, 2026
* feat(plugins): add incremental marketplace updates * fix(plugins): serialize package changes across processes * test(desktop): cover new bundle checks in the gate fixture * fix(desktop): resolve Viva dev identity check failures Keep keys on the containers and controls that use them, and let context menus inherit their trigger identity. Start from the relevant changes in #2355 and cover the other failures found by the complete dev suite. Pin the fork main revision from Lithe-IDEA/Lithe-viva#58 for the upstream textview menu fix. * fix(marketplace): serialize shared plugin archive cache writes Reuse the native file lock for pruning, temporary copy and atomic publish. Limit acquisition to one second because a completed download can install without caching. Add a deterministic two-process regression for both limits and test update delivery when the cache lock is unavailable.
22 of 25 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
1lck/Lithe-IDEAmain(c086a0b1b)同时存在两处独立阻断 CI 的基线失败,形成循环死锁(PR #2328 与 #2355 均无法单独通过 CI):main但配套测试未合入:origin/main已将scripts/desktop/build-desktop-core.sh的PINNED_CORE_REVISION推进到bb0ad53f9100954306fcd139bf0e5003e6a515fe(包含 Core 【建议】mac端的UI优化建议 #179 对.lithe/.gitignore自忽略/.gitignore的更新),导致desktop/internal/toolchain中TestSavePinPreservesIgnoreTextAndOvercomesLaterNegation按旧期望失败;PR fix(desktop): 接入工具链忽略文件自忽略规则 #2328 中对应的测试、Agent Note 与功能矩阵更新尚未合入。Lithe-IDEA/viva@3c6c4608)引入了base/attrcheck_dev.go的unusedName/ 叶节点身份检查(dev/vivadevbuild tag),一方面旧ui/textview的ui.ContextMenuAt(c.Key("menu"), ...)在菜单关闭早退时把Key("menu")泄漏到后续Divider/Column,另一方面桌面端多处自定义组件与非消费型调用(ui.Menu、ui.Popover、ui.Effect、条件分支早退、c.KeyInt与c.Key串写等)也会把身份键泄漏到叶节点(ui.Text、ui.Wrap、ui.Icon、ui.Spacer、ui.Paragraph)。原 PR fix(viva): 同步 Viva fork、修复节点 Key 泄漏并合入 #2328 忽略测试以解除 main CI 死锁 #2355 把部分ui.Spacer(c)改写成带 Key 的ui.Row/ui.Column,未解决全部泄漏与ui/textview根因。改动 / Changes
Lithe-IDEA/Lithe-viva#58):vivaui/viva(471ea7ab)通过 merge commit 同步到Lithe-IDEA/vivamain(bb85256c8ffabff21983b64de2f4d4ba6e3ee631,合入 PR [Feature] 添加插件系统 #58),拉入上游v0.6.7及ui/textview修复(7ea39847)。require github.com/vivaui/viva v0.6.8-0.20261123124712-471ea7ab5f81replace github.com/vivaui/viva => github.com/Lithe-IDEA/viva v0.6.8-0.20261123134538-bb85256c8ffa.agents/notes/implemented/process/2026-11-11-viva-fork-maintenance-and-commit-pin.md):3c6c4608;上游基线:471ea7ab;同步后 forkmain:bb85256c8ffabff21983b64de2f4d4ba6e3ee631(merge PR:Lithe-IDEA/Lithe-viva#58)。3c6c4608..471ea7ab(包含ui/textview重构与选择/复制测试7ea39847、v0.6.7及移动端后端拆分471ea7ab等)。ScrollBar.Bars/PageConfig.BarStyle保留;ui/textview/*冲突全部采用上游实现并验证git diff upstream/main -- ui/textview/为空;cmd/viva/initfiles/AGENTS.md.txt冲突保留Theme.Tooltip并吸收上游修改。desktop/中未发现可删的 Viva 缺陷绕过代码(vivaui/viva#、Lithe-IDEA/viva#、Lithe-viva#无命中);重新运行generate-desktop-icons.sh与generate-desktop-file-icons.sh(后者在icons.go/icons_tree.go同步了go.svg来源注释)。origin/main现有PINNED_CORE_REVISION不回退):.lithe/.gitignore自忽略(/.gitignore+/toolchains/local.json)及空文件/保留换行/嵌套规则断言。.lithe/.gitignore自忽略行为说明。scripts/desktop/build-desktop-core.sh的修改;origin/main已固定更新的PINNED_CORE_REVISION="bb0ad53f9100954306fcd139bf0e5003e6a515fe"。ui.Spacer(c):ui.Spacer(c)替换成ui.Row(k.Part("spacer")).Grow(1)/ui.Column(k.Part("spacer")).Grow(1)的 10 处位置全部恢复为惯用的匿名ui.Spacer(c)。ui.Effect、ui.Menu、ui.Popover)及早退分支、叶节点调用链上的Key/Part/KeyInt泄漏:settingswindow:source_settings_entries_view.go、toolchains_view.go、remote_workspace_view.go、remote_preferences_state.go、plugin_settings_model.go、build_directory_view.go等,将Part移入实际创建的容器节点或在早退检查之后构造,避免泄漏到空分支、ui.Text或后续控件。workbench:run_view.go(配合ui/textview修复验证TestRemoteCloseShowsTheKeptProcessesInTheRunWindow)、runconfig_dialog_view.go(drawRunConfigNewMenu早退守卫及移除Part("add-menu")、移动KeyInt到图标早退之后)、debug_view.go、build_options.go、runconfig_view.go、difftab_view.go、problems_view.go、runconfig_steps.go、git_gutter.go、search_everywhere_view.go(避免c.KeyInt与c.Key相互覆盖)、memory_monitor.go、standalone.go、remote_host_containers.go、remote_browse_view.go等。desktop/internal/settingswindow/window_view.go路径与修复回归说明)和 shared/platform-feature-matrix/features/workbench-tool-stripe-icons.json,保持原生验收为pending。不在本 PR 范围内 / Out of scope
类型专属:fix
复现与根因
origin/main(c086a0b1b)上运行./scripts/desktop/desktop-go.sh test ./internal/toolchain时,TestSavePinPreservesIgnoreTextAndOvercomesLaterNegation因 Core 【建议】mac端的UI优化建议 #179 已自忽略/.gitignore而断言失败。-tags dev与-tags vivahead时,TestAboutPageShowsThePreviewAndCopiesTheFacts、TestWorkbenchDefaultLayout、TestRemoteCloseShowsTheKeptProcessesInTheRunWindow、TestEditRunConfigurationsCountsTheConfigurationsNoBuildPluginStarts等崩溃,报错ui: Key ... was given to a Text/Spacer/Icon/Paragraph, which has no identity或unusedName。git log -S或git blame查):toolchain失败:origin/main升级PINNED_CORE_REVISION引入 Core 【建议】mac端的UI优化建议 #179 后,fix(desktop): 接入工具链忽略文件自忽略规则 #2328 的桌面端测试与功能矩阵未合入main。ui崩溃:Lithe-IDEA/viva@3c6c4608启用了base/attrcheck_dev.go的未使用身份检查,暴露了旧 forkui/textview(ContextMenuAt(c.Key("menu"))早退漏键)及桌面端多处传给叶节点/早退/非消费调用的Key/Part/KeyInt。-tags devCI 检查)。检查项
desktop/internal/settingswindow、desktop/internal/workbench(-tags dev/-tags 'dev vivahead')与desktop/internal/toolchain(来自 fix(desktop): 接入工具链忽略文件自忽略规则 #2328)覆盖全部失败场景,修复前分别触发上述unusedName/Key on leafpanic 与.gitignore断言失败,修复后全部通过。desktop/internal/中带Part/Key/KeyInt的自定义视图辅助函数并统一修复。desktop/internal/pluginview/render.go有两处既有viva vetkept-context提示(pluginview/render.go:24,141),本次未改其所有权设计,只在本地清理了其中的多余Key泄漏;运行internal/toolchain等未修改源码以外的功能路径。.agents/notes/implemented/bug-fix/记录:自忽略规则已按 fix(desktop): 接入工具链忽略文件自忽略规则 #2328 更新至.agents/notes/implemented/architecture/2026-11-09-viva-toolchain-settings-and-build-resolution.md。范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/<id>.json:更新plugin-injected-toolchains.json、settings-about-page.json、workbench-tool-stripe-icons.json,原有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 或 SkillUI 验证 / UI evidence
N/A:仅修复
-tags dev下的身份键归属(将错位的Part/Key从叶节点、非消费调用和早退路径移除并恢复ui.Spacer(c)),不改变视觉布局、样式、文案或交互状态;已通过无头窗口与 Metal-tags 'dev vivahead'测试验证不崩溃且断言全过。统一日志系统 / Structured logging
N/A:本次未新增或改动日志事件、生命周期终态、错误边界或日志文案。
界面文案 / i18n
shared/i18n/node scripts/i18n/verify-app-language-localization.mjs和node scripts/i18n/generate-i18n.mjs --check,没有放宽脚本或扩大豁免名单逻辑归属 / Logic placement
N/A:忽略规则与自忽略编辑计划已在 Rust Core 实现;本次仅更新桌面端测试、Viva 依赖 pin 与 UI 节点 Key 归属。
性能与内存 / Performance and memory
N/A:未新增后台任务、缓存、轮询或运行时资源消耗。
设置 / Settings
N/A:未改变设置项读写来源、回显行为或设置页分组归属。
插件契约 / Plugin contract
N/A:未修改插件契约、能力版本或后端协议。
发行包与资源 / Bundle and resources
./scripts/desktop/verify/verify-runtime-bundle-immutability.sh无用代码与重构 / Dead code and refactoring
ui.Spacer(c))settingswindow中remote_workspace_view_test.go在并发包压力下的偶发失败现象在验证中如实记录(无额外提交重构)。验证 / Verification
node scripts/desktop/validate-pins.mjsviva v0.6.8-0.20261123134538-bb85256c8ffa resolves,core bb0ad53f... is reachable)(cd desktop && gofmt -l .)(先gofmt -w .)./scripts/desktop/generate-desktop-icons.sh/./scripts/desktop/generate-desktop-file-icons.shicons.go/icons_tree.go同步生成go.svg注释)./scripts/desktop/desktop-go.sh vet ./...&./scripts/desktop/desktop-go.sh vet -tags dev ./..../scripts/desktop/desktop-go.sh --exec go run github.com/vivaui/viva/cmd/viva vet ./...desktop/internal/pluginview/render.go:24,141kept-context(exit 1),无新增问题./scripts/desktop/desktop-go.sh test -tags dev -count=1 ./internal/buildinfo ./internal/settingswindow ./internal/pluginview ./internal/workbenchbuildinfo 0.402s、settingswindow 5.441s、pluginview 1.188s、workbench 359.889s;注:此前一次高负载运行中TestRemoteWorkspaceDamagedFileIsReported曾偶发失败 1 次,单独-count=5050/50 通过,最终全套复跑通过)./scripts/desktop/desktop-go.sh test -tags 'dev vivahead' -count=1 ./internal/settingswindow ./internal/pluginview ./internal/workbenchsettingswindow 6.388s、pluginview 1.258s、workbench 351.916s)DEV_TESTED全量无标签包./scripts/desktop/desktop-go.sh test -count=1 "${untagged[@]}"internal/toolchain3.541s/2.986s):默认PATH下因本机/opt/homebrew/bin/bash(5.3.9)排在/bin/bash前导致internal/localshell2 个bash挂起测试失败,且internal/cliTestCLILauncherPreservesNativeArguments(5s 子测试上限)在 80 包并行 CGO 链接期间超时;将/bin置于PATH最前复跑全包时localshell原 2 个用例通过,但并发压力下TestWSLScriptStartsTheLoginShellInTheStartFolder/bash与TestCLILauncherPreservesNativeArguments各自超时PATH="/bin:/usr/bin:/usr/sbin:/sbin:$PATH" ./scripts/desktop/desktop-go.sh test -count=1 ./internal/cli ./internal/localshellinternal/cli 1.908s、internal/localshell 7.648s,/bin/bash 3.2.57)bash -n(13 个脚本)、zsh -n(2 个图标脚本)、shellcheck -S warning(0.11.0,13 个 bash 脚本)node scripts/i18n/verify-app-language-localization.mjs&generate-i18n.mjs --check&node --test --test-timeout=60000 scripts/i18n/test-i18n.mjs./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh&verify-platform-feature-matrix-change.sh origin/main HEAD./scripts/agent-notes/verify-agent-notes.sh./scripts/desktop/verify/verify-runtime-bundle-immutability.sh&node --test scripts/desktop/verify/test-runtime-bundle-immutability.mjsdesktop-ci.ymlFormat and script tests两批node --test,含desktop-core-cache.test.mjs)./.agents/skills/write-stable-tests/scripts/verify-test-stability.sh --base origin/mainrg插件零依赖自查未能执行的检查和原因:
ubuntu-latest)与 Windows(windows-latest/ Parallels 虚拟机)构建、vet 与测试:当前在 macOS 宿主执行,需在 PR 就绪后的 GitHub Actionslinux-test与windowslane 验证。-tags 'vivahead lithevisual'截图采集用例:本次运行了-tags 'dev vivahead',未额外运行需要LITHE_VISUAL_OUTPUT_DIR的截图生成。提交前确认 / Final checks
main创建(已 merge 最新origin/mainc086a0b1b);目标分支:maingh pr ready或 merge.build/、target/、dist/、.artifacts/等产物,没有凭据、个人路径和未脱敏的日志或截图