TRIP
30cf33e2b1
Merge pull request #589 from Open-Less/docs/readme-real-example
...
docs(readme): 实际效果示例换成客户回邮件用例(中英双语)
2026-06-04 19:33:36 +08:00
吕柏青
5cf015de17
docs(readme): 实际效果示例换成客户回邮件用例(中英双语)
...
把「一个实际例子 / A concrete example」从未充分测试的 SQL→ChatGPT 演示
换成经过测试的客户回邮件用例:口语输入 → 结构化清理稿,更贴合
OpenLess「只清理你的话、不替你作答」的定位,宣传与实际相符。
收束句由「回车发送」改为「粘贴给 ChatGPT/Claude 续写」,标语保持不变。
2026-06-04 19:31:15 +08:00
TRIP
2067367d83
Merge pull request #588 from ig505gi/fix-beta-reset
...
fix(macos): Beta 更新重启前重置 TCC 权限记录
2026-06-04 19:29:46 +08:00
TRIP
61f5416c73
Merge pull request #587 from Open-Less/docs/discord-community-link
...
docs(readme): 顶部加入 Discord 社区入口
2026-06-04 19:00:47 +08:00
Ian Gao
f482ac21ee
fix(macos): Beta 更新重启前重置 TCC 权限记录
2026-06-04 16:04:54 +08:00
吕柏青
ace7fe47ab
docs(readme): 顶部加入 Discord 社区入口(badge + 社区行,中英双语)
2026-06-04 13:20:32 +08:00
吕柏青
bd435b9e5e
chore(release): bump version to 1.3.6-2 (Beta) — 翻译会话参与对话感知润色( #583 ) + 快速录音提示音丢失修复( #584 ) + 正式发版自动更新 Homebrew cask( #586 )
2026-06-04 13:17:17 +08:00
TRIP
7cc8175d98
Merge pull request #586 from Open-Less/ci/auto-update-homebrew-cask
...
ci(release): 正式发版自动更新 Homebrew cask(+ 补 cask 到 1.3.5)
2026-06-04 13:08:27 +08:00
TRIP
13a0a03ab3
Merge pull request #584 from Open-Less/fix/audio-cue-missing
...
fix(audioCue): 修复快速录音时录音提示音偶尔丢失
2026-06-04 13:08:19 +08:00
TRIP
85d6ed851f
Merge pull request #583 from Open-Less/fix/polish-context-isolation
...
fix(polish): 对话感知上下文——按风格包隔离 + 翻译会话参与润色(不串味)
2026-06-04 13:08:09 +08:00
吕柏青
4c31448cb9
test(polish): 补 Case 4 单测——普通历史在翻译轮喂 final_text (@claude review)
2026-06-04 12:59:08 +08:00
吕柏青
18ffbb0e48
fix(ci): cask intel sed 锚定 sha256 行,避免误改 arch 指令 (@claude review)
...
裸 s/intel: "..."/ 会同时命中 cask 第2行 arch arm: "aarch64", intel: "x64",把 arch 的 intel 改成哈希 → Intel Mac 用户 brew 安装 404。改用 ^[[:space:]]*intel: 锚定 sha256 块行(捕获组保留缩进),并加防呆:arch 指令被破坏或 sha256 没写进去就让 job 失败。本地模拟新旧 sed 对比已验证。
2026-06-04 12:57:31 +08:00
吕柏青
6b28d42ea1
chore(cask): openless 补到当前正式版 1.3.5
...
cask 此前停在 1.3.4(自动更新一直没生效),Homebrew 用户拿不到 1.3.5。用 v1.3.5-tauri release 资产 sha256 一次性补齐。
2026-06-04 11:50:32 +08:00
吕柏青
0d35c811fe
ci(release): 正式发版后在流水线内自动更新 Homebrew cask
...
原 update-cask.yml 监听 release: published,但 Release 由 release-tauri.yml 用默认 GITHUB_TOKEN 创建,不会触发该事件(GitHub 防递归)——所以 cask 从不自动更新,需手动;且其条件 endsWith('-tauri') 连 beta 也匹配。
改为在 release-tauri.yml 内新增 needs:build 的 update-homebrew-cask job:仅正式版 tag(v*-tauri 且非 -beta-tauri),构建+建 Release 后下载 DMG 算 sha256、sed 更新 Casks/openless.rb、提交回默认分支([skip ci])。删除失效且会错配 beta 的 update-cask.yml。
2026-06-04 11:50:32 +08:00
吕柏青
bff4bd727f
feat(polish): 翻译会话参与对话感知润色(润色+翻译单次调用 + 按轮剔除译文)
...
接续上一条「按风格包隔离」,把「翻译会话直接排除出上下文」改成「保留但按需剔除」:翻译会话也参与对话连续性,又不让外语译文污染普通润色。
- 翻译改为单次 LLM 调用同时润色源文 + 翻译:polish_and_translate_or_passthrough 用合成系统提示词(翻译规则 + 追加输出润色后源文 + 两段哨兵)走现成 polish() 通道,复用对话上下文;解析失败 / 译文为空则退回专用 translate_text 拿干净译文(不丢字)。
- DictationSession 加 polish_source(serde default 兼容旧历史),存润色后的源语言文本。
- eligible_polish_context_turns 加 current_translation_active 分流:翻译历史在普通轮喂 polish_source(无则跳过=剔除译文),翻译轮喂 final_text;普通历史始终喂 final_text。
- 前后端类型同步(polishSource);补解析器 + 上下文分流单测,cargo test --lib 371 全过。
2026-06-04 11:36:35 +08:00
吕柏青
52e2e45bb2
fix(audioCue): 修复快速录音时提示音偶尔丢失
...
suspended 的 AudioContext 播放前需异步 resume。原实现用单个 playGeneration:快速点一下录音时 resume 还没完成、录音已结束(stopAudioCue 自增代号),挂起的播放被作废 → 提示音「有时没有」。
A 治本:新增 primeAudioCue(),胶囊挂载时预热 resume,让常见路径同步播放、绕开竞态。
B 兜底:拆 playSeq(新播放接管)/ stopSeq(发生过 stop)双序号 + 400ms 迟到阈值,抽出纯函数 shouldPlayDeferredCue 决策——被新播放接管→不播;停了且真迟到→不播;停了但 resume 很快(快速录音)→仍补响一声。
补 shouldPlayDeferredCue 单测(含边界);tsc --noEmit 通过。
2026-06-04 09:23:15 +08:00
吕柏青
8bc1583c98
fix(polish): 对话感知上下文按风格包隔离 + 排除翻译会话
...
对话感知 polish 回看最近历史作为 LLM 上下文时,之前复用所有成功会话,导致两类串味:
1. 切换风格包后,旧风格包的历史仍被带进新提示词,把当前风格带偏;
2. 翻译会话的译文/指令污染下一段普通润色(如中文输入被带成英文)。
给 DictationSession 增加 style_pack_id / translation_active 两字段(serde default 向后兼容旧历史),抽出 eligible_polish_context_turns 过滤:仅复用同一 active 风格包、且非翻译的成功会话;旧历史无 style_pack_id 时保守排除。前后端类型同步,补两条单测。
2026-06-04 09:12:33 +08:00
jmr
898c6911c6
Update fmt.Println message from 'Hello' to 'Goodbye'
2026-06-03 22:28:57 +08:00
jmr
b0fe9ccb52
Revise README for improved clarity and structure
...
Updated README.md to enhance clarity and formatting.
2026-06-03 22:20:54 +08:00
Chris233
63d3e16757
Merge pull request #577 from aeoform/chore/suppress-linux-build-warnings
...
chore: suppress all Linux build warnings (192 → 0)
2026-06-03 21:53:23 +08:00
aeoform and Claude Opus 4.7
8d386815f2
fix(ci): restore macOS/Windows imports removed by cargo fix
...
Restore std::path::Path, std::sync::Arc, parking_lot::Mutex, anyhow::Result,
std::time::{Duration, Instant} imports in cache.rs, PhysicalPosition/PhysicalSize
in lib.rs, and std::time::Duration in selection.rs. These were removed by
cargo fix --broken-code because they appear unused on Linux but are needed
on macOS and Windows.
Add unused_imports to cfg_attr allow lists so future cargo fix runs on
Linux won't strip cross-platform imports again.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-06-02 23:29:41 +08:00
aeoform and Claude Opus 4.7
b4d0f1e36e
fix(ci): restore variables broken by cargo fix --broken-code
...
Restore handle_pressed/handle_released imports and window/show_capsule/
visible/audio_timeout/duration_ms variable names that cargo fix renamed
with _ prefix. These are used on macOS/Windows but the _ prefix broke
the builds. Add platform-gated import for model_dir in test_run.rs.
Expand cfg_attr allow lists to cover unused_imports and unused_variables
where needed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-06-02 23:19:07 +08:00
aeoform and Claude Opus 4.7
72b53520f2
chore: suppress all Linux build warnings (192 → 0)
...
Add #[cfg_attr(target_os = "linux", allow(dead_code, unused_variables))]
to 20+ source files where Linux builds see platform-specific dead code
(Windows IME, macOS permissions, Sherpa ASR, clipboard restore, etc.).
Also manually fix 3 real warnings: unused imports in coordinator.rs,
unreachable expression in insertion.rs.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-06-02 23:01:31 +08:00
吕柏青
08ad6b7979
docs(readme): 突出风格市场 + 流式输出,状态更新到 v1.3.6
2026-06-01 18:00:22 +08:00
Chris233
ad629367d7
Merge pull request #572 from katanumahotori/fix/whisper-hallucination-verbose-json
...
fix(asr): 用 verbose_json 元数据丢弃 Whisper 幻听段落(仅 OpenAI/Groq)
2026-06-01 16:52:41 +08:00
吕柏青
d1a5b75c2b
chore(release): bump version to 1.3.6-1 (Beta) — MediaPlayPause 线控录音 + Toggle 冷却( #545 ) + 多屏胶囊跟随( #569 ) + 本地模型管理( #559 ) + Linux 磨砂回退( #553 )
2026-06-01 15:08:50 +08:00
片沼ほとり and Claude Opus 4.8
48713ed6d5
fix(asr): drop Whisper hallucination segments via verbose_json (OpenAI/Groq only)
...
Whisper fabricates plausible-but-unspoken text on silence/noise (the
classic hallucination defect): leading/trailing silence or mic hiss turns
into unrelated words. When the provider returns verbose_json, each segment
carries no_speech_prob / avg_logprob / compression_ratio — use them to
drop segments that clearly aren't speech (conservative thresholds so real
speech is never trimmed). No segments in the response → fall back to text.
Provider-gated to avoid breaking non-Whisper backends:
- whisper (OpenAI) / groq: native Whisper, verbose_json fully supported
with the metrics above — filter is effective. Verified against both
providers' current docs.
- siliconflow: SenseVoice / TeleSpeech, response_format is undocumented;
sending verbose_json risks a 4xx, so it stays on the existing json path.
- zhipu (GLM-ASR): accepts verbose_json but does not emit those metrics
(filter would be a no-op), so it also stays on json to minimize behavior
change. Only whisper/groq opt in.
whisper_supports_verbose_json(provider_id) decides the flag; WhisperBatchASR
gains a verbose_json bool. Missing metric fields are treated as "keep" so
the filter is harmless for any provider that returns segments without them.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-01 14:21:54 +09:00
Chris233
137c175ccb
Merge pull request #569 from katanumahotori/fix/capsule-follow-input-monitor
...
fix(windows): 多显示器下胶囊跟随正在输入的屏幕
2026-06-01 12:42:26 +08:00
Chris233
c87bab4dc3
Merge pull request #571 from H-Chris233/fix/545-toggle-cooldown
...
fix: add 600ms activation cooldown after end_session for Toggle mode (#545 )
2026-06-01 12:27:46 +08:00
H-Chris233
1788da4667
fix: add 600ms activation cooldown after end_session for Toggle mode ( #545 )
...
在 coordinator 层增加 timer-based busy gate:end_session / cancel_session
将 phase 设为 Idle 时记录冷却时间戳;handle_pressed 的 (Toggle, Idle)
分支在 begin_session 前检查该冷却,未过期则忽略本次按键。
冷却时长 600ms(覆盖胶囊 EXIT_ANIM_MS 360ms + 余量),既拦截
三连按的第 3 次误触,也不影响用户主动重新激活。
- coordinator.rs: 新增 POST_SESSION_COOLDOWN_MS 常量 + Inner 字段
- dictation.rs: handle_pressed 增加冷却检查
- dictation.rs: end_session / cancel_session 成功收尾时设置冷却
2026-06-01 12:08:55 +08:00
Chris233
9b05ed0c71
Merge pull request #570 from H-Chris233/fix/linux-frosted-glass-553
...
fix(linux): fallback from backdrop-filter when WEBKIT_DISABLE_COMPOSITING_MODE=1
2026-06-01 10:36:46 +08:00
H-Chris233
c45b6c0179
fix(linux): fallback from backdrop-filter when WEBKIT_DISABLE_COMPOSITING_MODE=1
...
Issue #553 : Linux 上 WEBKIT_DISABLE_COMPOSITING_MODE=1 时 WebKitGTK backdrop-filter
在 DOM 重排后失效(hover 历史词汇表 / 选择条目刷新面板)。
方案:
- Rust 端新增 is_no_compositing_mode command 暴露环境变量状态
- App.tsx 初始化时调用,写入 data-ol-no-compositing 到 <html>
- CSS 用 [data-ol-no-compositing] 选择器覆盖 inline style,切换到
渐变+噪点纹理假磨砂方案(复用 tokens.css --ol-frost-grain)
- WindowChrome/FloatingShell 加 className 钩子
受影响的三处 backdrop-filter:WindowChrome 底板、主面板、
Linux 标题栏。ProviderPrompt/HotkeyModePrompt 弹窗遮罩
(瞬态 UI)跳过。提交签署:Reasonix Code
2026-06-01 09:35:07 +08:00
片沼ほとり and Claude Opus 4.8
2c47ef65b8
fix(windows): 多显示器下胶囊跟随「正在输入的屏幕」
...
问题:多显示器环境下,无论在哪块屏输入,录音胶囊总是固定出现在主屏
(或胶囊窗口自己所在那块屏)。在 A 屏取消后到 B 屏输入,胶囊仍停在 A 屏。
根因:`position_capsule_bottom_center` 用 `window.current_monitor()` 决定
位置,拿到的是胶囊窗口自身所在显示器,而非用户正在输入的显示器。并且
`maybe_position_capsule_bottom_center` 的去重缓存 key 也基于同一个
current_monitor,于是「输入焦点已切到另一块屏、但胶囊还在原屏」会被误判为
「没变化」→ 跳过重新定位,胶囊被钉死在原屏。
修复:
- 新增 `foreground_window_monitor()`(Win32 GetForegroundWindow →
MonitorFromWindow → GetMonitorInfoW + GetDpiForMonitor),定位「正在输入的
App」所在显示器;`position_capsule_bottom_center` 在 Windows 上优先按它
(physical px + 该屏 DPI)摆放,取不到时回退 current_monitor。
- `capsule_layout_snapshot()` 让去重缓存 key 与实际定位用的显示器一致,
消除「输入切屏但不重定位」的误判。
- Cargo.toml 增加 `Win32_UI_HiDpi` feature(GetDpiForMonitor 所需)。
仅 Windows 路径改动;macOS / Linux 行为不变(仍走 current_monitor)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-01 09:56:54 +09:00
Chris233
4d2a35d2d3
Merge pull request #568 from H-Chris233/feat/media-play-pause-trigger
...
feat: 新增 MediaPlayPause HotkeyTrigger 支持有线耳机线控录音 (#477 )
2026-06-01 08:39:32 +08:00
H-Chris233
dc846f60e6
feat: 新增 MediaPlayPause HotkeyTrigger 支持有线耳机线控录音
...
- 枚举新增 MediaPlayPause 变体,与 RightControl 等并列
- Windows WH_KEYBOARD_LL 钩子捕获 VK_MEDIA_PLAY_PAUSE (0xB3)
- macOS/Linux 标记为 unreachable (Windows-only)
- 前端类型、i18n 翻译支持
- 配置迁移保护:Linux fcitx 函数添加 MediaPlayPause 守卫
Closes #477
2026-05-31 23:14:48 +08:00
Chris233
854d0aacd1
Merge pull request #566 from H-Chris233/fix/issue-562-qa-active-asr
...
fix(qa): use active ASR provider in floating panel
2026-05-31 21:34:22 +08:00
Chris233
0b615a9a3e
更新 pr-agent.yml
2026-05-31 21:32:21 +08:00
H-Chris233
4e30c7461d
fix(qa): use active ASR provider in floating panel
2026-05-31 21:04:37 +08:00
Chris233
bbc78d1461
Merge pull request #565 from H-Chris233/fix/issue-559-local-model-management
...
Fix local ASR model storage management
2026-05-31 20:12:32 +08:00
Chris233
2990e39994
更新 pr-agent.yml
2026-05-31 20:11:27 +08:00
H-Chris233
550f410b9a
fix: guard Foundry model directory refresh
2026-05-31 19:59:13 +08:00
H-Chris233
110902f49d
fix: add local model storage management
2026-05-31 19:32:49 +08:00
吕柏青
acac9f67d9
chore(release): bump version to 1.3.5-1 (Beta) — 录音开始合成提示音
...
本次只动版本号,功能改动已在 #560 落盘:
- 按下录音热键进入 recording 即播放 Web Audio 合成提示音,提醒「已开始录音」
- 新增 audioCueOnRecord 开关(默认开启),录音与输入设置可关闭 + 试听
2026-05-31 14:02:47 +08:00
TRIP
4bc94ecc5e
Merge pull request #560 from Open-Less/feat/audio-cue-on-record
...
feat(capsule): 录音开始播放合成提示音 + 录音与输入设置开关
2026-05-31 14:01:35 +08:00
Chris233
f669370003
Merge pull request #556 from H-Chris233/fix/issue-548-macos-fullscreen-capsule
...
fix(macos): show capsule in fullscreen Spaces
2026-05-31 13:30:56 +08:00
H-Chris233
a5970f8c12
fix(macos): avoid gated AppKit collection type
2026-05-31 11:29:43 +08:00
Chris233
8a68be01d3
Merge pull request #558 from andya1lan/fix/release-notes-duplicate-prelude
...
fix(ci): Release Notes 里的注意事项只输出一次
2026-05-31 10:05:10 +08:00
吕柏青
2784e9764b
fix(audioCue): resume 期间被叫停则作废本次播放(pr_agent 评审)
...
suspended 的 AudioContext 先 resume 再排期,若等待 resume 期间录音已结束
(stopAudioCue)或有新一轮播放,旧的 resume 回调不再排期,避免「录音已停、
提示音晚到」。引入 playGeneration 代号:stopAudioCue 自增并停节点;
scheduleCueVoices 只 stopVoices 不动代号;deferred 播放回调比对代号决定是否排期。
2026-05-31 09:44:25 +08:00
吕柏青
84a96a3975
feat(capsule): 录音开始播放合成提示音 + 录音与输入设置开关
...
按下录音热键进入 recording 状态时,capsule 窗口用 Web Audio API 即时合成
一段上升双音提示音,提醒「已开始录音」;离开 recording 即停。提示音独立于
showCapsule —— 胶囊隐藏时仍会响。
- 新增 audioCueOnRecord 偏好(默认开启),可在「录音与输入」设置里开关,
并提供「试听」按钮即时听效果。
- 后端 UserPreferences / UserPreferencesWire 持久化该字段并默认 true,
老配置缺字段按开启;补两条单测(缺字段默认开启 + 显式 false 往返保真)。
- 提示音合成抽成 lib/audioCue.ts:playRecordStartCue / stopAudioCue 两个
操作 + 纯函数音符规划(recordStartCueTones / cueTotalDurationMs),附
.test.ts。suspended 的 AudioContext 先 resume 再排期,无 Web Audio 时静默降级。
- i18n 五语(en / zh-CN / zh-TW / ja / ko)补齐 label / desc / preview。
2026-05-31 09:39:29 +08:00
Andy Allan
972405927a
fix(ci): emit release body prelude only from leader matrix job
2026-05-31 00:36:17 +08:00