Skip to content

Conversation

@geropl
Copy link
Member

@geropl geropl commented Feb 3, 2026

Summary

Improves the minimal mode detection logic by removing the ConfigCat feature flag dependency and using environment-based detection instead.

Changes

Detection Logic

  • gitpod.io: Always use minimal mode (synchronous, no network call needed)
  • Preview environments: Use isDedicatedInstallation with localStorage caching
  • Dedicated/self-hosted: Never use minimal mode

Technical Improvements

  • Remove async ConfigCat flag check that caused blank page while loading
  • Replace document.write() with innerHTML to avoid deprecation issues
  • Add localStorage caching for isDedicatedInstallation in preview environments (instant on subsequent loads)

Preview Environment Default

  • Change GITPOD_WITH_DEDICATED_EMU default from false to true
  • This means preview environments now default to isDedicatedInstallation=true (minimal mode OFF)
  • Set GITPOD_WITH_DEDICATED_EMU=false to test minimal mode in preview

Testing

The localStorage override still works for manual testing:

  • localStorage.setItem('minimal_gitpod_io_mode', 'true') - force minimal mode
  • localStorage.setItem('minimal_gitpod_io_mode', 'false') - force full app

Behavior Matrix

Environment Minimal Mode
gitpod.io Always ON
Preview (default) OFF (isDedicatedInstallation=true)
Preview (GITPOD_WITH_DEDICATED_EMU=false) ON
Dedicated/self-hosted Always OFF

…lation

- Remove ConfigCat feature flag dependency for minimal mode detection
- gitpod.io: always use minimal mode (synchronous, no network call)
- Preview environments: use isDedicatedInstallation with localStorage caching
- Dedicated/self-hosted: never use minimal mode
- Replace document.write() with innerHTML to avoid deprecation issues
- Change GITPOD_WITH_DEDICATED_EMU default to true in preview deployments

The localStorage override (minimal_gitpod_io_mode=true/false) still works for testing.

Co-authored-by: Ona <no-reply@ona.com>
@geropl geropl deployed to branch-build February 3, 2026 15:19 — with GitHub Actions Active
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.

2 participants