[PR #7836] fix(tui): extract url from instructions when copying oauth credentials #12525

Closed
opened 2026-02-16 18:17:25 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7836

State: closed
Merged: No


What does this PR do?

Since the option to login with ChatGPT Plus/pro credentials was included, this fixes the "c copy" keybind in oauth auto-method dialogs to also extract URLs from the instructions text when no device code is present. The copy priority is now: device code token → URL in instructions → authorization URL.

How did you verify your code works?

Tested oauth flow with providers that include URLs in their instructions text rather than device codes.

Fixes: #7838

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7836 **State:** closed **Merged:** No --- ### What does this PR do? Since the option to login with ChatGPT Plus/pro credentials was included, this fixes the "c copy" keybind in oauth auto-method dialogs to also extract URLs from the instructions text when no device code is present. The copy priority is now: device code token → URL in instructions → authorization URL. ### How did you verify your code works? Tested oauth flow with providers that include URLs in their instructions text rather than device codes. Fixes: #7838
yindo added the pull-request label 2026-02-16 18:17:25 -05:00
yindo closed this issue 2026-02-16 18:17:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12525