Skip to content

Fix den-web API proxy base resolution#1815

Open
devcool20 wants to merge 1 commit into
different-ai:devfrom
devcool20:fix-den-web-proxy-api-base
Open

Fix den-web API proxy base resolution#1815
devcool20 wants to merge 1 commit into
different-ai:devfrom
devcool20:fix-den-web-proxy-api-base

Conversation

@devcool20
Copy link
Copy Markdown
Contributor

Summary

  • Derive Den API requests through den-web's /api/den proxy when only a web/control-plane URL is configured.
  • Repair stale settings where apiBaseUrl was stored equal to baseUrl.
  • Preserve explicit separate Den API hosts such as https://den-api-example.run.app.

Issue

Closes #1808

Testing

  • git diff --check - passed
  • Resolver validation with bun -e - passed
  • Manual Electron validation - passed

pnpm typecheck is currently blocked by an unrelated upstream dev error:

src/react-app/shell/command-palette.tsx(31,15): error TS2304: Cannot find name 'MutableRefObject'.
<img width="1251" height="180" alt="image" src="https://github.com/user-attachments/assets/b8960eaf-bb81-48b2-b491-6c2c4a739b84" />

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 15, 2026

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

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 May 15, 2026 7:53pm

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 15, 2026

@devcool20 is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

@devcool20
Copy link
Copy Markdown
Contributor Author

I verified the typecheck failure locally and it appears unrelated to this PR. The error is in src/react-app/shell/command-palette.tsx, while this PR only changes apps/app/src/app/lib/den.ts.

Focused validation for this change passes: git diff --check, resolver validation, and manual Electron validation for /api/den URL resolution.

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.

Desktop app calls /v1/me directly on den-web on relaunch — missing /api/den proxy prefix

1 participant