fix(keyboard): stabilize Flow startup under memory pressure

Delay competing Rime work, add extension memory telemetry and stress coverage, and refresh the 1.8 release assets and metadata for build 79.
This commit is contained in:
Rocky
2026-08-18 10:24:02 +08:00
parent aa1059135f
commit 0f9280bd00
27 changed files with 809 additions and 105 deletions
+60 -44
View File
@@ -185,32 +185,38 @@
<h2>新功能</h2>
<div class="group">
<p class="group-title">AI 与语音助手</p>
<p class="group-title">AI Agent</p>
<div class="wn-media wide">
<video src="assets/whats-new/ai-voice-assistant-zh.mp4" autoplay muted loop playsinline preload="metadata"></video>
</div>
<ul>
<li>键盘可切换到 <strong>AI</strong>对着麦克风提问,回答会在键盘中实时出现,方便查看后再写入</li>
<li>在即时通信等输入框中,先点白色<strong>「插入」</strong>,再点绿色<strong>「发送」</strong>;只有真正插入的内容会进入历史与字数统计</li>
<li>AI 空闲时会轮播常用提问和热点建议,点一下即可生成回答;需要天气、新闻等最新资料时会联网查找,失败自动换方式重试</li>
<li>语音听写与 AI 问答合并为全新的<strong>助手模式</strong>轻点麦克风开始听写,长按麦克风可直接语音提问</li>
<li>新增<strong>热点与情境热词</strong>,麦克风区域会展示天气、节日、新闻、热搜等建议;点按即可向 AI 获取相关信息</li>
<li>AI 回答会实时显示在键盘中,确认后可插入当前输入框;支持的服务商可联网搜索,并在失败自动回退</li>
<li>仅当原输入框与光标上下文仍然匹配时自动插入 AI 回答;上下文变化时会保留回答,等待用户明确插入或丢弃</li>
<li>设置 → <strong>AI Agent</strong> 可调节<strong>「回复篇幅」</strong>:简短 / 中等 / 详细</li>
<li>刚输入过内容时,<strong>长按麦克风</strong>说出修改要求,可预览后替换原文或追加新内容</li>
<li>润色会保留原本的提问语气,不再把「你能听到吗」等问句改写成回答</li>
</ul>
</div>
<div class="group">
<p class="group-title">剪贴板与技能</p>
<p class="group-title">剪贴板与 AI 技能</p>
<div class="wn-media wide">
<video src="assets/whats-new/clipboard-skills-zh.mp4" autoplay muted loop playsinline preload="metadata"></video>
</div>
<ul>
<li>在设置 → <strong>剪贴板</strong>开启<strong>「历史记录」</strong>(默认关闭),可在本机保存最近 15 条纯文本;页面也可直接前往系统设置,将「从其他 App 粘贴」设为允许</li>
<li>键盘顶栏的<strong>剪贴板</strong>按钮可打开历史,点一条即可插入;开启<strong>「建议条」</strong>后,最新复制内容会显示在键盘上方</li>
<li>复制文字后约 30 秒内切到 AI,可直接选择<strong>回复、总结翻译</strong>;也可以说出「回复剪贴板」或「翻译剪贴板」</li>
<li>App 新增<strong>技能</strong>页,可管理最多 8 个键盘技能,并通过长按拖动调整顺序</li>
<li>右上角 <strong>+</strong> 可自定义技能名称、图标和提示词,也可连接自己的 iCloud 快捷指令</li>
<li>内置技能可从复制内容<strong>提取待办、写入日历、存入备忘录</strong>,或识别地址后打开高德、百度与 Apple 地图导航</li>
<li>新增<strong>剪贴板历史</strong>。在设置 → 剪贴板开启“历史记录”后,可在本机保存最近 15 条纯文本;该功能默认关闭</li>
<li>新增<strong>剪贴板建议条</strong>。可从键盘顶栏打开历史并点按插入;开启建议条后,最新复制内容会显示在键盘上方</li>
<li>复制文字后约 30 秒内,助手会显示<strong>回复、总结翻译</strong>等快捷技能;技能支持分页浏览,并可在技能页调整顺序</li>
<li>新增<strong>技能</strong>页,最多可将 8 个技能放入键盘。内置技能可提取待办、添加日历日程、存入备忘录,或打开地图导航</li>
<li>新增<strong>自定义 AI 技能</strong>,可设置名称、图标和提示词,也可选择连接自己的 iCloud 快捷指令</li>
</ul>
</div>
<div class="group">
<p class="group-title">编辑上次输入</p>
<ul>
<li>编辑入口移至<strong>键盘右下角</strong>。点按后可口述修改要求、对比原文与编辑结果,并选择替换原文或追加内容</li>
<li>编辑只使用最近一次由 OSGKeyboard 插入且仍可验证的文字,不会读取输入框中的无关内容</li>
</ul>
</div>
</section>
@@ -222,29 +228,31 @@
<li>iPhone 底部导航重做为 <strong>首页 / 技能 / 风格 / 设置</strong>四栏 Liquid Glass Dock,绿色胶囊清楚标示当前页面</li>
<li>技能与润色风格统一为卡片式管理:点按选择、右上角编辑、右下角显示启用状态;技能支持像主屏幕图标一样长按拖动排序</li>
<li>设置入口重新整理,AI Agent、剪贴板、语音与文字输入等页面更容易找到,当前设置摘要直接显示在导航行右侧</li>
<li>iPad 改为侧栏 + 内容区布局,增大导航触控区域并统一图标对齐;翻译移到麦克风旁与撤销对称,顶栏原位置改为剪贴板入口</li>
<li>iPad 改为侧栏 + 内容区布局;键盘横竖屏均充分利用可用宽度,并加入系统地球键、撤销、重做、复制和剪切等操作</li>
</ul>
</section>
<section class="section">
<h2>中英文输入全面升级</h2>
<ul>
<li>中英文输入均可在本机学习用户的输入习惯、候选频率和选择偏好;设置中可单独清除打字习惯,不会删除个性词库</li>
<li>拼音优化混合简拼排序,并支持 <code>zh</code><code>ch</code><code>sh</code> 两键简拼</li>
<li>英文键盘新增类 QuickType 候选栏,同时显示原词、纠错和补全;约 4 万词离线词表会结合系统词库、通讯录名称与文本替换提供建议</li>
<li>英文邻键纠错更贴合真实键盘位置,并减少对专名、短词和全大写词的误改;拒绝纠错后会学习保留原词</li>
<li>拼音优化 <code>wom</code> 等混合简拼排序,并支持 <code>zh</code><code>ch</code><code>sh</code> 两键简拼;中文候选频率和英文选择偏好会保存在本机</li>
<li>英文邻键纠错更贴合真实键,并减少对专名、短词和全大写词的误改;拒绝纠错后会学习保留原词</li>
<li>支持叠指连打、英文双空格句号,以及根据输入框显示前往、搜索、发送、完成、下一项等回车键文案</li>
<li>iPad 键盘横竖屏均铺满可用宽度,底行加入逗号、句号和系统地球键,并提供撤销、重做、复制和剪切</li>
</ul>
</section>
<section class="section">
<h2>更稳定、更可控</h2>
<ul>
<li>听写、AI 回答、编辑结果和剪贴板粘贴现在都可通过同一个撤销键一次回滚</li>
<li>长按麦克风现在用于<strong>编辑上次输入</strong>;旧的长按剪贴板语音流程已由剪贴板历史和快捷技能替代</li>
<li>中文输入资源会在 App 中自动完成初始化,部署完成后已打开的键盘也会自行恢复,无需反复重启</li>
<li>修复跨设备剪贴板导致键盘卡住、切换键盘崩溃、录音取消不及时,以及 AI 会话结束后麦克风不可用等问题</li>
<li>默认继续使用设备端语音识别;AI 使用你自己的 API Key,未配置时首页和麦克风上方会提示;剪贴板默认关闭,内容只在你主动操作后交给所配置的服务商</li>
<li>听写、AI 回答、编辑结果和剪贴板粘贴可通过统一的撤销操作回滚</li>
<li>修复切换键盘崩溃、中文输入初始化后无法恢复、通用剪贴板导致键盘卡住,以及 AI 会话结束后麦克风不可用等问题</li>
<li>全部内置与自定义润色风格都会保留问句原意,不再把用户的问题改写成回答</li>
<li>设备端语音识别仍为默认选项;AI 使用用户自己配置的服务商与 API Key,不再提供内置 DeepSeek 回退</li>
<li>长按麦克风现用于向 AI 提问;编辑上次输入改用右下角编辑按钮。旧的长按剪贴板语音指令已由剪贴板历史和快捷技能取代</li>
<li>已安装旧中文名称“待办”或“日程”快捷指令的用户,需要从技能页重新安装 <code>OSGExtractTodos</code><code>OSGExtractEvents</code></li>
<li>已移除空白区域滑动光标及其设置开关</li>
</ul>
</section>
</div>
@@ -254,32 +262,38 @@
<h2>New Features</h2>
<div class="group">
<p class="group-title">AI and voice assistant</p>
<p class="group-title">AI Agent</p>
<div class="wn-media wide">
<video src="assets/whats-new/ai-voice-assistant-en.mp4" autoplay muted loop playsinline preload="metadata"></video>
</div>
<ul>
<li>Switch the keyboard to <strong>AI</strong>, ask with the microphone, and watch the answer appear on the keyboard before writing it into the current app</li>
<li>In messaging fields, tap white <strong>Insert</strong>, then green <strong>Send</strong>; only inserted answers count toward history and character statistics</li>
<li>Idle AI rotates useful prompts and current topics that can be sent with one tap; questions that need weather, news, or other current information use web search with automatic fallback</li>
<li>Voice dictation and AI questions now share one <strong>Assistant</strong> mode: tap the microphone to dictate, or hold it to ask a question by voice</li>
<li>New <strong>trending and contextual hotwords</strong> surface suggestions for weather, holidays, news, trending topics, and more; tap one to ask AI about it</li>
<li>AI answers stream directly into the keyboard for review and insertion. Supported providers can search the web and fall back automatically when needed</li>
<li>AI answers insert automatically only while the original field and cursor context still match. If the context changes, the answer is retained for explicit insertion or discard</li>
<li>In Settings → <strong>AI Agent</strong>, choose <strong>Response length</strong>: Short / Medium / Detailed</li>
<li>Right after entering text, <strong>hold the microphone</strong>, describe the change, then preview and replace the original or append the result</li>
<li>Polish preserves your original question instead of rewriting prompts such as “Can you hear me?” into answers</li>
</ul>
</div>
<div class="group">
<p class="group-title">Clipboard and Skills</p>
<p class="group-title">Clipboard and AI Skills</p>
<div class="wn-media wide">
<video src="assets/whats-new/clipboard-skills-en.mp4" autoplay muted loop playsinline preload="metadata"></video>
</div>
<ul>
<li>Turn on <strong>History</strong> in Settings → <strong>Clipboard</strong> (off by default) to keep the latest 15 plain-text copies on this device; the same page opens system Settings for Paste from Other Apps permission</li>
<li>Open history from the keyboard's top-bar <strong>Clipboard</strong> button and tap an item to insert it; the optional <strong>Suggestion strip</strong> keeps the newest copy above the keyboard</li>
<li>Within about 30 seconds of copying text, switch to AI and choose <strong>Reply, Summarize, or Translate</strong>, or say “reply to the clipboard” or “translate my clipboard”</li>
<li>The new <strong>Skills</strong> page manages up to eight keyboard skills and reorders them with a long-press drag</li>
<li>Use the top-right <strong>+</strong> to create a skill with your own name, icon, and prompt, with an optional iCloud Shortcut connection</li>
<li>Built-in skills can <strong>extract to-dos, add calendar events, save to Notes</strong>, or recognize an address and open Amap, Baidu Maps, or Apple Maps</li>
<li>New <strong>Clipboard History</strong> keeps the latest 15 plain-text copies on this device when enabled in Settings → Clipboard. It is off by default</li>
<li>A new <strong>Clipboard suggestion strip</strong> lets you open history from the keyboard, insert an item, or keep the latest copy above the keyboard</li>
<li>For about 30 seconds after copying text, Assistant shows quick <strong>Reply, Summarize, Translate</strong>, and other skills. Skills support paging and can be reordered from the Skills page</li>
<li>The new <strong>Skills</strong> page lets you place up to eight skills on the keyboard. Built-in skills extract reminders, add calendar events, save to Notes, or open map navigation</li>
<li><strong>Custom AI Skills</strong> support your own name, icon, and prompt, with an optional iCloud Shortcut connection</li>
</ul>
</div>
<div class="group">
<p class="group-title">Edit Last Input</p>
<ul>
<li>Edit moves to the <strong>bottom-right keyboard button</strong>. Describe the change by voice, compare the original and edited text, then replace or append the result</li>
<li>Editing uses only the latest verifiable text inserted by OSGKeyboard and does not read unrelated field content</li>
</ul>
</div>
</section>
@@ -291,29 +305,31 @@
<li>The iPhone dock is rebuilt around four Liquid Glass destinations — <strong>Home / Skills / Styles / Settings</strong> — with a green capsule marking the current page</li>
<li>Skills and polish styles share one card-based interaction: tap to select, edit from the top-right, and see enabled status at the bottom-right; skills reorder with a Home Screen-style long-press drag</li>
<li>Settings navigation is reorganized so AI Agent, Clipboard, Speech, and Text Input are easier to find, with current summaries shown directly beside each row</li>
<li>iPad uses a sidebar + detail layout with larger, aligned navigation rows; Translation moves beside the microphone opposite Undo, and its former top-bar slot becomes Clipboard</li>
<li>iPad adopts a sidebar + detail layout. The keyboard fills the available portrait and landscape width and adds the system globe key, undo, redo, copy, and cut</li>
</ul>
</section>
<section class="section">
<h2>Chinese and English Typing, Rebuilt</h2>
<ul>
<li>Chinese and English typing learn candidate frequency and selection preferences locally. Typing habits can be cleared without deleting Personal Dictionary entries</li>
<li>Pinyin improves mixed abbreviations and supports two-key <code>zh</code>, <code>ch</code>, and <code>sh</code> abbreviations</li>
<li>The English keyboard adds a QuickType-style bar for the typed word, correction, and completion; an offline list of about 40,000 words works with the system lexicon, contact names, and text replacements</li>
<li>Neighbor-key correction follows the physical keyboard while autocorrect makes fewer unwanted changes to names, short words, and all-caps text; rejecting a correction teaches the original</li>
<li>Pinyin improves mixed abbreviations such as <code>wom</code> and supports two-key <code>zh</code>, <code>ch</code>, and <code>sh</code>; Chinese candidate frequency and English choices learn locally</li>
<li>Neighbor-key correction follows the physical keyboard while avoiding unwanted changes to names, short words, and all-caps text; rejecting a correction teaches the original</li>
<li>Overlapping key presses, the English double-space period, and contextual Go / Search / Send / Done / Next Return labels make typing feel closer to the system keyboard</li>
<li>On iPad, the keyboard fills portrait and landscape width, adds comma, period, and the system globe key, plus undo, redo, copy, and cut</li>
</ul>
</section>
<section class="section">
<h2>More Stable, More Controllable</h2>
<ul>
<li>One Undo key now rolls back dictation, AI answers, edit results, and clipboard pastes</li>
<li>Holding the microphone now <strong>edits the last input</strong>; Clipboard History and quick skills replace the previous hold-to-command clipboard flow</li>
<li>Chinese input resources initialize automatically in the app, and an already-open keyboard recovers after deployment without repeated restarts</li>
<li>Fixes Universal Clipboard freezes, keyboard-switch crashes, delayed recording cancellation, and a microphone that could remain unavailable after AI sessions</li>
<li>On-device speech recognition remains the default; AI uses your own API key, with setup tips on Home and above the microphone when missing; Clipboard stays off until enabled and sends text only after your action</li>
<li>One Undo action now rolls back dictation, AI answers, edits, and clipboard pastes</li>
<li>Fixes include keyboard-switch crashes, Chinese input recovery after setup, Universal Clipboard freezes, and a microphone that could remain unavailable after AI sessions</li>
<li>Every built-in and custom polish style preserves questions instead of rewriting them as answers</li>
<li>On-device speech recognition remains the default. AI uses your configured provider and API key; the built-in DeepSeek fallback has been removed</li>
<li>Holding the microphone now asks AI, while Edit Last Input moves to the bottom-right Edit button. Clipboard History and quick skills replace the old hold-to-command clipboard flow</li>
<li>If you installed the older Chinese-named Tasks or Events Shortcuts, reinstall <code>OSGExtractTodos</code> and <code>OSGExtractEvents</code> from the Skills page</li>
<li>Blank-area cursor sliding and its Settings toggle have been removed</li>
</ul>
</section>
</div>