Skip to content

fix(windows): 粘贴模式下也可隐藏键盘列表中的 OpenLess (#1015) - #1017

Open
HKLHaoBin wants to merge 3 commits into
Open-Less:betafrom
HKLHaoBin:feat/1015-paste-keyboard-list-visibility
Open

fix(windows): 粘贴模式下也可隐藏键盘列表中的 OpenLess (#1015)#1017
HKLHaoBin wants to merge 3 commits into
Open-Less:betafrom
HKLHaoBin:feat/1015-paste-keyboard-list-visibility

Conversation

@HKLHaoBin

@HKLHaoBin HKLHaoBin commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Closes Windows:剪贴板粘贴模式下也应提供「在键盘列表中显示 OpenLess」选项 #1015:剪贴板粘贴模式下也可使用「在键盘列表中显示 OpenLess」;按 windows_insertion_mode 决定是否启用语言配置文件(SendInput/Paste 跟随偏好,TSF 仍强制启用,不改写用户 hide 偏好)。
  • 设置持久化比较前后 desired 再调用 EnableLanguageProfile,避免 SendInput↔Paste 等等价切换重复打系统 API;补齐事务/回滚与前端谓词测试及五语言文案。
  • 顺带修 release 产物 CI:1.3.18-Beta.Nworkflow_dispatch 时按版本号跳过 Windows MSI;Apple Silicon 将 mlx.metallib 放到 Contents/Resources 并在 worker 启动时 set_metallib_path,避免 ad-hoc codesign 失败。

Test plan

  • npm --prefix openless-all/app test(含 windowsKeyboardListToggle
  • 普通 CI workflow_dispatch 通过
  • release-tauri run 33307225744 全绿(Win / macOS arm64+intel / Linux)
  • Windows 桌面:Paste 模式下开关「在键盘列表中显示 OpenLess」,确认语言列表可见性跟随;切到 TSF 后仍强制显示且不改写 hide 偏好
  • SendInput ↔ Paste 切换时不重复触发无意义的语言配置文件启用/禁用

HKLHaoBin and others added 3 commits August 30, 2026 16:17
Extend the keyboard-list visibility toggle and desired-profile logic from
SendInput-only to all non-TSF insertion modes so clipboard paste can hide
OpenLess without blocking TSF when switched back.

Refs: Open-Less#1015
Co-authored-by: Cursor <cursoragent@cursor.com>
Contents/MacOS 里的非 Mach-O 会被当成 nested code;克隆仓没有 Developer ID 时 identity '-' 会直接 bundle 失败。metallib 改为 Contents/Resources,worker 启动时调用 MLX set_metallib_path。

Co-authored-by: Cursor <cursoragent@cursor.com>
workflow_dispatch 的 ref 不是 tag,OPENLESS_RELEASE_CHANNEL 会落成 stable,但 app 版本仍是 1.3.18-Beta.7。WiX 要求 prerelease 只能是数字,MSI 直接失败。版本带 Beta/Alpha/RC 时与 beta 渠道一样跳过 MSI。

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows:剪贴板粘贴模式下也应提供「在键盘列表中显示 OpenLess」选项

1 participant