Skip to content

fix(den-api): use public handoff URL for forwarded zero host - #3009

Merged
benjaminshafii merged 1 commit into
devfrom
fix/desktop-handoff-forwarded-zero-host
Jul 22, 2026
Merged

fix(den-api): use public handoff URL for forwarded zero host#3009
benjaminshafii merged 1 commit into
devfrom
fix/desktop-handoff-forwarded-zero-host

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

Summary

  • Treat forwarded host 0.0.0.0:3005 as a local Den Web host and fall back to the configured public desktop Den URL.
  • Extend the desktop handoff public URL regression test to cover the Den Web proxy forwarded-host path observed during the v0.17.38 victory-lap validation.

Repro

During the v0.17.38 two-door validation against Daytona Den Web, after signing in at https://3005-0obq6xy5mmmznswx.daytonaproxy01.net/?mode=sign-in&desktopAuth=1&desktopScheme=openwork, the web proxy POST to /api/den/v1/auth/desktop-handoff returned:

{"openworkUrl":"openwork://den-auth?grant=...&denBaseUrl=https%3A%2F%2F0.0.0.0%3A3005%2Fapi%2Fden"}

That leaves the installed desktop app unable to complete the browser handoff without a workaround.

Validation

  • pnpm --filter @openwork-ee/den-db build && pnpm --filter @openwork-ee/den-api exec bun test test/desktop-handoff-public-url.test.ts — 1 pass.
  • pnpm --filter @openwork-ee/den-api build — passed.

@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-app Ready Ready Preview, Comment Jul 22, 2026 1:22pm
openwork-den Ready Ready Preview, Comment Jul 22, 2026 1:22pm
openwork-den-worker-proxy Ready Ready Preview, Comment Jul 22, 2026 1:22pm
openwork-landing Ready Ready Preview, Comment, Open in v0 Jul 22, 2026 1:22pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openwork-diagnostics Skipped Skipped Jul 22, 2026 1:22pm

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.

1 participant