-
Notifications
You must be signed in to change notification settings - Fork 887
fix(cli): display pasted session token #9710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the existing unit tests to expect the session token.
Seems like this doesn't fix it on Windows :( |
if runtime.GOOS != "windows" { | ||
// For some reason, the match does not show up on Windows. | ||
pty.ExpectMatch(client.SessionToken()) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manually validated that this works on Windows, just appears to be a weird feature of ptytest. Disabling the session token echo check on Windows for now.
this PR addresses the
coder login
flow, and displays the session token when pasted into the terminal (this was the behavior in Coder v1). this change is due to feedback from one of our largest customers:customer issue: https://github.com/coder/customers/issues/287