Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

fix(macos): 修复豆包 ASR 与 Fn 映射快捷键,准备 1.8.3 (#95)

Leyang8f1589d4ea25
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b136d29..fcf5d1f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog
+## 1.8.3
+
+- macOS: start Doubao audio streaming when the WebSocket opens instead of waiting for a heartbeat reply.
+- macOS: require and request both Accessibility and Input Monitoring before reporting global shortcuts ready.
+- macOS: receive remapped Fn at the HID event layer and accept standalone Fn while a remapper’s trigger modifier is held.
+
## 1.8.2
- Follow the system language by default on macOS while preserving explicit choices.
diff --git a/README.md b/README.md
index 9a17969..71f49bb 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ The interface follows the system language by default, preserving existing explic
Requires macOS 13 or later. Download the DMG for your processor: [Apple Silicon (Feishu)](https://www.feishu.cn/file/SsxxbrRnzok2nwxu4BwcdarpnHh) or [Intel (Feishu)](https://www.feishu.cn/file/TG7nbOAJToQ16Mx62cqcFLl0nZd). Backup packages are on [GitHub Releases](https://github.com/quanru/doubao-say/releases); do not choose a Linux archive for Mac.
-Drag Doubao Say to Applications and open it. Allow microphone and Accessibility access, choose Doubao sign-in or your own Volcengine / Deepgram API key, and complete the local microphone and speech checks. The default shortcut is `Control+Option+Space`; it can be changed in Settings.
+Drag Doubao Say to Applications and open it. Allow microphone, Accessibility and Input Monitoring access, choose Doubao sign-in or your own Volcengine / Deepgram API key, and complete the local microphone and speech checks. The default shortcut is `Control+Option+Space`; it can be changed in Settings.
Settings save automatically. Closing Settings keeps the app in the menu bar. Use Updates to check, download, verify, and install a compatible signed and notarized update. The [Mac guide](macos/README.zh-CN.md) covers input methods, optional AI polishing, permissions, and recovery.
diff --git a/README.zh-CN.md b/README.zh-CN.md
index c495821..2406dc8 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -24,7 +24,7 @@ System 读取桌面会话的语言偏好,中文区域使用简体中文,其
要求 macOS 13 或更新版本。下载适合芯片的 DMG:[Apple Silicon(飞书)](https://www.feishu.cn/file/SsxxbrRnzok2nwxu4BwcdarpnHh)/[Intel(飞书)](https://www.feishu.cn/file/TG7nbOAJToQ16Mx62cqcFLl0nZd);备用安装包见 [GitHub Releases](https://github.com/quanru/doubao-say/releases),不要选择 Linux 压缩包。
-把应用拖到「应用程序」后打开,允许麦克风及辅助功能权限,选择豆包登录或自己的火山引擎/Deepgram API Key,完成本机麦克风检查和语音测试。默认快捷键为 `Control+Option+空格`,可在设置中更改。
+把应用拖到「应用程序」后打开,允许麦克风、辅助功能及输入监控权限,选择豆包登录或自己的火山引擎/Deepgram API Key,完成本机麦克风检查和语音测试。默认快捷键为 `Control+Option+空格`,可在设置中更改。
设置自动保存,关闭设置窗后保留菜单栏运行。在「软件更新」检查、下载并安装适配当前架构的更新;安装前验证哈希、开发者签名、公证与应用身份。输入方式、可选 AI 润色、权限和恢复流程见 [Mac 使用说明](macos/README.zh-CN.md)。
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index c847fe8..ab38ac3 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,21 +1,15 @@
-# Doubao Say 1.8.2
+# Doubao Say 1.8.3
-## macOS dictation
+## macOS dictation fixes
-- Follow the system language by default. Existing explicit language choices remain in effect.
-- Paste into web editors, including Electron applications such as Vibelet, in automatic input mode. This fixes text disappearing when an accessibility write reports success without changing the field. Supported native fields can still use direct input.
-- Press Escape to cancel recording, transcription, polishing or pending input and close the overlay. Start a new recording immediately; late results from the cancelled session cannot enter text. Text already entered is not undone.
-- Resolve the input destination at the current cursor after shortcut release, with clipboard fallback for custom editors.
-- Keep recognition-service errors visible with actionable feedback, including capacity and rate-limit errors.
+- Start sending Doubao audio as soon as the WebSocket opens, avoiding recognition timeouts while waiting for a heartbeat reply.
+- Request both Accessibility and Input Monitoring for global shortcuts. Missing permissions no longer appear as a ready shortcut. If upgrading with an unresponsive shortcut, enable Doubao Say in System Settings → Privacy & Security → Input Monitoring and restart the app.
+- Receive Fn/Globe at the HID event layer so keyboard remappers such as Pawgic can trigger dictation. Standalone Fn also works while the remapper’s physical trigger modifier is still held. Existing shortcut mappings are preserved.
-## Polishing
+## Verification and downloads
-Improve contextual action-word corrections and reduce unnecessary Qwen thinking latency.
+Regression checks cover WebSocket audio delivery without heartbeat replies, handshake error classification, remapped Fn with a held Control key, and keyboard cancellation/interception. Live Doubao recognition and the Ctrl+semicolon → Pawgic → Fn trigger were verified on an Apple Silicon Mac after granting Input Monitoring. Intel hardware behavior was not separately tested.
-## Downloads and verification
+Developer ID signed, Apple-notarized DMGs are provided for Apple Silicon and Intel. Linux application and plugin archives support Python 3.11–3.14; this release changes no Linux recognition behavior. SHA256SUMS and update.json cover the release packages.
-Developer ID signed, Apple-notarized DMGs are provided for Apple Silicon and Intel. Linux application and plugin archives support Python 3.11–3.14. SHA256SUMS and update.json cover the release packages.
-
-Regression coverage includes language defaults, native/web input routing, Escape key repeats and releases, cancellation in five active phases, immediate restart, and stale-callback isolation. The web-editor fix was reproduced and checked in Vibelet on Apple Silicon. Automated checks do not establish microphone/ASR quality, compatibility with every editor, or Intel hardware acceptance.
-
-[Full changes](https://github.com/quanru/doubao-say/compare/v1.8.1...v1.8.2)
+[Full changes](https://github.com/quanru/doubao-say/compare/v1.8.2...v1.8.3)
diff --git a/debian/changelog b/debian/changelog
index a0f20ed..3df0b9e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+doubao-say (1.8.3-1) noble; urgency=medium
+
+ * Fix macOS Doubao streaming startup and remapped Fn shortcuts.
+ * Require Input Monitoring alongside Accessibility for global shortcuts.
+
+ -- quanru <[email protected]> Sat, 07 Nov 2026 23:00:00 +0800
+
doubao-say (1.8.2-1) noble; urgency=medium
* Improve macOS language defaults, web-editor delivery and Escape cancellation.
diff --git a/macos/README.zh-CN.md b/macos/README.zh-CN.md
index 2d3c393..3724677 100644
--- a/macos/README.zh-CN.md
+++ b/macos/README.zh-CN.md
@@ -22,7 +22,7 @@ open 'build/macos/arm64/Doubao Say.app'
## 首次使用与设置
1. 打开应用会显示“设置”和 Dock 图标;已运行时再次打开也会恢复设置窗。关闭设置窗后仍可使用菜单栏和全局快捷键。在“识别服务”中选择豆包账号、火山引擎官方 API 或 Deepgram Nova-3(英语)。豆包使用登录窗口;官方服务填写自己的 API Key,可先测试连接。火山资源 `volc.seedasr.sauc.duration` 已内置,不需要 App ID。Deepgram 使用美式英语、标点和智能格式化。
-2. “使用准备”顶部四个步骤均可点击切换;检查或录音进行时暂时禁用切换,完成设置仍需通过全部检查。设置会自动保存,无需点击保存按钮。允许麦克风访问,并从“启用全局快捷键”授予辅助功能权限。系统要求本人输入密码时在系统弹窗完成,不向应用填写系统密码。
+2. “使用准备”顶部四个步骤均可点击切换;检查或录音进行时暂时禁用切换,完成设置仍需通过全部检查。设置会自动保存,无需点击保存按钮。允许麦克风访问,并从“启用全局快捷键”授予辅助功能和输入监控权限;系统提示时退出并重新打开豆包说。系统要求本人输入密码时在系统弹窗完成,不向应用填写系统密码。
3. 在“使用准备”中选择麦克风,先进行三秒本地检查,再进行五秒语音测试。语音测试会向已保存的识别服务发送音频,结果只显示在软件内,不粘贴,也不发送回车。全部检查完成后点击“完成设置”,后续打开应用仍显示设置窗。关闭最后一个设置或登录窗口后,应用保留菜单栏运行,并从 Dock 和 Cmd+Tab 隐藏;通过菜单栏或重新打开应用显示窗口时恢复。最小化窗口仍保留 Dock 入口。
4. 在目标应用的普通文本输入框中放好光标。默认 `Control+Option+空格`,可在“快捷键”中录制其他组合或单独修饰键;选键不使用麦克风。
5. 短按切换录音;按住达到默认 350 毫秒后说话,松开结束。开始录音时可用默认 300 毫秒的双击识别阈值,可调整两项阈值或关闭双击。语音输入期间,其他按键(包括回车、修饰键和快捷键组合)统一结束录音并上屏,不执行原有按键操作,也不额外发送回车。整个组合及其松开事件会被拦截,完成输入后恢复正常键盘操作。VibeKey 的按钮和旋钮也使用同一规则。`Esc` 在录音、转写、润色和等待输入期间立即取消,随后可重新录音;被取消的识别结果不会上屏。非语音输入状态下,`Esc` 可关闭保留文字的浮窗,空闲时双击仍可发送回车。单次录音最多 60 秒。
diff --git a/macos/Sources/DoubaoASRClient.swift b/macos/Sources/DoubaoASRClient.swift
index 9569490..4dd401d 100644
--- a/macos/Sources/DoubaoASRClient.swift
+++ b/macos/Sources/DoubaoASRClient.swift
@@ -32,10 +32,14 @@ struct DoubaoASRParams: Codable {
}
/// All transport state and frame ordering belong to one serial queue.
-final class DoubaoASRClient {
+final class DoubaoASRClient: NSObject, URLSessionWebSocketDelegate, @unchecked Sendable {
private let endpoint: String
- init(endpoint: String = "wss://ws-samantha.doubao.com/samantha/audio/asr") { self.endpoint = endpoint }
+ init(endpoint: String = "wss://ws-samantha.doubao.com/samantha/audio/asr") {
+ self.endpoint = endpoint
+ super.init()
+ }
private let queue = DispatchQueue(label: "md.lifeos.doubao-say.asr")
+ private var session: URLSession?
private var socket: URLSessionWebSocketTask?
private var connected = false
private var closed = false
@@ -79,19 +83,29 @@ final class DoubaoASRClient {
request.timeoutInterval = 8
queue.async {
guard !self.closed, self.socket == nil else { return }
- let task = URLSession.shared.webSocketTask(with: request)
+ let config = URLSessionConfiguration.ephemeral
+ config.urlCache = nil; config.httpCookieStorage = nil
+ let session = URLSession(configuration: config, delegate: self, delegateQueue: nil)
+ self.session = session
+ let task = session.webSocketTask(with: request)
self.socket = task
task.resume()
self.receive(task)
- task.sendPing { error in
- self.queue.async {
- guard !self.closed else { return }
- guard error == nil else { self.fail(); return }
- self.connected = true
- self.pump()
- self.onOpen?()
- }
- }
+ }
+ }
+ func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask,
+ didOpenWithProtocol protocol: String?) {
+ queue.async {
+ guard !self.closed, self.socket === webSocketTask, !self.connected else { return }
+ self.connected = true
+ self.pump()
+ self.onOpen?()
+ }
+ }
+ func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
+ queue.async {
+ guard !self.closed, self.socket === task else { return }
+ self.fail()
}
}
func sendAudio(_ data: Data) {
@@ -119,6 +133,7 @@ final class DoubaoASRClient {
closed = true; connected = false
pending.removeAll(); bufferedBytes = 0
socket?.cancel(with: .normalClosure, reason: nil); socket = nil
+ session?.invalidateAndCancel(); session = nil
}
private func fail() {
guard !closed else { return }
diff --git a/macos/Sources/HotkeyManager.swift b/macos/Sources/HotkeyManager.swift
index 9f33568..b0f064a 100644
--- a/macos/Sources/HotkeyManager.swift
+++ b/macos/Sources/HotkeyManager.swift
@@ -21,7 +21,7 @@ final class HotkeyManager {
private var capture: ((Shortcut?) -> Void)?
private var modifierCandidate: Shortcut?
private var captureExpiry: DispatchWorkItem?
- var available: Bool { eventTap != nil }
+ var available: Bool { eventTap != nil && AXIsProcessTrusted() && CGPreflightListenEventAccess() }
var label: String { shortcut.label }
static func flags(_ value: Int) -> CGEventFlags {
var flags = CGEventFlags()
@@ -53,10 +53,12 @@ final class HotkeyManager {
gesture.doubleEnter = settings.doubleEnter
}
func start() {
- guard eventTap == nil else { return }
+ guard eventTap == nil, AXIsProcessTrusted(), CGPreflightListenEventAccess() else { return }
// Type 14 carries AppKit system-defined media-key events.
let mask = (1 << CGEventType.keyDown.rawValue) | (1 << CGEventType.keyUp.rawValue) | (1 << CGEventType.flagsChanged.rawValue) | (1 << 14)
- guard let tap = CGEvent.tapCreate(tap: .cgSessionEventTap, place: .headInsertEventTap,
+ // Fn/Globe from virtual keyboards can be consumed by macOS before the
+ // session stream. Observe it at HID entry, where remappers emit it.
+ guard let tap = CGEvent.tapCreate(tap: .cghidEventTap, place: .headInsertEventTap,
options: .defaultTap, eventsOfInterest: CGEventMask(mask), callback: { _, type, event, info in
guard let info = info else { return Unmanaged.passUnretained(event) }
return Unmanaged<HotkeyManager>.fromOpaque(info).takeUnretainedValue().handle(type, event)
@@ -71,6 +73,7 @@ final class HotkeyManager {
}
func requestPermission() {
_ = AXIsProcessTrustedWithOptions([kAXTrustedCheckOptionPrompt.takeUnretainedValue() as String: true] as CFDictionary)
+ _ = CGRequestListenEventAccess()
start(); permissionTimer?.invalidate()
permissionTimer = Timer.scheduledTimer(withTimeInterval: 2, repeats: true) { [weak self] timer in
self?.start(); if self?.available == true { timer.invalidate() }
@@ -183,7 +186,10 @@ final class HotkeyManager {
let now = ProcessInfo.processInfo.systemUptime
let modifierShortcut = Self.modifierBit(shortcut.keyCode)
let down = modifierShortcut != 0 ? (type == .flagsChanged && code == shortcut.keyCode && mods & modifierShortcut != 0) : type == .keyDown
- if down && code == shortcut.keyCode && (mods & ~modifierShortcut) == shortcut.modifiers {
+ // A remapper can emit Fn while its physical trigger modifier (e.g. Ctrl)
+ // is still held. A standalone Fn shortcut must accept that transition.
+ let standaloneFn = shortcut.keyCode == 63 && shortcut.modifiers == 0
+ if down && code == shortcut.keyCode && (standaloneFn || (mods & ~modifierShortcut) == shortcut.modifiers) {
if modifierShortcut != 0 { withheldTriggerModifiers.insert(physicalCode) }
shortcutDown = true; emit(gesture.down(at: now)); return nil
}
diff --git a/macos/Sources/SettingsWindow.swift b/macos/Sources/SettingsWindow.swift
index 0aa606b..a0e19f1 100644
--- a/macos/Sources/SettingsWindow.swift
+++ b/macos/Sources/SettingsWindow.swift
@@ -192,7 +192,7 @@ struct SettingsView: View {
}.formStyle(.grouped).padding(8)
case 2:
Form {
- Text(L("Allow Accessibility access to use the shortcut in other applications.", "允许辅助功能权限后,即可在其他应用中使用快捷键。"))
+ Text(L("Allow Accessibility and Input Monitoring in System Settings → Privacy & Security to use global shortcuts. Restart the app if macOS asks.", "请在系统设置 → 隐私与安全中允许辅助功能和输入监控。系统提示时,退出并重新打开豆包说。"))
Button(L("Enable global shortcut", "启用全局快捷键")) { model.enableShortcut?() }
HStack { Text(model.draft.shortcut.label); Button(L("Choose shortcut", "选择快捷键")) { model.chooseShortcut() } }.disabled(model.setupBusy)
Label(model.shortcutAvailable ? L("Shortcut ready", "快捷键已就绪") : L("Shortcut permission required", "请启用快捷键权限"), systemImage: model.shortcutAvailable ? "checkmark.circle.fill" : "circle")
diff --git a/macos/Tests/Input/KeyInterceptionCheck.swift b/macos/Tests/Input/KeyInterceptionCheck.swift
index 639dabf..5b81ca6 100644
--- a/macos/Tests/Input/KeyInterceptionCheck.swift
+++ b/macos/Tests/Input/KeyInterceptionCheck.swift
@@ -36,6 +36,20 @@ import AppKit
precondition(trigger.handle(.flagsChanged, key(63, false)) == nil && triggerStops == 1,
"Releasing the original trigger after finishing must not perform its system action or restart recording")
precondition(trigger.handle(.keyUp, key(0, false)) == nil)
+ let remappedFn = HotkeyManager()
+ remappedFn.configure(triggerSettings)
+ var remappedPrimes = 0, remappedStarts = 0
+ remappedFn.onHotkeyEvent = {
+ if case .prime = $0 { remappedPrimes += 1 }
+ if case .start = $0 { remappedStarts += 1 }
+ }
+ precondition(remappedFn.handle(.flagsChanged, key(63, true, flags: [.maskControl, .maskSecondaryFn])) == nil,
+ "Fn emitted by Ctrl+semicolon mapping must start even while physical Ctrl is held")
+ precondition(remappedFn.handle(.flagsChanged, key(63, false, flags: .maskControl)) == nil)
+ precondition(remappedPrimes == 1 && remappedStarts == 1,
+ "Remapped Fn tap must produce exactly one recording start")
+ precondition(remappedFn.handle(.flagsChanged, key(59, false)) != nil && remappedStarts == 1,
+ "Releasing the mapping's Ctrl must not trigger another recording")
let manager = HotkeyManager()
var stops = 0
manager.onHotkeyEvent = { if case .stop = $0 { stops += 1 } else { preconditionFailure("Unexpected gesture") } }
diff --git a/macos/Tests/Input/RetryCheck.swift b/macos/Tests/Input/RetryCheck.swift
index f4c3446..8a869e8 100644
--- a/macos/Tests/Input/RetryCheck.swift
+++ b/macos/Tests/Input/RetryCheck.swift
@@ -97,12 +97,18 @@ final class PersonalDataStore {
RunLoop.current.add(wake, forMode: .default)
defer { wake.invalidate() }
func wait() { RunLoop.current.run(until: Date().addingTimeInterval(3.2)) }
+ func waitForDelivery() {
+ let deadline = Date().addingTimeInterval(8)
+ while PasteHelper.events.isEmpty && Date() < deadline {
+ RunLoop.current.run(until: Date().addingTimeInterval(0.01))
+ }
+ }
let state = AppState(); state.lastTranscript = "synthetic"
let manager = TranscriptionManager(appState: state, overlayPanel: OverlayPanel(), hotkeyManager: HotkeyManager())
manager.retryLast(); manager.retryLast(); manager.finishWithEnter()
precondition(state.inputPending && !manager.canInstallUpdate)
precondition(PasteHelper.events.isEmpty, "No Enter during countdown")
- wait()
+ waitForDelivery()
precondition(PasteHelper.events == ["paste"], "Repeated clicks must deliver once")
precondition(state.inputPending, "Keep ownership until delivery completes")
manager.retryLast(); manager.finishWithEnter(); manager.startRecording()
@@ -116,8 +122,8 @@ final class PersonalDataStore {
precondition(!state.inputPending)
PasteHelper.events = []
manager.retryLast()
- wait()
- precondition(PasteHelper.events == ["paste"], "Cancelled countdown must not fire in a new retry")
+ waitForDelivery()
+ precondition(PasteHelper.events == ["paste"], "Cancelled countdown must not fire in a new retry: \(PasteHelper.events)")
let oldCompletion = PasteHelper.pending
manager.cancel(); manager.retryLast()
oldCompletion?(false)
diff --git a/macos/Tests/Transport/check.py b/macos/Tests/Transport/check.py
index a7267ca..4f356cf 100644
--- a/macos/Tests/Transport/check.py
+++ b/macos/Tests/Transport/check.py
@@ -59,7 +59,9 @@ def serve():
data = bytes(x ^ mask[i % 4] for i, x in enumerate(data))
opcode = first & 15
if opcode == 9:
- send(10, data)
+ # Opening a socket must not depend on a heartbeat reply.
+ # Delay/ignore pong to catch clients that withhold all audio.
+ continue
elif opcode == 2:
audio.append(data)
assert audio == [bytes([1, 2, 3, 4]), bytes(6400)], [len(x) for x in audio]
diff --git a/manifest.json b/manifest.json
index b45b78a..2ebeb27 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,7 +2,7 @@
"schemaVersion": 1,
"id": "md.lifeos.doubao-say",
"name": "Doubao Say",
- "version": "1.8.2",
+ "version": "1.8.3",
"author": "quanru and contributors",
"description": "Doubao Say turns speech into polished text with live captions and configurable tap or hold triggers on Wayland.",
"kinds": [
diff --git a/packaging/INSTALL.md b/packaging/INSTALL.md
index c2511aa..fad18f8 100644
--- a/packaging/INSTALL.md
+++ b/packaging/INSTALL.md
@@ -1,4 +1,4 @@
-# Doubao Say 1.8.2
+# Doubao Say 1.8.3
[Website](https://doubao-say.lifeos.md/) · [简体中文安装指南](https://doubao-say.lifeos.md/zh/guide/install)
diff --git a/packaging/runtime-requirements.txt b/packaging/runtime-requirements.txt
index bb67945..2200cfb 100644
--- a/packaging/runtime-requirements.txt
+++ b/packaging/runtime-requirements.txt
@@ -1,4 +1,4 @@
-# Complete Python dependency set for the 1.8.2 release.
+# Complete Python dependency set for the 1.8.3 release.
PyJWT[crypto]==2.15.1
cryptography==50.0.2
websockets==17.1
diff --git a/pyproject.toml b/pyproject.toml
index 21c3b83..ef778a5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "doubao-say"
-version = "1.8.2"
+version = "1.8.3"
description = "Global push-to-hold voice input for Linux/Wayland, backed by Doubao ASR"
readme = "README.md"
requires-python = ">=3.11"
diff --git a/src/doubao_input/product.py b/src/doubao_input/product.py
index f2f9616..6129d6a 100644
--- a/src/doubao_input/product.py
+++ b/src/doubao_input/product.py
@@ -1,6 +1,6 @@
"""Single runtime source for Doubao Say release identity."""
-VERSION = "1.8.2"
+VERSION = "1.8.3"
REPOSITORY_URL = "https://github.com/quanru/doubao-say"
LATEST_RELEASE_API = "https://api.github.com/repos/quanru/doubao-say/releases/latest"
LATEST_RELEASE_FEED = REPOSITORY_URL + "/releases/latest/download/update.json"
diff --git a/tests/contracts/test_release.py b/tests/contracts/test_release.py
index b158eb3..1eb295b 100644
--- a/tests/contracts/test_release.py
+++ b/tests/contracts/test_release.py
@@ -50,7 +50,7 @@ class ReleaseTest(unittest.TestCase):
notes = (ROOT / "RELEASE_NOTES.md").read_text()
self.assertIn("--notes-file RELEASE_NOTES.md", workflow)
self.assertNotIn("--generate-notes", workflow)
- for expected in ("Doubao Say 1.8.2", "Escape", "accessibility", "clipboard", "microphone"):
+ for expected in ("Doubao Say 1.8.3", "WebSocket", "Input Monitoring", "Fn", "SHA256SUMS"):
self.assertIn(expected, " ".join(notes.split()))
def test_both_archives_exclude_ignored_source_files(self):
diff --git a/tests/contracts/test_version_check.py b/tests/contracts/test_version_check.py
index 5f7adac..ebda9e3 100644
--- a/tests/contracts/test_version_check.py
+++ b/tests/contracts/test_version_check.py
@@ -11,13 +11,13 @@ SPEC.loader.exec_module(VERSION_CHECK)
class VersionCheckTests(unittest.TestCase):
def test_sources_are_aligned_at_current_release(self):
- self.assertEqual(VERSION_CHECK.validate(root=ROOT), "1.8.2")
+ self.assertEqual(VERSION_CHECK.validate(root=ROOT), "1.8.3")
def test_exact_release_tag_is_accepted(self):
- self.assertEqual(VERSION_CHECK.validate("v1.8.2", ROOT), "1.8.2")
+ self.assertEqual(VERSION_CHECK.validate("v1.8.3", ROOT), "1.8.3")
def test_wrong_release_tag_is_rejected(self):
- with self.assertRaisesRegex(ValueError, "must be 'v1.8.2'"):
+ with self.assertRaisesRegex(ValueError, "must be 'v1.8.3'"):
VERSION_CHECK.validate("v1.1.0", ROOT)
diff --git a/tests/unit/test_product.py b/tests/unit/test_product.py
index 1409359..6a839e7 100644
--- a/tests/unit/test_product.py
+++ b/tests/unit/test_product.py
@@ -51,7 +51,7 @@ class ProductTest(TestCase):
self.assertNotIn("private-device-identifier", data)
self.assertNotIn("cookies", data)
self.assertNotIn("transcript", data)
- self.assertEqual(json.loads(data)["product_version"], "1.8.2")
+ self.assertEqual(json.loads(data)["product_version"], "1.8.3")
self.assertEqual(json.loads(data)["recognition_provider"], "volcengine")
self.assertEqual(json.loads(data)["recent_stages"], [
{"stage": "first_result", "after_ms": 125}])