Repository navigation
fix(shell): retry clipboard reads briefly before failing (#38) - #191
Merged
Merged
Conversation
Hosted desktops can hold the clipboard for a few milliseconds; reads now retry five times with a short backoff on ERROR_ACCESS_DENIED, while writes keep the immediate failure the copy boundary contract asserts.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This was referenced Oct 29, 2026
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.
内容
托管机上剪贴板可能被短暂占用(Explorer/相邻进程),一次
OpenClipboard失败就当成"永久拒绝"会表现为粘贴不发生、场景等到超时(stage 35 形状)。改动:
read_unicode_clipboard→ 粘贴):遇到ERROR_ACCESS_DENIED时最多重试 5 次、退避 20/40/60/80 ms(总计 ≤200 ms),仍失败才抛错;OpenClipboard结果;OpenClipboard: <code>),现有失败路径断言不受影响。本地验证
影响与边界
Refs #38 #85