Skip to content

fix(mobile): gate Android terminal echo on a finished pty echo - #38

Closed
macodev00 wants to merge 1 commit into
mainfrom
cursor/android-terminal-echo-authoritative-c0c3
Closed

macodev00 wants to merge 1 commit into
mainfrom
cursor/android-terminal-echo-authoritative-c0c3

Conversation

@macodev00

Copy link
Copy Markdown
Owner

What Changed

Android terminal local echo paints a typed key only after the pty has finished echoing the outstanding input and at least two characters on that line. A prefix of what was typed, including a single unrelated byte such as a, does not turn the gate on. Later keys on an echoed line still paint locally and are reconciled when pty bytes arrive. A control key that produces no output no longer holds the rest of the line once a later character is echoed.

Fixes pingdotgg#12756

Why

Echo-disabled prompts (read -s, API tokens) must not be drawn. Matching pty output against the start of pending input treated unrelated output as a verified echo, then painted the next secret key. Trust now requires a finished echo of the outstanding input, not a prefix.

UI Changes

Android terminal only. No new chrome. Echo-on typing paints after two confirmed characters; echo-off prompts stay blank.

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
Open in Web Open in Cursor 

A single matching byte, or a prefix of typed input, was enough to treat
the pty as echoing. Local echo now stays off until the pty finishes the
outstanding input and has echoed at least two characters on the line, so
an echo-disabled prompt cannot paint the next secret key.

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
@macodev00

Copy link
Copy Markdown
Owner Author

Superseded: upstream READY already opened and closed after Macroscope Not approved. Leaving fork PR closed.

@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)

1 participant