fix(bao-session): drop the TTY guard on login
The OIDC flow reads nothing from stdin — it starts a local callback listener, prints a URL, and waits for the browser. The guard was copied from scripts that prompt for secrets, where it belongs, and here it only blocked the non-interactive invocation the flow supports. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: opus Assistant-Process: 3377672@bnt-lap001 Assistant-Session: 15463ccf-238f-4e13-b163-93aa25c6d166
This commit is contained in:
parent
f90644e8c0
commit
680fe471c5
1 changed files with 3 additions and 3 deletions
|
|
@ -65,9 +65,9 @@ cmd_status() {
|
|||
}
|
||||
|
||||
cmd_login() {
|
||||
if [[ ! -t 0 ]]; then
|
||||
red "login needs an interactive terminal."; exit 2
|
||||
fi
|
||||
# No TTY guard: the OIDC flow reads nothing from stdin. It starts a local
|
||||
# callback listener, prints a URL, and waits for the browser to complete it,
|
||||
# so this works fine from a non-interactive invocation.
|
||||
echo "Opening OIDC login. Under WSL2 no browser will launch —"
|
||||
echo "copy the URL below into your Windows browser, then come back here."
|
||||
echo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue