Skip to content

feat(app): import OAuth-backed Den providers#1941

Open
pascalandr wants to merge 8 commits into
different-ai:devfrom
Pagecran:pr/desktop-import-oauth-den-providers
Open

feat(app): import OAuth-backed Den providers#1941
pascalandr wants to merge 8 commits into
different-ai:devfrom
Pagecran:pr/desktop-import-oauth-den-providers

Conversation

@pascalandr
Copy link
Copy Markdown
Contributor

@pascalandr pascalandr commented May 24, 2026

Dependency map

Pagecran/dev
`-- stack/provider-credential-contract-base          (A)
    |-- pr/den-managed-provider-sync                 (B)
    `-- stack/den-api-oauth-credential-handling      (C)
        |-- stack/oauth-device-flow-and-ui           (D)
        `-- stack/desktop-import-oauth-providers     (E)

Scope

  • Includes map parts: A + C + E.
  • Adds the LLM provider credential contract base for OAuth-backed OpenCode credentials.
  • Adds Den API handling for API-key versus OpenCode OAuth-backed provider credentials.
  • Adds desktop import support for OAuth-backed Den organization providers.
  • Imports OpenCode OAuth auth JSON through the Den import credential endpoint while preserving existing API-key import behavior.

Tests

  • pnpm --filter @openwork-ee/den-db build - PASS.
  • From ee/apps/den-api: pnpm exec tsc -p tsconfig.json --noEmit - PASS.
  • From ee/apps/den-api: pnpm exec bun test test/llm-provider-credentials.test.ts - PASS, 4 tests.
  • pnpm --filter @openwork/app typecheck - FAILS in unrelated existing/baseline file src/react-app/design-system/extension-mesh-avatar.tsx because @paper-design/shaders-react types cannot be resolved. This PR does not touch that file or dependency.

Linked issues

Add the LLM provider credential kind/opencode auth storage contract, migration, and passive credential redaction/flags needed by follow-up provider credential and worker sync PRs.
Add Den API create/update/read/import handling for API-key versus OpenCode OAuth provider credentials on top of the credential contract base.
Allow desktop cloud-provider import to consume OpenCode OAuth-backed organization providers from the Den credential import endpoint.
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 24, 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 28, 2026 9:39pm

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 24, 2026

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

A member of the Team first needs to authorize it.

Add Den API OpenAI OAuth device-flow routes/tests and Den Web provider UI for OAuth-backed provider credentials on top of the credential handling stack.
Route Den-backed remote workspaces through the managed-provider sync endpoint for background sync and manual Cloud Provider import. Add focused client coverage for successful and sanitized failure paths.
Apply the cloud managed model allowlist to session and compact model picker options, refresh provider-list queries after managed-provider sync, and add focused regression coverage for stale OpenAI catalog filtering.
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 issues found across 18 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread ee/apps/den-api/src/routes/org/llm-providers.ts Outdated
Comment thread apps/app/src/app/cloud/managed-provider-models.ts Outdated
Comment thread ee/apps/den-web/app/(den)/dashboard/_components/llm-provider-editor-screen.tsx Outdated
Comment thread apps/app/src/react-app/domains/connections/provider-auth/store.ts
Merge upstream/dev into pr/desktop-import-oauth-den-providers, sequence migrations, and address OAuth provider review feedback.
Add explicit duplicate-provider allowlist coverage and align the OAuth migration journal assertion with the actual migration tag.
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.

OpenAI models not available despite being connected Anthropic auth: disable OAuth or enable via custom provider

1 participant