Skip to content

feat(desktop): add Dev Cloud region - #94689

Merged
trunk-io[bot] merged 2 commits into
masterfrom
posthog/add-desktop-dev-cloud-region
Sep 4, 2026
Merged

feat(desktop): add Dev Cloud region#94689
trunk-io[bot] merged 2 commits into
masterfrom
posthog/add-desktop-dev-cloud-region

Conversation

@dmarticus

@dmarticus dmarticus commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Problem

Desktop developers cannot sign in to the shared Dev Cloud deployment without changing the local-only development region.

Why: Deployed OAuth integrations (such as Slack) need a hosted test path while existing Local development sessions keep using localhost.

Changes

  • Development builds show Dev Cloud above Local development. Production builds still show only US and EU.
  • The new region uses a dedicated OAuth client and routes API and agent traffic through the Dev Cloud hosts.
  • Region schemas, stored authentication, IPC, and agent RPC contracts accept dev-cloud. The existing dev value stays unchanged.

Dev Cloud listed before Local development

How did you test this code?

  • The development app showed both development choices and started Dev Cloud OAuth on the existing localhost callback port.
  • Relevant automated tests cover mappings, build visibility, serialization, stored-session restoration, and agent routing. Full Desktop lint and typecheck passed.
  • Authenticated project, MCP server, and agent checks remain untested because this VM has no Dev Cloud browser session.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Automatic notifications

  • Publish to changelog?

Docs update

Updated the local-development guide to explain Local development, Dev Cloud, and the separate analytics host setting.

🤖 Agent context

Autonomy: Human-driven (agent-assisted)

Codex used the Desktop development build, Storybook, and GitHub tooling. Invoked skills: posthog-desktop, writing-tests, writing-user-facing-copy, test-electron-app, and writing-pr-descriptions.

The final design adds a separate hosted region and keeps the existing local region compatible.


Created with PostHog Desktop

Generated-By: PostHog Desktop
Task-Id: 262709b3-c4c7-405c-a5f6-be8bb48e5993
@dmarticus dmarticus self-assigned this Sep 3, 2026
@trunk-io

trunk-io Bot commented Sep 3, 2026

Copy link
Copy Markdown

😎 Merged successfully - details.

@github-actions github-actions Bot added the feature/desktop Feature Tag: Desktop label Sep 3, 2026
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🤖 CI report

Trunk lane — non-backend lane

This PR is assigned to the non-backend lane. It does not run backend Python tests and may merge in parallel with PRs in other lanes.

@hosthog

hosthog Bot commented Sep 3, 2026

Copy link
Copy Markdown

HostHog preview — posthog-desktop-web

The previews for this PR have been torn down and no longer serve.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

React Doctor found 1 issue in 1 file · 1 warning.

1 warning

packages/ui/src/features/auth/RegionSelect.tsx

Reviewed by React Doctor for commit 173159b.

Generated-By: PostHog Desktop
Task-Id: 262709b3-c4c7-405c-a5f6-be8bb48e5993
@dmarticus
dmarticus marked this pull request as ready for review September 4, 2026 15:42
@pr-assigner-resolver-posthog
pr-assigner-resolver-posthog Bot requested a review from a team September 4, 2026 15:43
@greptile-apps

greptile-apps Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix(desktop): list Dev Cloud before loca..." | Re-trigger Greptile

@trunk-io
trunk-io Bot merged commit 9f9a0c2 into master Sep 4, 2026
312 checks passed
@trunk-io
trunk-io Bot deleted the posthog/add-desktop-dev-cloud-region branch September 4, 2026 18:29
@deployment-status-posthog

deployment-status-posthog Bot commented Sep 4, 2026

Copy link
Copy Markdown

Deploy status

Environment Status Deployed At Workflow
dev ✅ Deployed 2026-09-04 19:19 UTC Run
prod-us ✅ Deployed 2026-09-04 19:36 UTC Run
prod-eu ✅ Deployed 2026-09-04 19:30 UTC Run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature/desktop Feature Tag: Desktop

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants