← Back to Pull requests

Paste long text in 500-character parts with Escape to cancel #31

Open
unknown opened this pull request with 164 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 22, 2026 19:22 UTC
Author

Pasting long clipboard text with ⌘V timed out: the whole text went to the device in one request, and the device types everything before it answers, so the 30-second timeout ran out. Long pastes failed partway through.

The text now goes out in parts of at most 500 characters, one after another, and each part has its own timeout, so the whole text arrives. A split never breaks an emoji or a CRLF line break. While a longer paste runs, a small bar at the bottom of the window shows Pasting X of Y characters · Esc to cancel and has a Cancel button. Esc or Cancel stops the paste before the next part, and that Esc is not sent to the remote computer. If a part fails, the error now says how many characters were confirmed and that the failed part may have been partially typed. The README and the Settings hint describe the new behavior.

Proof: bun run check and bun run test (55/55) pass locally. A new GUI case in test/keyboard-app.cjs checks part boundaries, Escape, Cancel and focus. It runs on the macOS CI runner because the local Mac's screen was locked, so windows could not take focus. Reviewed with sol-loop: 3 rounds with GPT-6.2 Sol. Sol verdict: approved

Created with Claude Opus 5.5 in Claude Code; reviewed by GPT-6.2 Sol.

🤖 Generated with Claude Code

Diff: 164 lines (+123 / -41) across 2 files Reviewer: chatgpt-codex-connector[bot] Review duration: 5m
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.35) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 164 lines diff across 2 files
0.35
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.305
Real PR Conversation Timeline
1 comments
"Review active on #31"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 35% (MEDIUM) · Higher = larger blast radius
35%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 18.6% · Safe to merge
18.6%