fix(webui): complete Copilot device sign-in in the browser
Reuse the device-flow adapter from #5498, expose its prompt in the existing OAuth dialog, and keep credential persistence scoped to uncancelled completion. Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
This commit is contained in:
1 parent
aca59431fe
commit
a44f28e656
24 files changed
+563
-39
No files matched your search
@@ -620,6 +620,15 @@ xAI may change that upstream contract independently of nanobot.
|
||||
|
||||
For GitHub Copilot:
|
||||
|
||||
You can also sign in from the WebUI's model settings. The sign-in dialog shows a
|
||||
device code: copy it, select **Open GitHub**, and enter the code on GitHub. Keep
|
||||
the dialog open; nanobot detects approval and refreshes the model catalog
|
||||
automatically. Closing the dialog cancels the pending sign-in without replacing
|
||||
your saved credentials. This works from a remote browser too; no browser needs
|
||||
to open on the gateway machine.
|
||||
|
||||
For terminal sign-in:
|
||||
|
||||
```bash
|
||||
nanobot provider login github-copilot --set-main
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user