Skip to content

fix(mic): dictation 缺麦克风权限时不再抢前台焦点#177

Merged
appergb merged 1 commit into
mainfrom
fix/issue-166-mic-permission-no-activate
May 2, 2026
Merged

fix(mic): dictation 缺麦克风权限时不再抢前台焦点#177
appergb merged 1 commit into
mainfrom
fix/issue-166-mic-permission-no-activate

Conversation

@appergb
Copy link
Copy Markdown
Collaborator

@appergb appergb commented May 2, 2026

摘要

Closes #166

把 dictation 路径里的 mic 权限请求改成直接调用系统权限 API,不再先 show_main_window / activateIgnoringOtherApps 抢到前台。

改动

  • coordinator.rs::ensure_microphone_permission 不再走 request_microphone_from_foreground
  • 设置页里用户手动点按钮触发权限提示的显式路径保持不变
  • 缺权限时仍会走现有 capsule error 提示,不会静默吞掉

验证

  • cargo check --manifest-path src-tauri/Cargo.toml

@codex review

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @appergb, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@appergb appergb merged commit 652b6d7 into main May 2, 2026
2 checks passed
@appergb appergb deleted the fix/issue-166-mic-permission-no-activate branch May 2, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[mic][permissions] 主听写在缺麦克风权限时违反 "不抢前台焦点" 约定

1 participant