Shared login: press Enter separately from the pasted code #64

Merged
jknapp merged 1 commits from fix/shared-login-submit-enter into main 2026-09-27 13:29:30 +00:00
1 Commits
Author SHA1 Message Date
shadowdaoandClaude Opus 5.5 08779fa397 Shared login: press Enter separately from the pasted code
Secret Scan / scan (push) Successful in 4s
Build App (Preview) / compute-version (pull_request) Successful in 3s
Secret Scan / scan (pull_request) Successful in 4s
Build App (Preview) / create-release (pull_request) Successful in 2s
Build App (Preview) / build-macos (pull_request) Successful in 2m54s
Build App (Preview) / test (pull_request) Successful in 4m36s
Build App (Preview) / build-windows (pull_request) Successful in 5m50s
Build App (Preview) / build-linux (pull_request) Successful in 7m19s
Build App (Preview) / prune-previews (pull_request) Successful in 2s
The code and its Enter were sent to `claude setup-token` in one write.
Claude Code's prompt reads a multi-byte chunk as a paste and swallows a
`\r` inside it, so the code filled the prompt but was never submitted and
the flow sat at "Waiting for setup-token to finish" until the 15-minute
timeout.

Measured against 2.1.283 under a pty: joined write never submits; the
same code with Enter 20 ms later submits every time. Now the code is
written, then Enter follows 250 ms later as its own write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 06:15:16 -07:00