Repository navigation
release: 桌面端 0.8.2(Viva 同步上游 82a3318,固定 fork main fa22976) - #2089
Merged
Merged
Conversation
- go.mod replace 固定 Lithe-IDEA/viva fa22976(fork main,含上游 82a3318) - 上游 Window.SetTitle 拒绝非 UTF-8 或含 NUL 的标题并保留旧标题; Linux 文件名可以不是合法 UTF-8,交给系统前把非法序列和 NUL 换成 U+FFFD
xiaoyumuxi
marked this pull request as ready for review
November 17, 2026 06:55
1 task done
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
准备桌面端 0.8.2。按 Viva fork 维护 Note,发版前先把上游同步进 fork
main、把 Lithe 的固定版本升到 forkmain头,再写发布说明和版本号。本 PR 三个提交:chore(desktop): Viva 同步上游 82a3318,固定 fork main fa22976chore(release): 桌面端 0.8.2 版本号与发布说明docs(matrix): 窗口标题条目补上 SetTitle 非法字符替换的证据改动 / Changes
Viva 固定版本
desktop/go.mod:require github.com/vivaui/viva v0.6.6-0.20261117053149-82a3318dd91d(上游基线),replace => github.com/Lithe-IDEA/viva v0.6.6-0.20261117063411-fa22976529ca(forkmain头fa22976);desktop/go.sum随之更新。desktop/internal/workbench/window_title.go:上游Window.SetTitle现在对非法 UTF-8 或含 NUL 的标题返回错误并保留旧标题。Linux 文件名可以不是合法 UTF-8,新增systemTitle,交给系统前把非法序列和 NUL 换成 U+FFFD,其余标题原样传递。window_title_test.go:新增TestSystemTitleIsValidUTF8WithoutNUL(合法标题不变、非法字节和 NUL 被替换、结果总是 SetTitle 能接受的)。0.8.2 发布准备
desktop/viva.toml:[app] version0.8.1 → 0.8.2(Desktop Release 拒绝与标签不一致的版本)。docs/releases/v0.8.2.md:按TEMPLATE.md写的中英双语说明,范围desktop-v0.8.1...main,已通过校验脚本。Viva 同步报告
基线
main:6553826→fa22976(Lithe 原固定6553826)。vivaui/viva main:d345275..82a3318,12 个提交(含 v0.6.5 发布);git merge-base --is-ancestor 82a3318 fa22976为真,git log fa22976..82a3318为空。上游标签v0.6.5已推到 fork。2895b97经 fork feat(macos): add macOS 13 compatibility #32 合入;feat(macos): add macOS 13 compatibility #32、[Feature] 希望能支持 vim 模式 #33 被网页按钮默认 squash 合入(80a307a、d39d590),上游历史断开。feat(windows): multi-session terminal (#31) #34 用 merge commit 把2895b97接回(fa22976,父提交d39d590与1981504),没有改写历史,树与2895b97完全相同。80a307a/d39d590在 cherry-mark 中显示为 fork 独有,净改动为零。影响 Lithe 的上游改动
68f1a05、76aba78systemTitle84a9897c029d61/aaf3285(#2077 依赖的行为不变)82a3318、cd1f298MenuBarItem,无影响f93eda3bd68f9e49bc0ae、cefdb9d93ab37d、3b4114f、9107119fork 补丁去向
68f1a05/feat(app): update an open window title across native and headless backends vivaui/viva#304 +76aba78);c029d61/aaf3285Windows 补丁暂存(上游84a9897/[Feature] 支持查看单个文件的 Git 历史 #334)。[Feature]windows后期适配建议,运行多服务选项 #14 TooltipSide 已在上游。04e87c9树展开箭头、滚动条几何、Tooltip 表面(feat(ui): expose tree disclosure, scrollbar geometry and tooltip surface hooks vivaui/viva#305)。ui/list.go只差一行注释。cmd/viva/initfiles/AGENTS.md.txt取上游版本后插回 fork 的.Bars(ScrollBarStyle)/PageConfig.BarStyle说明;README.md、docs/conformance.md、app/title.go、app/title_test.go取上游。fork 没有未合的 PR。绕过代码
Disabled、plugin_settings_view.go的readOnlyField、filetree_view.go的fileTree.wheel(ui: List scroll-to needs several frames to settle, and ListState has int-only keys, no focus query and one Label for name and type-ahead vivaui/viva#203)、editor_view.go的verticalWheel、root.go的OnKey/OnShortcut。systemTitle(见上,上游 API 行为变化,不是绕过缺陷)。不在本 PR 范围内 / Out of scope
desktop-v0.8.2标签、不触发发布工作流、不改 Homebrew 配方,等维护者明确要求。go test ./...有 14 个cmd/viva打包测试失败(本机 macOS 13.0 与min_system 12.0的环境差异);在上游82a3318和旧 fork6553826上同样失败,与本次同步无关。类型专属:release
版本号(
MAJOR.MINOR.PATCH):0.8.2上一个稳定版 tag:
desktop-v0.8.1docs/releases/v0.8.2.md已按docs/releases/TEMPLATE.md写好(中文在前、英文在后),并运行node scripts/release/notes/validate-stable-release-notes.mjs docs/releases/v0.8.2.md内容来自
desktop-v0.8.1..main之间的提交、PR 和已知限制,没有编造功能、兼容性、下载文件或修复下载文件名沿用 0.8.1 已发布产物的命名(
lithe-<version>-darwin-<arm64|amd64>.dmg/.zip、-windows-amd64-setup.exe/.zip、Linux DEB/RPM/tar.gz);版本元数据只在desktop/viva.toml一处贡献者名单已按 GitHub PR 作者核验:@1lck、@xiaoyumuxi、@Mucheen、@AACS111(
lithe-support[bot]不计入)[N/A] 修改了 GitHub Actions 工作流的,已运行
actionlint:未改工作流本 PR 不创建 tag、不触发发布工作流、不编辑线上 Release
范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/window-title-active-file.json:两端证据补上window_title_test.go,notes 记下 Viva 82a3318 起 SetTitle 拒绝非法标题、systemTitle替换为 U+FFFD;验证状态保持pending./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh和verify-platform-feature-matrix-change.mjs origin/main HEAD,均通过.artifacts/下生成的矩阵视图插件归属 / Plugin ownership
N/A:未涉及插件,测试只用合成的标题字符串。
UI 验证 / UI evidence
N/A:没有布局、控件或文案变化;窗口标题对合法 UTF-8 标题完全不变。
统一日志系统 / Structured logging
N/A:没有新增生命周期、终态或失败路径日志;SetTitle 的错误在
systemTitle之后不会出现,返回值按原样忽略。界面文案 / i18n
N/A:没有新增文案。
node scripts/i18n/verify-app-language-localization.mjs和node scripts/i18n/generate-i18n.mjs --check逻辑归属 / Logic placement
N/A:
systemTitle是交给 Viva 窗口 API 前的平台层适配,不是可共享业务逻辑。性能与内存 / Performance and memory
N/A:标题只在变化时转换一次;未改编辑器模块。
设置 / Settings
N/A:未改设置。
插件契约 / Plugin contract
N/A:未改契约,
PINNED_CORE_REVISION不变。发行包与资源 / Bundle and resources
N/A:没有新增运行时资源或构建资源。
无用代码与重构 / Dead code and refactoring
验证 / Verification
./scripts/desktop/desktop-go.sh build ./..../scripts/desktop/desktop-go.sh test ./...node scripts/release/notes/validate-stable-release-notes.mjs docs/releases/v0.8.2.mdnode scripts/i18n/verify-app-language-localization.mjs、node scripts/i18n/generate-i18n.mjs --check./scripts/agent-notes/verify-agent-notes.shgofmt -l(改动文件)./scripts/desktop/generate-desktop-icons.sh、generate-desktop-file-icons.sh./scripts/platform-feature-matrix/verify-platform-feature-matrix.shgit merge-base --is-ancestor 82a3318 fa22976未能执行的检查和原因: Windows、Linux 原生窗口未实测,交给本 PR 的完整 CI。
提交前确认 / Final checks
main(a3d146239)创建,目标main