Commit bf25c16
authored
feat(cli): easier agentic login (#15050)
Support better login experience from cursor / claude
<!-- VADE_RISK_START -->
> [!NOTE]
> Low Risk Change
>
> This PR modifies CLI login UX to auto-open browser for authentication
instead of waiting for user input, which is a flow change but does not
alter authentication security - the same device authorization flow is
used.
>
> - Removes manual [ENTER] prompt, auto-opens browser for device auth
flow
> - Adds Cursor agent detection to control browser-opening behavior in
CI
> - Graceful fallback with instructions when browser fails to open
>
> <sup>Risk assessment for [commit
265367b](https://github.com/vercel/vercel/commit/265367b4bc1c8ac0a658080a147da04e192d13fb).</sup>
<!-- VADE_RISK_END -->1 parent 53d78ca commit bf25c16
2 files changed
Lines changed: 43 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
51 | 87 | | |
52 | 88 | | |
53 | 89 | | |
| |||
59 | 95 | | |
60 | 96 | | |
61 | 97 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 98 | | |
83 | 99 | | |
84 | 100 | | |
| |||
171 | 187 | | |
172 | 188 | | |
173 | 189 | | |
174 | | - | |
175 | | - | |
176 | | - | |
| 190 | + | |
177 | 191 | | |
178 | 192 | | |
179 | 193 | | |
| |||
0 commit comments