:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(review-hog): per-user toggle for clean-review media (#108481)
Paul D'Ambra9b9b82b3a1fc
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 64924b8cdec8..159a0cb06e89 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -5424,6 +5424,10 @@ snapshots:hash: v1.k794b7964.62481a20890d8d9702570d58b69f47580c91399daa635cab23d9e8da75d2636f.4zz_BsbTTGbjpB2UW_cLkBiMwGDI54MGoQlD9_b9hV8lemon-ui-object-tags--default--light:hash: v1.k794b7964.1a69b09d2bc7612599daf0a1228b103250debc4afa2224fb8005e3c9b7f63326.bYCI4pCGFv3tFdGcQfIkfzDcOnpuLhD10S33l9BYIYg+ lemon-ui-object-tags--editable-tags-in-narrow-container--dark:+ hash: v1.k794b7964.6538590671c5bcd8feb77e0400c8532705932f4f55856dd6a99a6abcdc00b6e3.ca3qOKbmxmRDrNfdNRCEg9I9Wvnkrs7PHzA0tvpXTIM+ lemon-ui-object-tags--editable-tags-in-narrow-container--light:+ hash: v1.k794b7964.8b8f244a4387d0d1165067851b5758f5ad5429fae2b4a4e87eb7c53cdfdd4e18.MekQJYDe11n-5XnhJV5phxqMh5OqTw36CTFCk_BZNnwlemon-ui-object-tags--static-only--dark:hash: v1.k794b7964.62481a20890d8d9702570d58b69f47580c91399daa635cab23d9e8da75d2636f.oAaWHdceTRTQOchqDXvZ7-ym0DB_CpRpPyXnqlKugwolemon-ui-object-tags--static-only--light:@@ -12435,13 +12439,13 @@ snapshots:scenes-app-workflows-createaitaskconnectors--unavailable-connector--light:hash: v1.k794b7964.c4fdab3ab5190ace67d354d7010b49cbd37e9ec72feaa3fab9760d1f1010c8b0.S5qBDGrQNUo7qygcV1_MG_nu9RWeaMnoOFrYdhnV97Escenes-code-review--default--dark:- hash: v1.k794b7964.99d5413f62da6fd79189c3e3e74b4c29d0623a8bda4fdb2afc3358a79e131745.95vWL4i-5X2UOK7he1TWDQMJpt_BSa3XRSugibzJG-I+ hash: v1.k794b7964.0dc91d491884c921b2a28d4f36de86e37b4442e77a3458d4b899f93ffe3f9329.cWMsULS-e97XTg1fXPiq0nzNGpSFj5hLhkvpJov-jUoscenes-code-review--default--light:- hash: v1.k794b7964.283e9ea199eed12b5798fb775e39035fa35e9c753b8ad1bf7167440e3af35afd.RIyVmxpZZ0-OT4gDMOXyjjfZ9LMV4EzLP4o75VVULCM+ hash: v1.k794b7964.64b0433a9848330102ab61be679048998992c65afd18ac9b3a9a06ddeade247e.4rHgGQCxEwQFw6QpeLstamxFthTTm-v-bN43LMnuoagscenes-code-review--narrow--dark:- hash: v1.k794b7964.e3159cbdd891243ab7fada6687ea215fbcad26b36ad9eec8c5bbe16750e8c8c4.nBWAH2u4lWuYa0rK2SeXB7TK1cx6Uolc13mvvXWXMrM+ hash: v1.k794b7964.5e653d673586db1b4aee7171ac3286ea9e5cd9710ba9342d96f73db462226a0c.l6pjAAewVhTc3Q1z6XHbwfGCuxqgTnxhLLDe9EEISYoscenes-code-review--narrow--light:- hash: v1.k794b7964.80e7047478c38b7788af6d97e1f6c6ac9b81b818b49a80bff3e9b7a005bff0f5._mk-hCUP8zXV3Ub-CCRdEvHQusrsmTlHjDp9-BmFcNk+ hash: v1.k794b7964.278598caf47885dd96965b61a69ba1bbc6d8f08a2d8c1f934610efcb55deac6c.FLi9zNVQIy8kobjXZ4zV_IPvkZoBHZk_KHNlBjiadu8scenes-dashboards-customize-breakdown-colors--customize-breakdown-colors--dark:hash: v1.k794b7964.cf89a12669d5221b2441fbfb4439b8b1b38191943438a2c1a220444148329954.B4ew6uW3gZCbPU_3vTOggsOyHojRlyvuXxh5FZnlO-0scenes-dashboards-customize-breakdown-colors--customize-breakdown-colors--light:diff --git a/products/review_hog/backend/api/settings.py b/products/review_hog/backend/api/settings.pyindex 8125eb99c5fe..5cf4a87370df 100644--- a/products/review_hog/backend/api/settings.py+++ b/products/review_hog/backend/api/settings.py@@ -43,6 +43,12 @@ class ReviewUserSettingsSerializer(serializers.ModelSerializer):"branch, and reply on every thread. On by default; turning it off makes reviews stop at ""publishing.",)+ celebrate_clean_reviews = serializers.BooleanField(+ required=False,+ help_text="Show a fun image in the review comment when a review of this user's pull requests "+ "finds nothing to raise. On by default; turning it off makes clean reviews end with the "+ "text summary only.",+ )review_authored_prs = serializers.BooleanField(required=False,help_text="Automatically review pull requests authored by this user in PostHog/posthog in Flash mode. "@@ -79,6 +85,7 @@ class ReviewUserSettingsSerializer(serializers.ModelSerializer):"stamphog_review_inbox_prs","review_labeled_prs","resolve_comments",+ "celebrate_clean_reviews","review_authored_prs","flash_reasoning_effort","urgency_threshold",diff --git a/products/review_hog/backend/migrations/0033_reviewusersettings_celebrate_clean_reviews.py b/products/review_hog/backend/migrations/0033_reviewusersettings_celebrate_clean_reviews.pynew file mode 100644index 000000000000..fb4c8328cee6--- /dev/null+++ b/products/review_hog/backend/migrations/0033_reviewusersettings_celebrate_clean_reviews.py@@ -0,0 +1,17 @@+# Generated by Django 5.2.17 on 2026-09-29 15:31++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("review_hog", "0032_authored_pr_review_settings"),+ ]++ operations = [+ migrations.AddField(+ model_name="reviewusersettings",+ name="celebrate_clean_reviews",+ field=models.BooleanField(db_default=True, default=True),+ ),+ ]diff --git a/products/review_hog/backend/migrations/max_migration.txt b/products/review_hog/backend/migrations/max_migration.txtindex a880077fe368..0dc678646cff 100644--- a/products/review_hog/backend/migrations/max_migration.txt+++ b/products/review_hog/backend/migrations/max_migration.txt@@ -1 +1 @@-0032_authored_pr_review_settings+0033_reviewusersettings_celebrate_clean_reviewsdiff --git a/products/review_hog/backend/models.py b/products/review_hog/backend/models.pyindex 84446214eb86..8e8121ff8f14 100644--- a/products/review_hog/backend/models.py+++ b/products/review_hog/backend/models.py@@ -404,6 +404,8 @@ class ReviewUserSettings(UUIDModel, TeamScopedRootMixin):stamphog_review_inbox_prs = models.BooleanField(default=False, db_default=False)review_labeled_prs = models.BooleanField(default=True, db_default=True)resolve_comments = models.BooleanField(default=True, db_default=True)+ # Opt-out of the clean-review media in the PR status comment ("Nothing worth raising this time").+ celebrate_clean_reviews = models.BooleanField(default=True, db_default=True)review_authored_prs = models.BooleanField(default=False, db_default=False)flash_reasoning_effort = models.CharField(max_length=10,diff --git a/products/review_hog/backend/reviewer/status_comment.py b/products/review_hog/backend/reviewer/status_comment.pyindex 6c3d1aff2c9c..91d0307db70a 100644--- a/products/review_hog/backend/reviewer/status_comment.py+++ b/products/review_hog/backend/reviewer/status_comment.py@@ -195,6 +195,7 @@ def render_final_body(resolved_from: str = "author",report_url: str | None = None,review_mode: str = REVIEW_MODE_FULL,+ celebrate_clean_reviews: bool = True,) -> str:"""The completed-state body: the full found counts, and how many the threshold held back.@@ -209,7 +210,7 @@ def render_final_body(f"**{counts[priority]} {PRIORITY_LABELS[priority]}**" for priority in PRIORITIES_BY_URGENCY)lines = ["### \U0001f994 PostHog Review reviewed this pull request", ""]- if found_total == 0:+ if found_total == 0 and celebrate_clean_reviews:media_url, media_alt = random.choice(_NO_ISSUES_MEDIA)lines.extend([@@ -520,6 +521,7 @@ class FinalizeStatusCommentInput:# the held-back sentence must blame the right settings. Defaulted so pre-field payloads deserialize.resolved_from: str = "author"review_mode: str = REVIEW_MODE_FULL+ celebrate_clean_reviews: bool = Truedef finalize_status_comment(input: FinalizeStatusCommentInput) -> None:@@ -547,6 +549,7 @@ def finalize_status_comment(input: FinalizeStatusCommentInput) -> None:resolved_from=input.resolved_from,report_url=report_deep_link(input.team_id, input.report_id),review_mode=input.review_mode,+ celebrate_clean_reviews=input.celebrate_clean_reviews,)_edit_and_stamp(input.team_id, report, body)except Exception:diff --git a/products/review_hog/backend/temporal/activities.py b/products/review_hog/backend/temporal/activities.pyindex 2f1b2deeadd8..24208446df1a 100644--- a/products/review_hog/backend/temporal/activities.py+++ b/products/review_hog/backend/temporal/activities.py@@ -248,6 +248,9 @@ class ResolveActingUserResult:# — the SKIP value — so pre-field histories replay deterministically (the chained dispatch is a# new workflow command; old runs must never reach it on replay). The model default is True.resolve_comments: bool = False+ # Cosmetic only: whether the clean-review media appears in the status comment. Defaults True,+ # the model default, so pre-field histories keep the media and a resolve failure falls back to it.+ celebrate_clean_reviews: bool = Truereview_authored_prs: bool = Falseflash_reasoning_effort: str = ReasoningEffort.MEDIUM.value@@ -690,11 +693,14 @@ def _login_to_user_id(team_id: int, login: str | None) -> int | None:def _resolve_acting_user(input: ResolveActingUserInput) -> ResolveActingUserResult:+ # Resolved even on override runs: the clean-review media switch keys off the mapped author's own+ # preference, not the requester's, so an override run still needs this identity to load it.+ author_user_id = _login_to_user_id(input.team_id, input.author_login)acting_user_id: int | Noneif input.override_user_id is not None:acting_user_id, resolved_from = input.override_user_id, "override"else:- acting_user_id, resolved_from = _login_to_user_id(input.team_id, input.author_login), "author"+ acting_user_id, resolved_from = author_user_id, "author"# Label-trigger fallback — someone explicitly asked for this review, so borrow the run user# the trigger already resolved. Other triggers keep the author-only contract and skip.if acting_user_id is None and input.trigger_source == TRIGGER_LABEL:@@ -715,7 +721,11 @@ def _resolve_acting_user(input: ResolveActingUserInput) -> ResolveActingUserResu)if input.report_id is not None:ReviewReport.objects.for_team(input.team_id).filter(id=input.report_id).update(acting_user_id=acting_user_id)- settings = ReviewUserSettings.load(input.team_id, acting_user_id)+ # celebrate_clean_reviews follows the author, who can differ from the acting user on an+ # override run, so load both rows in one query instead of a second round trip below.+ extra_settings_ids = [author_user_id] if author_user_id is not None and author_user_id != acting_user_id else []+ settings_by_user = ReviewUserSettings.load_many(input.team_id, [acting_user_id, *extra_settings_ids])+ settings = settings_by_user[acting_user_id]return ResolveActingUserResult(acting_user_id=acting_user_id,# The labeled-PR opt-out protects authors ("don't review my PRs") — the borrowed default@@ -735,6 +745,18 @@ def _resolve_acting_user(input: ResolveActingUserInput) -> ResolveActingUserResu# Same author-protection shape as `review_labeled_prs`: the borrowed default user's personal# switch never governs someone else's PR — an unmapped author gets the default posture (on).resolve_comments=settings.resolve_comments if resolved_from in ("author", "override") else True,+ # Unlike the switches above, this one follows the AUTHOR, not the requester: its copy scopes+ # it to "your pull requests". A teammate-triggered override still honors the mapped author's+ # own preference. Only an unmapped author falls back to the default.+ celebrate_clean_reviews=(+ settings.celebrate_clean_reviews+ if resolved_from == "author" or (resolved_from == "override" and acting_user_id == author_user_id)+ else (+ settings_by_user[author_user_id].celebrate_clean_reviews+ if resolved_from == "override" and author_user_id is not None+ else True+ )+ ),review_authored_prs=settings.review_authored_prs if resolved_from in ("author", "override") else False,flash_reasoning_effort=(str(settings.flash_reasoning_effort)diff --git a/products/review_hog/backend/temporal/workflow.py b/products/review_hog/backend/temporal/workflow.pyindex 3e3076182a52..bd1943b20327 100644--- a/products/review_hog/backend/temporal/workflow.py+++ b/products/review_hog/backend/temporal/workflow.py@@ -769,6 +769,7 @@ class ReviewPRWorkflow:review_url=publish_result.review_url if publish_result is not None else None,resolved_from=acting.resolved_from,review_mode=inputs.review_mode,+ celebrate_clean_reviews=acting.celebrate_clean_reviews,),start_to_close_timeout=_QUICK_TIMEOUT,retry_policy=_RETRY,diff --git a/products/review_hog/backend/tests/test_acting_user.py b/products/review_hog/backend/tests/test_acting_user.pyindex acbd6c980e4a..7f02bf4e6dff 100644--- a/products/review_hog/backend/tests/test_acting_user.py+++ b/products/review_hog/backend/tests/test_acting_user.py@@ -103,6 +103,7 @@ class TestResolveActingUser(BaseTest):resolve_comments=False,review_authored_prs=True,flash_reasoning_effort=ReviewUserSettings.FlashReasoningEffort.XHIGH,+ celebrate_clean_reviews=False,)result = _resolve_acting_user(ResolveActingUserInput(team_id=self.team.id, author_login="octocat", override_user_id=None)@@ -115,6 +116,7 @@ class TestResolveActingUser(BaseTest):assert result.resolve_comments is Falseassert result.review_authored_prs is Trueassert result.flash_reasoning_effort == "xhigh"+ assert result.celebrate_clean_reviews is Falsedef test_label_trigger_falls_back_to_the_run_user(self) -> None:# Unmapped author on a labeled PR → the run user the trigger already resolved, passed@@ -145,7 +147,11 @@ class TestResolveActingUser(BaseTest):def test_labeled_opt_out_protects_authors_but_never_travels_with_a_borrowed_user(self) -> None:# self.user is both the mapped author (octocat) and the run-user fallback.ReviewUserSettings.objects.for_team(self.team.id).create(- team_id=self.team.id, user_id=self.user.id, review_labeled_prs=False, resolve_comments=False+ team_id=self.team.id,+ user_id=self.user.id,+ review_labeled_prs=False,+ resolve_comments=False,+ celebrate_clean_reviews=False,)# Acting as the author: their own opt-outs apply (the workflow will skip / stop at publish).as_author = _resolve_acting_user(@@ -169,6 +175,10 @@ class TestResolveActingUser(BaseTest):assert (as_default.acting_user_id, as_default.resolved_from) == (self.user.id, "default")assert as_default.review_labeled_prs is Trueassert as_default.resolve_comments is True+ # Same borrowed-user protection: the run user's own media preference never shapes+ # someone else's PR.+ assert as_author.celebrate_clean_reviews is False+ assert as_default.celebrate_clean_reviews is Truedef test_urgency_threshold_follows_personal_sources_but_never_a_borrowed_default_user(self) -> None:# The publish-gate twin of the opt-out rule above: the run user's saved must_fix threshold@@ -179,6 +189,7 @@ class TestResolveActingUser(BaseTest):user_id=self.user.id,urgency_threshold=ReviewUserSettings.UrgencyThreshold.MUST_FIX,flash_reasoning_effort=ReviewUserSettings.FlashReasoningEffort.XHIGH,+ celebrate_clean_reviews=False,)as_author = _resolve_acting_user(ResolveActingUserInput(@@ -187,6 +198,18 @@ class TestResolveActingUser(BaseTest):)assert (as_author.resolved_from, as_author.urgency_threshold) == ("author", "must_fix")assert as_author.flash_reasoning_effort == "xhigh"+ # The media switch follows the author: an override that IS the mapped author (a UI+ # self-review) keeps the saved value...+ as_author_override = _resolve_acting_user(+ ResolveActingUserInput(+ team_id=self.team.id,+ author_login="octocat",+ override_user_id=self.user.id,+ trigger_source=TRIGGER_LABEL,+ )+ )+ assert as_author_override.celebrate_clean_reviews is False+ # ...while an override by someone else (a UI requester on a teammate's PR) does not.as_override = _resolve_acting_user(ResolveActingUserInput(team_id=self.team.id, author_login="ghost", override_user_id=self.user.id, trigger_source=TRIGGER_LABEL@@ -194,6 +217,7 @@ class TestResolveActingUser(BaseTest):)assert (as_override.resolved_from, as_override.urgency_threshold) == ("override", "must_fix")assert as_override.flash_reasoning_effort == "xhigh"+ assert as_override.celebrate_clean_reviews is Trueas_default = _resolve_acting_user(ResolveActingUserInput(team_id=self.team.id,@@ -206,6 +230,21 @@ class TestResolveActingUser(BaseTest):assert (as_default.resolved_from, as_default.urgency_threshold) == ("default", "consider")assert as_default.flash_reasoning_effort == "medium"+ def test_override_by_a_different_mapped_user_still_follows_the_authors_media_preference(self) -> None:+ # A teammate triggering a review from the UI supplies themselves as override_user_id while the+ # PR author is a distinct mapped user, so this must load the author's own opt-out rather than+ # falling through to the built-in default the way an unmapped author would.+ teammate = self._create_user("[email protected]")+ UserSocialAuth.objects.create(user=teammate, provider="github", uid="gh-2", extra_data={"login": "teammate"})+ ReviewUserSettings.objects.for_team(self.team.id).create(+ team_id=self.team.id, user_id=teammate.id, celebrate_clean_reviews=False+ )+ result = _resolve_acting_user(+ ResolveActingUserInput(team_id=self.team.id, author_login="teammate", override_user_id=self.user.id)+ )+ assert (result.acting_user_id, result.resolved_from) == (self.user.id, "override")+ assert result.celebrate_clean_reviews is False+def test_resolve_stamps_the_acting_user_onto_the_report(self) -> None:# "Your recent reviews" filters on this stamp — if resolve stops writing it, the list goes empty.report = ReviewReport.objects.for_team(self.team.id).create(diff --git a/products/review_hog/backend/tests/test_settings_api.py b/products/review_hog/backend/tests/test_settings_api.pyindex b6e04402ea52..3b702fbde99c 100644--- a/products/review_hog/backend/tests/test_settings_api.py+++ b/products/review_hog/backend/tests/test_settings_api.py@@ -31,6 +31,7 @@ class TestReviewUserSettingsAPI(APIBaseTest):"stamphog_review_inbox_prs": False, # opt-in: a real approval must never be a default"review_labeled_prs": True,"resolve_comments": True,+ "celebrate_clean_reviews": True,"review_authored_prs": False,"flash_reasoning_effort": "medium","urgency_threshold": "consider",@@ -50,6 +51,7 @@ class TestReviewUserSettingsAPI(APIBaseTest):"resolve_comments": False,"review_authored_prs": True,"flash_reasoning_effort": "xhigh",+ "celebrate_clean_reviews": False,},format="json",)@@ -62,6 +64,7 @@ class TestReviewUserSettingsAPI(APIBaseTest):assert row.resolve_comments is Falseassert row.review_authored_prs is Trueassert row.flash_reasoning_effort == "xhigh"+ assert row.celebrate_clean_reviews is Falseassert row.review_labeled_prs is True # untouched field keeps its defaultdisabled = self.client.patch(self.url, {"review_authored_prs": False}, format="json")diff --git a/products/review_hog/backend/tests/test_status_comment.py b/products/review_hog/backend/tests/test_status_comment.pyindex 39dfd05829dd..cadb0b7196f1 100644--- a/products/review_hog/backend/tests/test_status_comment.py+++ b/products/review_hog/backend/tests/test_status_comment.py@@ -190,8 +190,11 @@ class TestRenderFinalBody:# Held-back findings are otherwise invisible to the author — the comment must not dead-end.assert "[View them in PostHog](https://ph.test/project/1/code-review?review=rid)" in body+ @parameterized.expand([("default_on", True), ("author_opted_out", False)])@patch(f"{_MODULE}.random.choice", return_value=("https://example.test/dog.png", "A happy dog"))- def test_uses_the_randomly_selected_clean_review_media(self, mock_choice: MagicMock) -> None:+ def test_clean_review_media_follows_the_preference(+ self, _name: str, celebrate: bool, mock_choice: MagicMock+ ) -> None:body = render_final_body("rid",counts={IssuePriority.MUST_FIX: 0, IssuePriority.SHOULD_FIX: 0, IssuePriority.CONSIDER: 0},@@ -199,10 +202,16 @@ class TestRenderFinalBody:held_back_count=0,threshold=IssuePriority.SHOULD_FIX,review_url=None,+ celebrate_clean_reviews=celebrate,)- assert "" in body- mock_choice.assert_called_once()+ if celebrate:+ assert "" in body+ mock_choice.assert_called_once()+ else:+ assert "dog.png" not in body+ assert "Enjoy the moment" not in body+ mock_choice.assert_not_called()def _pr_metadata(pr_number: int = 123) -> PRMetadata:diff --git a/products/review_hog/frontend/CodeReviewScene.tsx b/products/review_hog/frontend/CodeReviewScene.tsxindex e582546fb309..2e1d1ca0e5ac 100644--- a/products/review_hog/frontend/CodeReviewScene.tsx+++ b/products/review_hog/frontend/CodeReviewScene.tsx@@ -5,6 +5,7 @@ import {IconBolt,IconChat,IconChevronDown,+ IconConfetti,IconDirectedGraph,IconExternal,IconFilter,@@ -1243,6 +1244,25 @@ function TriggersSection(): JSX.Element {disabledReason={switchDisabledReason}/></div>+ <div className="flex items-center gap-4 p-4">+ <div className="flex size-9 shrink-0 items-center justify-center rounded border border-primary bg-primary">+ <IconConfetti className="size-5" />+ </div>+ <div className="min-w-0 flex-1">+ <div className="text-sm font-semibold">Celebrate clean reviews</div>+ <div className="text-xs text-secondary">+ When a review of your pull request finds nothing to raise, the review comment shows a fun+ image. Turn this off to end clean reviews with the text summary only.+ </div>+ </div>+ <LemonSwitch+ aria-label="Celebrate clean reviews"+ data-attr="review-hog-celebrate-clean-reviews"+ checked={settings?.celebrate_clean_reviews ?? true}+ onChange={(checked) => updateSettings({ celebrate_clean_reviews: checked })}+ disabledReason={switchDisabledReason}+ />+ </div></LemonCard><div className="mt-2"><h4 className="mb-1 text-sm font-semibold">ReviewHog Flash - Experimental</h4>diff --git a/products/review_hog/frontend/generated/api.schemas.ts b/products/review_hog/frontend/generated/api.schemas.tsindex 85dde6c2d7eb..b3f4e3932470 100644--- a/products/review_hog/frontend/generated/api.schemas.ts+++ b/products/review_hog/frontend/generated/api.schemas.ts@@ -544,6 +544,8 @@ export interface ReviewUserSettingsApi {review_labeled_prs?: boolean/** After a review of the user's pull requests is published, run the resolution stage: triage the PR's unresolved review threads, implement the worth-and-safe fixes on the PR branch, and reply on every thread. On by default; turning it off makes reviews stop at publishing. */resolve_comments?: boolean+ /** Show a fun image in the review comment when a review of this user's pull requests finds nothing to raise. On by default; turning it off makes clean reviews end with the text summary only. */+ celebrate_clean_reviews?: boolean/** Automatically review pull requests authored by this user in PostHog/posthog in Flash mode. Off by default. Flash reviews post findings without resolving comments. */review_authored_prs?: boolean/** Reasoning effort for this user's automatic and manually requested Flash reviews: 'medium' (default) or 'xhigh'. Applies to both review and validation. Saved independently of the automatic-review toggle.@@ -572,6 +574,8 @@ export interface PatchedReviewUserSettingsApi {review_labeled_prs?: boolean/** After a review of the user's pull requests is published, run the resolution stage: triage the PR's unresolved review threads, implement the worth-and-safe fixes on the PR branch, and reply on every thread. On by default; turning it off makes reviews stop at publishing. */resolve_comments?: boolean+ /** Show a fun image in the review comment when a review of this user's pull requests finds nothing to raise. On by default; turning it off makes clean reviews end with the text summary only. */+ celebrate_clean_reviews?: boolean/** Automatically review pull requests authored by this user in PostHog/posthog in Flash mode. Off by default. Flash reviews post findings without resolving comments. */review_authored_prs?: boolean/** Reasoning effort for this user's automatic and manually requested Flash reviews: 'medium' (default) or 'xhigh'. Applies to both review and validation. Saved independently of the automatic-review toggle.diff --git a/products/review_hog/frontend/generated/api.zod.ts b/products/review_hog/frontend/generated/api.zod.tsindex 7f4edcb93131..27f9c3fa11d1 100644--- a/products/review_hog/frontend/generated/api.zod.ts+++ b/products/review_hog/frontend/generated/api.zod.ts@@ -98,6 +98,12 @@ export const ReviewHogSettingsPartialUpdateBody = /* @__PURE__ */ zod.object({.describe("After a review of the user's pull requests is published, run the resolution stage: triage the PR's unresolved review threads, implement the worth-and-safe fixes on the PR branch, and reply on every thread. On by default; turning it off makes reviews stop at publishing."),+ celebrate_clean_reviews: zod+ .boolean()+ .optional()+ .describe(+ "Show a fun image in the review comment when a review of this user's pull requests finds nothing to raise. On by default; turning it off makes clean reviews end with the text summary only."+ ),review_authored_prs: zod.boolean().optional()diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 0d8109d0af37..e42c2090593d 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -78242,6 +78242,8 @@ export namespace Schemas {review_labeled_prs?: boolean;/** After a review of the user's pull requests is published, run the resolution stage: triage the PR's unresolved review threads, implement the worth-and-safe fixes on the PR branch, and reply on every thread. On by default; turning it off makes reviews stop at publishing. */resolve_comments?: boolean;+ /** Show a fun image in the review comment when a review of this user's pull requests finds nothing to raise. On by default; turning it off makes clean reviews end with the text summary only. */+ celebrate_clean_reviews?: boolean;/** Automatically review pull requests authored by this user in PostHog/posthog in Flash mode. Off by default. Flash reviews post findings without resolving comments. */review_authored_prs?: boolean;/** Reasoning effort for this user's automatic and manually requested Flash reviews: 'medium' (default) or 'xhigh'. Applies to both review and validation. Saved independently of the automatic-review toggle.@@ -89723,6 +89725,8 @@ export namespace Schemas {review_labeled_prs?: boolean;/** After a review of the user's pull requests is published, run the resolution stage: triage the PR's unresolved review threads, implement the worth-and-safe fixes on the PR branch, and reply on every thread. On by default; turning it off makes reviews stop at publishing. */resolve_comments?: boolean;+ /** Show a fun image in the review comment when a review of this user's pull requests finds nothing to raise. On by default; turning it off makes clean reviews end with the text summary only. */+ celebrate_clean_reviews?: boolean;/** Automatically review pull requests authored by this user in PostHog/posthog in Flash mode. Off by default. Flash reviews post findings without resolving comments. */review_authored_prs?: boolean;/** Reasoning effort for this user's automatic and manually requested Flash reviews: 'medium' (default) or 'xhigh'. Applies to both review and validation. Saved independently of the automatic-review toggle.