fix(linux): 收敛平台契约错配与 best-effort 降级#180
Merged
Merged
Conversation
|
Codex Review: Didn't find any major issues. Nice work! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
摘要
Closes #165
这不是“完整 Linux 支持重写”,而是先把当前平台契约收回到更诚实、更可用的状态:前端显式识别 Linux,快捷键 UI 不再错配,Wayland 的主听写热键会明确失败而不是静默失灵,划词追问改成 best-effort 抓 PRIMARY selection,Linux 的 clipboard restore 延迟也和 Windows 对齐。
改动
detectOS()新增linux分支,避免 Linux UI 落回 mac/win 假象SelectionAsk新增Super+Shift+...预设,并把浮窗热键 / 录音热键文案改成动态参数History的 copied fallback 文案在 Linux 改为Ctrl+Vwl-paste --primary/xclip/xselwayland_unsupported,不再悄悄卡死150ms提高到750ms验证
npm run build✅cargo check --manifest-path src-tauri/Cargo.toml✅@codex review