Repository navigation
fix(desktop): open Viva settings and finish interrupted shutdowns - #2287
Merged
Merged
Conversation
1lck
marked this pull request as ready for review
November 21, 2026 14:14
This was referenced Nov 21, 2026
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
#2263 启用了 Viva 的 dev 属性校验。设置首帧的分段控件触发断言。Viva 窗口循环异常返回后,工作台又等待只有 OnWake 才能处理的文件检查结果,导致语言服务器未取消、进程无法退出。
改动 / Changes
make test和 CI 的桌面检查在 dev 校验下运行设置、工作台和插件界面测试。不在本 PR 范围内 / Out of scope
Viva 固定版本
ecc66fc55042已和 Lithe fork 的 main 对齐。修复集中在宿主调用与工作台生命周期。类型专属:fix
复现与根因
Segmented does not support Label。有后台语言服务器时,窗口循环中断后进程等待其退出。f0401674d)。经git log -S确认,原有退出等待来自 Viva 迁移 Epic(0.7.0): 基于 Viva 框架的跨平台方案的迁移(#1794) #1799(0faecba49)。共享桌面实现覆盖 macOS、Windows,报告原生复现来自 macOS。检查项
workbench/fault_test.go的合成语言服务器原先只能等到自身截止时间。.agents/notes/implemented/bug-fix/。范围检查 / Scope checks
功能矩阵 / Feature matrix
workbench-settings-entry、window-controls的证据及回归步骤。整项功能的验证状态保持 pending。插件归属 / Plugin ownership
UI 验证 / UI evidence
在
eeea52655上使用-tags 'dev vivahead lithevisual'、VIVA_ATTR_CHECK=panic运行TestVisualSettings、TestVisualPluginView和TestVisualBuiltInProcessRuns,检查以下场景的明暗主题。设置和运行配置覆盖中英文,合成插件提供英文静态内容。原始 PNG 为 2×;附件是相同截图缩放后的并排图。在相同无头场景用主分支的控件实现对照。通用、调试器和插件面板的深色截图逐像素相同;运行配置截图已检查脚本文本和输入布局。macOS 原生窗口结果见下表。
统一日志系统 / Structured logging
app.background.operation_failed及结构化错误字段。恢复写入沿用原错误与通知,后台日志记录一次。scripts/logging/校验不可用。界面文案 / i18n
逻辑归属 / Logic placement
性能与内存 / Performance and memory
设置 / Settings
插件契约 / Plugin contract
发行包与资源 / Bundle and resources
无用代码与重构 / Dead code and refactoring
验证 / Verification
VIVA_ATTR_CHECK=panic desktop-go.sh test -race -tags dev -run '<定向回归>' ./internal/settingswindow ./internal/pluginview ./internal/workbenchVIVA_ATTR_CHECK=panic desktop-go.sh test -race -tags dev -timeout=10m ./internal/settingswindow ./internal/pluginview ./internal/workbenchtest-stability-macos.sh定向计时及工作树、提交差异扫描desktop-go.sh test -p=2 -timeout=10m ./...VIVA_ATTR_CHECK=panic desktop-go.sh test -tags dev -timeout=10m ./internal/buildinfo ./internal/settingswindow ./internal/pluginview ./internal/workbench全量普通测试降低并发重跑后通过,首轮曾有 CLI、Shell、工具链子进程及工作台套件超时。全工作台竞态使用 10 分钟套件时限复跑通过。退出回归连续 15 次通过。
Windows 11 ARM64 本机虚拟机缺少 Go、Rust 和 x64 MinGW,Windows x64 仿真构建与原生操作待验收。虚拟机已恢复为关机。macOS 的异常退出保留草稿场景由合成语言服务器回归覆盖,原生窗口冒烟检查覆盖正常退出。旧日志门禁未恢复。
提交前确认 / Final checks
main创建,目标分支为main。