Skip to content

OPE-269: Remote feature flags via Firebase Remote Config #543

Closed

Description

@ivanfenenko

Shipped features can be switched on or off remotely from Firebase Remote Config without a store release, and a developer can override any flag on device to test both states.

Shared behavior

  • One shared flag namespace (snake_case keys, boolean values) with the same bundled defaults on iOS and Android. Feature code reads typed product-level flags through a small FeatureFlags domain adapter and never imports Firebase.
  • Resolution order per flag: developer override on device, then the activated Remote Config value, then the bundled default.
  • Release builds fetch Remote Config on app launch and activate previously fetched values at the next launch, so a flag never flips mid-session. Offline, LAN-only, and VPN users keep the bundled defaults with no behavior change.
  • Debug builds stay Firebase-free (same seam as Crashlytics and Analytics, OPE-72). Flags come from bundled defaults plus developer overrides.
  • Remote Config fetches are plain value fetches and are not gated by the product analytics consent toggle. No audience or user-property targeting, since Analytics is consent-gated.
  • Developer tools in Settings gain a "Feature flags" screen listing each flag with its resolved value and source (default, remote, override) and an override toggle. Overrides are device-local and cleared by Clear All Data.
  • First flag: session_chat_chip_timeline (default on). When off, the Settings "Chip timeline" row is hidden and Session Chat renders the standard timeline regardless of the stored preference.

Remaining:

  • Add Firebase Remote Config dependency on both platforms (Release only, in the release-observability seam)
  • FeatureFlags adapter, flag registry, resolution policy, and developer overrides on iOS with unit tests
  • FeatureFlags adapter, flag registry, resolution policy, and developer overrides on Android with unit tests
  • Feature flags developer screen in Settings on both platforms; Clear All Data clears overrides
  • Gate the chip timeline behind session_chat_chip_timeline on both platforms
  • Review and merge PR opencode-mobile/opencode-mobile#330 (branch feature/ope-269-remote-feature-flags, worktree /Users/ivan/Projects/opencode-mobile-ope-269)
  • Create the session_chat_chip_timeline parameter in the Firebase console and verify a Release build picks up a flipped value
  • Check whether the App Store privacy label needs the Firebase installation ID added

Imported from Linear OPE-269. Linear status: Done. Priority: Medium. Created 2026-09-29. Completed 2026-09-29.
Related: OPE-72, OPE-270.

Activity

  1. self-assigned this
    on Oct 11, 2026
  2. added
    enhancement
    ios
    android
    shared
    priority: medium
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

androidenhancementiospriority: mediumshared

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions