Skip to content

fix(tui): extract url from instructions when copying oauth credentials#7836

Closed
akinfelami wants to merge 1 commit intoanomalyco:devfrom
akinfelami:fix/copy-code
Closed

fix(tui): extract url from instructions when copying oauth credentials#7836
akinfelami wants to merge 1 commit intoanomalyco:devfrom
akinfelami:fix/copy-code

Conversation

@akinfelami
Copy link
Copy Markdown
Contributor

@akinfelami akinfelami commented Jan 11, 2026

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

@github-actions
Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@rekram1-node
Copy link
Copy Markdown
Collaborator

@akinfelami believe we just merged a PR that fixed it, hasn't been released yet:
#7812

@akinfelami
Copy link
Copy Markdown
Contributor Author

Ah totally missed that. Thanks, will close this.

@akinfelami akinfelami closed this Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"c copy" in oauth dialog doesn't copy URL when no device code present

2 participants