Skip to content

chore(cleanup): finish the whitelabel, Redis and self-hosted provider leftovers - #10331

Merged
waleedlatif1 merged 2 commits into
stagingfrom
chore/cleanup-final-pass
Nov 23, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
chore/cleanup-final-pass

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

A final cleanup pass after #10246, #10271, #10272 and #10286. Three read-only audits swept staging for leftovers of whitelabel removal, Redis-required, and the enterprise-flag and self-hosted provider work; the verified findings are below. No product behavior changes.

Auth: SSO flag comes from the server

  • The login and signup forms are 'use client' and imported isSsoEnabled from env-flags, which breaks the browser deployment-flag rule. The value was correct (the browser resolves it from the deployment-shape projection), but check:client-boundary doesn't scan app/(auth), so nothing caught it.
  • The server pages now pass ssoEnabled as a prop, the same way they already pass emailPasswordEnabled / emailSignupEnabled.
  • SSOLoginButton drops its redundant self-check; all three render sites already gate on ssoEnabled. SocialLoginButtons.ssoEnabled is now required.

Providers

  • Eight dynamic-model providers (Ollama, vLLM, LiteLLM, Ollama Cloud, OpenRouter, Fireworks, Together, Baseten) each repeated the same unpriced-model map. They now share toUnpricedModels.
  • The vLLM and LiteLLM wrappers used a lazy require() of a module utils.ts already imports statically. They now use the static import, like Ollama.

Redis-required leftovers (tests)

  • Two organization-activity integration suites mocked getRedisClient as null and only bypassed the usage cache because the resulting TypeError was caught. The mock now throws an explicit error on the path the cache already handles.
  • Dropped dead optional chaining on the now non-null client in the executor and upload integration tests and in redis.test.ts.

Whitelabel leftovers

  • manifest.ts goes back to static rendering. force-dynamic was added only so brand env values weren't baked in at build time, and those inputs are gone.
  • Removed the unused --auth-primary-btn-hover-text CSS variable.
  • Fixed a prefetch comment that still mentioned host branding.
  • post.test.ts requests now use /api/mothership/chat, the only mounted path.

Docs and Helm

  • values.yaml and its schema list VLLM_BASE_URL, VLLM_API_KEY, LITELLM_BASE_URL and LITELLM_API_KEY next to OLLAMA_URL. Chart 1.15.3.
  • The README and the Agent/Router block docs now mention LiteLLM wherever they mention vLLM.

Type of Change

  • Chore / cleanup

Testing

  • apps/sim type-check passes.
  • These checks pass: check:client-boundary, check:comment-hygiene, check:test-patterns, check:test-types, check:unused-exports, check:utils.
  • Vitest: all provider tests (2223), redis.test.ts, post.test.ts.
  • Integration, against real Postgres and Redis: both organization-activity suites, the desktop executor suite and the project-file uploads suite (95 tests).
  • Helm: lint, unittest (141), and a render with ci/default-values.yaml plus VLLM_BASE_URL.
  • Docs content:verify-compatibility.
  • /simplify, four reviewers: the reuse finding (shared unpriced builder) and the simplification nits (required prop, unaliased import) are applied; efficiency and altitude found nothing.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Nov 23, 2026 11:05am UTC

Request Review

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 23 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

This cleanup moves the SSO flag to server-provided props and shares the code that builds discovered model entries.

  • Login and signup forms get their SSO setting from server pages.
  • Provider model lists share one builder for discovered entries.
  • Helm deployments can configure vLLM and LiteLLM endpoints.
  • Redis tests now treat the client as required.
  • Chat handler tests now use its mounted route.
  • The manifest renders statically without old branding leftovers.

Reviews (1) · Last reviewed commit: "chore(providers): share one unpriced-mod..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 merged commit 1d5919a into staging Nov 23, 2026
100 checks passed

This branch was successfully deployed

1 active deployment
Preview — 2ad74a74 Deployed Nov 23, 2026 by vercel[bot]
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