GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(app): identify desktop in Console device auth (v1) (#47000) · krumpstead/opencode@f12e14c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/app/src/components
    • dialog-connect-provider.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/app/src/components/dialog-connect-provider.tsx‎

Copy file name to clipboardExpand all lines: packages/app/src/components/dialog-connect-provider.tsx
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import { ExternalLink } from "@/components/external-link"
3333
import { useServerSDK } from "@/context/server-sdk"
3434
import { useServerSync } from "@/context/server-sync"
3535
import { useLanguage } from "@/context/language"
36+
import { usePlatform } from "@/context/platform"
3637
import { useSettings } from "@/context/settings"
3738
import { popularProviders, useProviders } from "@/hooks/use-providers"
3839
import { CustomProviderForm } from "./dialog-custom-provider"
@@ -386,6 +387,7 @@ function ProviderConnection(props: {
386387
const serverSDK = useServerSDK()
387388
const params = useParams()
388389
const language = useLanguage()
390+
const platform = usePlatform()
389391
const settings = useSettings()
390392
const newLayout = settings.general.newLayoutDesigns
391393
const providers = useProviders(() => props.directory?.())
@@ -560,6 +562,11 @@ function ProviderConnection(props: {
560562
})
561563
.then((x) => {
562564
if (!alive.value) return
565+
if (props.provider === "opencode" && platform.platform === "desktop") {
566+
const url = new URL(x.data.url)
567+
url.searchParams.set("client_id", "opencode-desktop")
568+
x.data.url = url.href
569+
}
563570
dispatch({ type: "auth.complete", authorization: x.data })
564571
})
565572
.catch((e) => {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.