Repository navigation
chore!: remove the deprecated remoteConfig option - #874
Merged
turnipdabeets merged 1 commit intoOct 27, 2026
Merged
Conversation
4 of 5 tasks
marandaneto
approved these changes
Oct 23, 2026
turnipdabeets
force-pushed
the
chore/v4-remove-remote-config
branch
from
October 23, 2026 15:47
87af3ed to
902ea65
Compare
turnipdabeets
force-pushed
the
chore/v4-remove-deprecated
branch
2 times, most recently
from
October 26, 2026 16:29
2f486a0 to
a41d9b9
Compare
turnipdabeets
force-pushed
the
chore/v4-remove-remote-config
branch
from
October 26, 2026 16:29
902ea65 to
63c682c
Compare
turnipdabeets
force-pushed
the
chore/v4-remove-deprecated
branch
from
October 26, 2026 18:47
a41d9b9 to
caf64bd
Compare
turnipdabeets
force-pushed
the
chore/v4-remove-remote-config
branch
2 times, most recently
from
October 27, 2026 15:48
aef5c67 to
775008e
Compare
Setup now always loads /config. With remoteConfig = false, setup used to skip /config, which left remote settings unloaded since /flags stopped returning config. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
turnipdabeets
force-pushed
the
chore/v4-remove-remote-config
branch
from
October 27, 2026 16:14
775008e to
033913e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Stacked on the 4.0 integration PR #871. Merges into
chore/v4-remove-deprecated, notmain.💡 Motivation and Context
Removes the deprecated
PostHogConfig.remoteConfigoption. Setup now always loads/config.The option was deprecated in #421 with the message "This option is a no-op", but it wasn't one. With
remoteConfig = false, setup skipped/configand only called/flags(or nothing, ifpreloadFeatureFlagswas also false). Since #421,/flagsno longer returns config, so that mode leaves replay, surveys, error tracking and the other remote settings unloaded.Behavior change: apps that set
remoteConfig = falsewill start sending a/configrequest at setup./flagsstill followshasFeatureFlagsandpreloadFeatureFlagsas before.Other changes:
PostHogReplayIntegration.shouldAwaitFirstRemoteConfig()drops the branch for "neither/confignor/flagswill be fetched", which can no longer happen.posthog-serverkeeps its own deprecatedremoteConfigfield; it just no longer forwards it to core.sdk-specs:
remote-configdescribes loading/configduring initialization and doesn't define an option to skip it, so this brings Android in line.💚 How did you test it?
./gradlew :posthog:test :posthog-server:test :posthog-server-openfeature:test :posthog-android:testReleaseUnitTest :posthog-android-surveys-compose:testReleaseUnitTestandapiCheckpass.remoteConfig = falseto keep setup on the single/flagsrequest. They now skip setup's flag loading through the test-onlyreloadFeatureFlagsflag, or answer/configbefore/flags.127.0.0.1:1, so the new/configrequest can't reach the real API.preload feature flags if enabled(the/flags-only setup) and the replaygate does not arm when neither remoteConfig nor preloadFeatureFlags will fetch./configrequest.📝 Checklist
If releasing new changes
pnpm changesetto generate a changeset file (adds a line to.changeset/android-v4-major.md)🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Claude Code (Claude Opus 5.5) found that
remoteConfigstill switched setup between/configand/flags, so it was split out of #871 into this PR. In the tests, a test-only switch that kept the old/flags-only path was rejected because production would never run it; tests either skip setup's loading or answer/configfirst.🤖 Generated with Claude Code