feat(mobile): auto-publish cloud runs toggle (port #3217)#3261
Merged
Conversation
Adds a persisted mobile setting (default on) that makes cloud runs push their changes and open a draft pull request on completion, matching the desktop advanced-settings toggle. The new-task composer sends the setting as `auto_publish` on the cloud run request; the backend already interprets it. Generated-By: PostHog Code Task-Id: f544ff52-3a2f-47fe-9dbd-c1299fe4b425
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
Contributor
|
Reviews (1): Last reviewed commit: "feat(mobile): auto-publish cloud runs to..." | Re-trigger Greptile |
Collapse the enabled/disabled auto_publish assertions into a single it.each, matching the project's parameterised-test convention. Generated-By: PostHog Code Task-Id: f544ff52-3a2f-47fe-9dbd-c1299fe4b425
tatoalo
approved these changes
Jul 8, 2026
Generated-By: PostHog Code Task-Id: 9d49cf24-2cd0-48ba-bdaa-713650b7b2d7
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.
Ports the desktop advanced-settings toggle from #3217 to the mobile app.
What this adds
A user-facing setting that makes cloud runs push their work and open a draft PR on completion, without waiting for an explicit ask. Manual cloud runs remain review-first by default on the backend; this toggle opts them into auto-publishing.
Changes (all
apps/mobile)preferencesStore.ts— persistedautoPublishCloudRunsboolean (defaulttrue, matching desktop) +setAutoPublishCloudRuns.settings/index.tsx— a Switch in the Input section labelled "Always create pull requests for cloud runs" with the same description as desktop.tasks/api.ts—RunTaskInCloudOptions.autoPublish?: boolean;runTaskInCloudsendsauto_publishin the request body when set.app/task/index.tsx— the new-task composer (initial cloud-run kickoff) threads the setting through, alongsidemodel/reasoningEffort/initialPermissionMode.tasks/api.test.ts— covers thatauto_publishis included when enabled, sent asfalsewhen disabled, and omitted when unset.No desktop or shared-package code changed — the backend already interprets
auto_publish, so mobile only needs to send it.Testing
pnpm --filter @posthog/mobile test src/features/tasks/api.test.ts— 4 passing.