Files
WhiteMind 7ec58b0dc1 fix: strip stray characters from pasted API key on Windows
Cliffy's Secret.prompt injects tilde (~) characters at the start and
end of pasted text on Windows terminals (bracket paste mode side-effect).
This causes `auth login` to always fail with "Invalid API key" when the
key is pasted interactively.

Trim whitespace and strip non-key characters from both ends of the input.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-06 09:59:19 -08:00
..