We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdbbcd8 commit c526e2dCopy full SHA for c526e2d
1 file changed
packages/opencode/src/cli/cmd/tui/component/dialog-provider.tsx
@@ -112,8 +112,7 @@ function AutoMethod(props: AutoMethodProps) {
112
113
useKeyboard((evt) => {
114
if (evt.name === "c" && !evt.ctrl && !evt.meta) {
115
- const code =
116
- props.authorization.instructions.match(/[A-Z0-9]{4}-[A-Z0-9]{4}/)?.[0] ?? props.authorization.instructions
+ const code = props.authorization.instructions.match(/[A-Z0-9]{4}-[A-Z0-9]{4}/)?.[0] ?? props.authorization.url
117
Clipboard.copy(code)
118
.then(() => toast.show({ message: "Copied to clipboard", variant: "info" }))
119
.catch(toast.error)
0 commit comments