Repository navigation
fix(windows): polish capsule and custom titlebar shell - #108
Merged
Merged
Conversation
There was a problem hiding this comment.
Sorry @Cooper-X-Oak, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
Collaborator
Collaborator
|
@codex review |
|
To use Codex here, create a Codex account and connect to github. |
7 tasks
H-Chris233
pushed a commit
to H-Chris233/openless
that referenced
this pull request
May 1, 2026
翻译模式(issue Open-Less#4) 按住录音键时随时按一下 Shift(任一侧)→ 录音结束后走"翻译输出"管线, 按"翻译"页中选定的目标语言翻译后插入到光标。 - hotkey.rs 三平台(CGEventTap / Win32 hook / rdev)都监听 Shift down 边沿, 通过新增的 HotkeyEvent::TranslationModifierPressed 上报 - coordinator.rs 加 translation_modifier_seen 标志位(begin_session 重置); end_session 路径根据它 + 非空 target_language 选 polish 或 translate - polish.rs 抽 chat_completion 共享通道;新增 translate_to + translate_system_prompt; working_languages 作为 system prompt 头部前提注入两条管线 - types.rs::UserPreferences 加 working_languages(默认 ["简体中文"])+ translation_target_language(默认空) - Settings.tsx 删除原来的录音 section 翻译配置;新建 Translation.tsx 一级页(在风格下面), 含工作语言多选 + 目标语言下拉 + 5 步使用指南 - 新增 capsule.tsx 翻译徽章:"● 正在翻译" 蓝色药丸,绝对定位在 pill 上方 8px, opacity + translateY transition 平滑出入;CapsulePayload 加 translation: bool - capsule 窗口高度 96 → 110 给 badge 让出空间 - 内置 SUPPORTED_LANGUAGES 列表(15 种自然语言原生名) Codex 后审修复(基于 4f45dee main 上跑的整体审查) - tauri.conf.json 主窗口 decorations 由 Open-Less#108 设的 false 还原为 true, Windows-only 在 lib.rs::setup 里 set_decorations(false),让 macOS 拿回原生红黄绿 - coordinator.rs::SessionState 加 session_id;spawn_recorder_error_monitor 捕获当前 id,迟到的 cpal 错误若 id 不匹配直接 drop,不会误中止后续 session - volcengine.rs 把 spawn-per-chunk 模式改成单 mpsc worker 串行 send, 彻底消除跨 consume 调用的 writer 锁 race(之前的 fix 仅在 burst flush 内部有效) 附带修复 - insertion.rs Windows/Linux 粘贴后剪贴板恢复加用户开关 restore_clipboard_after_paste (issue Open-Less#111),默认 true 保留现行行为;关掉后听写文本留剪贴板,paste 失败时可手动 Ctrl+V 找回 - SettingsModal 内容区改为 flex column + overflow:hidden,X 按钮 + 标题固定, 只 section 内容区滚动;Settings.tsx 嵌入模式右栏独立 scroll - Settings → 提供商:火山引擎 "App Key" 文案改为 "App ID" (keychain account name 不变,老用户凭据不丢) - i18n 增加 capsule.translating / nav.translation / translation.* 完整命名空间
This was referenced May 1, 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.
Summary
Testing