Skip to content

Fix login overlay and password echo - #43

Merged
areshand merged 2 commits into
areshand:mainfrom
yzaccc:fix/login-overlay-and-password-echo
Aug 26, 2026
Merged

Fix login overlay and password echo#43
areshand merged 2 commits into
areshand:mainfrom
yzaccc:fix/login-overlay-and-password-echo

Conversation

@yzaccc

@yzaccc yzaccc commented Aug 26, 2026

Copy link
Copy Markdown

Summary

  • .login-shell sets display:grid, which outranks the user-agent [hidden] rule. showConsole() set login.hidden = true but the overlay stayed on screen, so a correct password looked like it did nothing. An explicit [hidden] { display:none !important; } makes the attribute authoritative.
  • bin/hash-password.mjs echoed the password, leaving plaintext in scrollback and shell history. It now reads raw keystrokes and requires a TTY, so there is no silent fallback to an echoing prompt.

Test plan

  • cd control-server && npm test — 8/8
  • Logged in locally; the console now replaces the login screen
  • Hashes from the patched script still verify against verifyPassword
  • Non-TTY stdin exits non-zero instead of prompting

Zac Yang and others added 2 commits August 26, 2026 03:17
.login-shell sets display:grid, which outranks the user-agent [hidden]
rule, so the login overlay stayed on screen after a successful login.

Co-authored-by: Cursor <cursoragent@cursor.com>
readline.question leaves the plaintext in scrollback and shell history.
Read raw keystrokes instead and require a TTY.

Co-authored-by: Cursor <cursoragent@cursor.com>
@yzaccc yzaccc changed the title Fix login overlay persisting after authentication and password echo in hash-password Fix login overlay and password echo Aug 26, 2026
@yzaccc
yzaccc force-pushed the fix/login-overlay-and-password-echo branch from 4d35576 to e307539 Compare August 26, 2026 07:17
@areshand
areshand merged commit 1e6ff38 into areshand:main Aug 26, 2026
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