fix(v1.3.1-5): 胶囊动画 + Qwen3 灰显 + 5 SVG 重画 + 6 项 Windows 视觉修复 + polish 反降级#423
Merged
Conversation
added 5 commits
May 12, 2026 17:26
review 阶段标的 4 个 High 全部处理,加上用户在 v1.3.1-4 装机后新报的 2 个 Windows 视觉问题,本 commit 一次性收: [review-capsule High] - Capsule.tsx 抽 EXIT_ANIM_MS / INITIAL_VISIBLE_STATE 两个 const,去掉 `240` magic number + `isTauri ? 'idle' : 'recording'` 字面量重复 - 修正退出动画调度的 race 描述注释(cleanup clearTimeout 阻止 fire, 不是"定时器仍会触发") [review-qwen3 High] - LocalAsr.tsx Windows Qwen3 disabled wrapper 加 `inert` HTML5 属性, 让键盘 Tab 也跳过 disabled 区域(仅靠 pointerEvents:none 不挡键盘 + aria-disabled 不传给后代)。两个 wrapper 都加。@ts-expect-error 注释解释为何这里需要绕过 TS lib.dom 旧版未收录 inert 属性。 [review-icons 2 High] - Icon.tsx `overview`: 在三个 dashboard tile 顶部加 sparkline 数据线 区分 layout icon(之前几乎一样,14px nav 视觉无法分辨) - Icon.tsx `selectionAsk`: 气泡尾巴 y=24 → y≈23,避免 strokeLinecap round + strokeWidth 1.5 出 viewBox 底边被裁 [用户新 surface — Vocab 词条大椭圆] - Vocab.tsx VocabChip 加 `alignSelf: 'flex-start'`。真根因(之前 PR #422 误判为 button user-agent appearance):父 flex 容器 minHeight: 80 让 flex item 默认 align-self: stretch 把单个 chip 拉伸到 80px 高, borderRadius:999 渲染成超大椭圆。alignSelf:flex-start 阻止拉伸。 [用户新 surface — 顶栏 vs 玻璃色差] - lib.rs DWMWA_CAPTION_COLOR 从纯白 0xFFFFFF → 0x00F7F5F5 (rgb 245,245,247) 跟 WindowChrome glass linear-gradient 起始色一致 - WindowChrome.tsx glass alpha 0.78 → 0.92(PR #422 为加强玻璃感降的, 现在为压缩色差升回去,玻璃感由 backdrop-filter blur+saturate 提供) 后续:用户希望调研"完全取消 Windows 原生顶栏(像微信那样自绘)"—— 属于 v1.3.1-6 级别 large rewrite,单独追。
用户报 DeepSeek V4 Flash 走 Structured 模式时仍只做轻度润色(标点 + 断句 + 去口癖然后输出一段连贯段落),没有按双层 list 结构化输出。模型能力较 弱时容易把"清晰结构"理解成"清楚地表达"而非"双层归类"。 加两条新规则到 Structured task block: 1. **不可降级到轻度润色** —— 明确禁止只补标点然后输出连贯段落,最低 输出形态是双层 list。即使原文听起来连贯,事项 ≥3 都必须双层化。 2. **多个组合需求处理规则** —— 用户原话:"当用户提出多个组合需求时, 要分别归入不同大类,并且按照顺序把这些组合需求做结构化整理"。 写进规则:按语义/领域分大类,按口述顺序排,每个大类用 (a)(b)(c) 子项,不允许合并丢失或重排到错误大类。 加在原有 # 任务(清晰结构) 标题之后、"**重要前提**"之前。前后顺序与 其他段落兼容,不动 ROLE_BLOCK / COMMON_RULES / OUTPUT / 示例。
appergb
pushed a commit
that referenced
this pull request
May 12, 2026
PR #423 合并后 bump。本版本相对 v1.3.1-4-beta 累积: [3 个 dev task] (worktree-isolated dev agents + 3 个 reviewer) - 胶囊动画:进入从中心冒出向左右生长,退出左右收缩 + 淡化 + 下移 - Windows 千问3 ASR 灰显 disabled + 不可激活提示 banner - 5 个 SVG 重画:translate / vocab / history / overview / selectionAsk [review feedback fix] - Capsule EXIT_ANIM_MS / INITIAL_VISIBLE_STATE 抽 const - Qwen3 disabled 区加 inert 让键盘 Tab 跳过 - overview icon 加 sparkline 数据线区分 layout icon - selectionAsk 气泡尾巴拉到 y=23 防 viewBox 24 底裁切 [用户实机 surface] - Vocab 词条大椭圆真根因:父 flex minHeight 拉伸子 item,加 alignSelf:flex-start 阻止 - Windows 原生顶栏 vs 玻璃色差:caption color 0xFFFFFF → 0x00F7F5F5 跟 glass 起始色一致;glass alpha 0.78 → 0.92 压色差 [polish prompt 反降级] - Structured task block 加"不可降级到轻度润色"和"多个组合需求归类规则"
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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.
User description
v1.3.1-4 验证后用户 surface + 多 agent 流程产出。本 PR 5 个 commit,3 个 dev task + 6 项 review/用户修复 + 1 项 polish prompt 加强。
主线 3 个 dev task(agent-spawned worktree, reviewer 全部 approve-w/concerns)
1. 胶囊动画重做(dev-capsule
ad6cd93b)scaleX .18 → 1,opacity 0 → 1, 260ms)scaleX 1 → .18 opacity 1→0 translateY 0→8px, 240ms)leaving状态 +lastVisibleState快照保留退出帧视觉内容animation: 'none'路径,全平台一致2. Windows 千问3 ASR 灰显 disabled(dev-qwen3
a981815b)opacity:0.5 / filter:grayscale(0.4) / pointerEvents:none包整段 Qwen3 卡片qwenUnavailableOnWindowsbanner,5 个 locale 完整翻译3. 5 个 SVG 图标重画(dev-icons
f44eb595)+10/-5onlyIcon.tsxreview/用户修复(
35d53b8"polish + Windows visual fixes")review-capsule High
EXIT_ANIM_MS / INITIAL_VISIBLE_STATE抽 const 去 magic numberreview-qwen3 High
inertHTML5 属性让键盘 Tab 也跳过 disabled 区域review-icons High (×2)
overview加 sparkline 区分layouticon(之前 14px nav 无法分辨)selectionAsk气泡尾巴 y 24→23 防止 viewBox 底边裁切用户新 surface(v1.3.1-4 实机验证后)
minHeight:80+ chip 默认align-self:stretch把 chip 拉到 80px 高,borderRadius:999渲染成超大椭圆。修:chip 加alignSelf:flex-startlib.rscaption color0xFFFFFF纯白 →0x00F7F5F5(rgb 245,245,247) 跟 glass 起始色一致WindowChrome.tsxglass alpha0.78 → 0.92(PR fix: v1.3.1-4 Windows 字号/顶栏色/玻璃 + Vocab 大圈 + polish 回滚 #422 为加强玻璃感降的,现升回去压色差;玻璃感由 backdrop-filter blur+saturate 提供)polish prompt 加强(
76e0723)用户报 DeepSeek V4 Flash 走 Structured 不输出双层 list、退化成连贯段落。Structured task block 加 2 条新规则:
Test plan
后续待做(v1.3.1-6+)
PR Type
Enhancement, Bug fix
Description
Refine Windows title bar and glass
Disable Qwen3 on Windows
Polish capsules, icons, and chips
Strengthen structured polish prompts
Diagram Walkthrough
File Walkthrough
3 files
Match Windows caption to glass backgroundGray out Windows Qwen3 managerPrevent stretched vocabulary chips9 files
Restore stricter structured polish guidanceAdd symmetric capsule exit animationRedraw navigation icons for clarityUnify glass opacity across platformsAdd Windows Qwen3 warning stringAdd Windows Qwen3 warning stringAdd Windows Qwen3 warning stringAdd Windows Qwen3 warning stringAdd Windows Qwen3 warning string