Commit ee4edc1
Show sign-in dialog when delegating to session targets while unauthenticated
When a user tries to delegate to Copilot CLI, Cloud, or other session
targets while not signed in, trigger the sign-in/setup dialog instead of
letting the request fail with a non-actionable error.
The sign-in check is added to three entry points:
- SubmitAction.handleDelegation() for the session target picker
- CreateRemoteAgentJobAction.run() for the "Continue in..." dropdown
- CreateRemoteAgentJobFromEditorAction.run() for the editor context menu
This matches the existing Local session behavior where the setup dialog
is shown when the user's entitlement is Unknown and anonymous access is
not enabled.
Fixes #296117
Agent-Logs-Url: https://github.com/microsoft/vscode/sessions/12f524df-1f4f-414c-b3bc-5ce531b1b112
Co-authored-by: cwebster-99 <60238438+cwebster-99@users.noreply.github.com>1 parent 7db09d1 commit ee4edc1
2 files changed
Lines changed: 31 additions & 1 deletion
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
394 | 404 | | |
395 | 405 | | |
396 | 406 | | |
| |||
532 | 542 | | |
533 | 543 | | |
534 | 544 | | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
535 | 554 | | |
536 | 555 | | |
537 | 556 | | |
| |||
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
164 | 175 | | |
165 | 176 | | |
166 | 177 | | |
| |||
0 commit comments