Skip to content

fix(desktop): clear stale PR status on task switch - #80376

Merged
trunk-io[bot] merged 1 commit into
masterfrom
posthog-code/fix-stale-cloud-task-pr-status
Aug 10, 2026
Merged

fix(desktop): clear stale PR status on task switch#80376
trunk-io[bot] merged 1 commit into
masterfrom
posthog-code/fix-stale-cloud-task-pr-status

Conversation

@tatoalo

@tatoalo tatoalo commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Problem

Switching from a cloud task with a pull request to a fresh cloud task can leave the previous task’s PR status visible.

Why: Each task should show only its own pull request state, so users are not sent to an unrelated PR or shown misleading CI status.

Ignore retained placeholder data when a cloud task has no PR URL, preventing another task's PR state from appearing. Add regression coverage for the disabled-query case.

Generated-By: PostHog Code
Task-Id: 0d440385-19e4-469a-9bdd-0ab770dcf843
@tatoalo tatoalo self-assigned this Aug 10, 2026
@trunk-io

trunk-io Bot commented Aug 10, 2026

Copy link
Copy Markdown

😎 Merged successfully - details.

@github-actions github-actions Bot added the feature/desktop Feature Tag: Desktop label Aug 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit c074b78.

@PostHog PostHog deleted a comment from github-actions Bot Aug 10, 2026
@tatoalo
tatoalo marked this pull request as ready for review August 10, 2026 10:22
@greptile-apps

greptile-apps Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix(desktop): clear stale PR status on t..." | Re-trigger Greptile

@tatoalo
tatoalo requested a review from a team August 10, 2026 10:33
@tatoalo tatoalo added the stamphog Request AI approval (no full review) label Aug 10, 2026
@tatoalo
tatoalo enabled auto-merge (squash) August 10, 2026 10:34

@stamphog stamphog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny, well-tested UI bug fix that guards against stale query data leaking across task switches; no risky territory touched.

  • 👍 on the PR from greptile-apps[bot], hex-security-app[bot].
Gate mechanics and policy version
Gate Result
prerequisites all clear
deny-list no deny categories matched
size 4L, 1F substantive, 14L/2F incl. docs/generated/snapshots — within ceiling
tier T1-agent / T1a-trivial (14L, 2F, single-area, fix)
stamphog 2.0.0b4 .stamphog/policy.yml @ d8a5c93 · reviewed head c074b78

@trunk-io
trunk-io Bot merged commit 664f807 into master Aug 10, 2026
323 of 324 checks passed
@trunk-io
trunk-io Bot deleted the posthog-code/fix-stale-cloud-task-pr-status branch August 10, 2026 10:58
@deployment-status-posthog

deployment-status-posthog Bot commented Aug 10, 2026

Copy link
Copy Markdown

Deploy status

Environment Status Deployed At Workflow
dev ✅ Deployed 2026-08-10 11:22 UTC Run
prod-us ✅ Deployed 2026-08-10 11:40 UTC Run
prod-eu ✅ Deployed 2026-08-10 11:41 UTC Run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature/desktop Feature Tag: Desktop stamphog Request AI approval (no full review)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant