Skip to content

fix(mobile): Android terminal keystrokes paint immediately - #32

Closed
macodev00 wants to merge 16 commits into
mainfrom
cursor/android-terminal-echo-disabled-gate-ca82
Closed

macodev00 wants to merge 16 commits into
mainfrom
cursor/android-terminal-echo-disabled-gate-ca82

Conversation

@macodev00

Copy link
Copy Markdown
Owner

What Changed

Android terminal keystrokes paint before the remote pty echoes them, but only after that pty has already echoed a printable key verbatim. Any other output, including read -s -p 'API token: ', clears the gate so the secret is never drawn. A control key and a pending-input cap hold painting until the pty catches up.

Fixes pingdotgg#12756

Why

Characters were drawn only after a full attach round trip, so every key on a phone felt late. Prompt-label checks still painted echo-off input that was not labeled as a password. The pty echo itself is the gate: unknown and echo-off stay on the remote path.

UI Changes

This changes when typed characters appear in the Android terminal. Layout is unchanged. This environment has no Android emulator and no device, so there is no before/after recording. The gate is covered by TerminalLocalEchoTest.

iOS still paints from the remote buffer.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Screenshots do not show the latency. A recording needs a device build of the native terminal module.

Open in Web Open in Cursor 

juliusmarminge and others added 16 commits September 23, 2026 15:01
…case screenshots (pingdotgg#13316)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
Co-authored-by: Exotic <118054752+extoci@users.noreply.github.com>
…otgg#11580)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
…3355)

Co-authored-by: Yordis Prieto <yordis.prieto@gmail.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Printable keys were drawn only after a remote round trip. Paint a key
only after the pty has echoed an earlier one verbatim, and clear that
gate on any other output so an echo-off prompt never shows the secret.

Co-authored-by: maco <macodev00@users.noreply.github.com>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Sep 24, 2026
@cursor

cursor Bot commented Sep 24, 2026

Copy link
Copy Markdown

@coderabbitai review

@macodev00

Copy link
Copy Markdown
Owner Author

Superseded by upstream READY pingdotgg#13362 (same head). Closing fork-only PR.

@macodev00 macodev00 closed this Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Android: terminal typing echo is abnormally slow (per-keystroke delay)

8 participants