Skip to content

Simplify cloud environment dropdown when only one environment exists#2304

Merged
joshsny merged 1 commit into
mainfrom
joshsny/simplify-cloud-env-dropdown-2004
May 25, 2026
Merged

Simplify cloud environment dropdown when only one environment exists#2304
joshsny merged 1 commit into
mainfrom
joshsny/simplify-cloud-env-dropdown-2004

Conversation

@joshsny
Copy link
Copy Markdown
Contributor

@joshsny joshsny commented May 22, 2026

Problem

When a user has only one cloud environment (the built-in Default), the workspace mode dropdown shows a "Cloud environments" section header with a single "Default" item underneath. This is confusing — "Cloud environment: default" doesn't clearly communicate what it means.

Changes

Modified WorkspaceModeSelect to detect when there are no custom sandbox environments and render a simple "Cloud" option inline with the other workspace modes (Worktree, Local) instead of the full "Cloud environments" section.

  • 0 custom environments: Shows a single "Cloud" item with description "Run in a cloud sandbox", no separator or section header
  • 1+ custom environments: Preserves the existing behavior with the "Cloud environments" section, "Default" entry, and all custom environments listed

How did you test this?

Verified the component typechecks and that the lint-staged pre-commit hooks pass. No existing tests for this component.

Publish to changelog?

no

Slack Thread

Open in Web Open in Cursor 

When the user has no custom sandbox environments, show a single 'Cloud'
option inline with the other workspace modes instead of a separate
'Cloud environments' section with just the 'Default' entry. The full
section with separator, header, and per-environment list is preserved
when the user has created custom sandbox environments.
Copy link
Copy Markdown
Contributor

@k11kirky k11kirky left a comment

Choose a reason for hiding this comment

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

lgtm

@joshsny joshsny marked this pull request as ready for review May 25, 2026 10:20
@joshsny joshsny merged commit ec953ab into main May 25, 2026
15 checks passed
@joshsny joshsny deleted the joshsny/simplify-cloud-env-dropdown-2004 branch May 25, 2026 10:20
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 25, 2026

Reviews (1): Last reviewed commit: "Simplify cloud environment dropdown when..." | Re-trigger Greptile

Basit-Balogun10 pushed a commit to Basit-Balogun10/posthog-code that referenced this pull request May 27, 2026
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.

3 participants