Skip to content

fix: paste transcript into terminals and low-accessibility apps - #2

Merged
iqbalhasandev merged 1 commit into
mainfrom
fix/paste-into-terminals
Sep 6, 2026
Merged

fix: paste transcript into terminals and low-accessibility apps#2
iqbalhasandev merged 1 commit into
mainfrom
fix/paste-into-terminals

Conversation

@iqbalhasandev

Copy link
Copy Markdown
Member

The 1.0.3 clipboard-fallback check was too strict: it treated a focus as editable only for a matched AX role or a settable AXValue. Terminals (Terminal.app, iTerm2) and opaque apps (Warp, Ghostty) expose text through caret attributes or a non-standard focused view, so they fell through to the clipboard and the transcript was never typed at the cursor.

Fix

  • Bias detection toward pasting: paste unless there is clearly no text target — no focused element, or a recognized non-text control (button, checkbox, menu, slider, image, link…).
  • Accept editable roles, a settable value, or AXSelectedTextRange / AXInsertionPointLineNumber as positive text-target signals.
  • Log paste: focused role=… settable=… caret=… for field diagnosis.

Bump to 1.0.4. Build passes. AX behavior can only be verified on the signed, installed app — the log line confirms what each terminal reports.

The 1.0.3 clipboard-fallback check was too strict: it treated a focus as
editable only for a matched AX role or a settable AXValue. Terminals
(Terminal.app, iTerm2) and opaque apps (Warp, Ghostty) expose text
through caret attributes or a non-standard focused view, so they fell
through to the clipboard and the transcript was never typed at the cursor.

Bias the detection toward pasting: paste unless there is clearly no text
target — no focused element, or a recognized non-text control (button,
checkbox, menu, slider, image, link…). Accept editable roles, a settable
value, or the presence of AXSelectedTextRange / AXInsertionPointLineNumber
as positive text-target signals. Log the focused role, settable, and
caret flags so field behavior is diagnosable.

Bump to 1.0.4.
Copilot AI lite review requested due to automatic review settings September 6, 2026 02:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@iqbalhasandev
iqbalhasandev merged commit 9074b05 into main Sep 6, 2026
1 check passed
@iqbalhasandev
iqbalhasandev deleted the fix/paste-into-terminals branch September 6, 2026 02:58
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.

2 participants