Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

feat(loops): Add auto-fix PRs toggle and free wizard navigation - #3441

Closed
charlesvien wants to merge 2 commits into
feat/loopsfrom
feat/loop-autofix-toggle
Closed

feat(loops): Add auto-fix PRs toggle and free wizard navigation#3441
charlesvien wants to merge 2 commits into
feat/loopsfrom
feat/loop-autofix-toggle

Conversation

@charlesvien

@charlesvien charlesvien commented Jul 14, 2026

Copy link
Copy Markdown
Member

Problem

Loops will eventually watch CI and review comments on the PRs they open and push fixes, but there's no way to opt a loop in yet. The wizard's step circles also blocked jumping ahead.

Changes

  • Adds an "Auto-fix pull requests" toggle to the wizard's Options step. It persists through the existing behaviors object on the loop model (watch_ci + fix_review_comments set together); runtime behavior ships separately, this only persists the option. The Review step shows it as On/Off.
  • The stepper's number circles now jump to any step in either direction. Next stays gated per step and Create on full-form validity, so skipping ahead can't submit an invalid loop.

Stacked on feat/loops -- retargets to main once that merges.

How did you test this?

  • pnpm --filter @posthog/ui typecheck and biome are clean.
  • Not exercised in the running app.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

@github-actions

Copy link
Copy Markdown

React Doctor found 1 issue in 1 file · 1 warning.

1 warning

src/features/loops/components/LoopForm.tsx

Reviewed by React Doctor for commit 01cba7a.

@greptile-apps

greptile-apps Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "allow jumping to any loop wizard step" | Re-trigger Greptile

export function isAutoFixEnabled(
behaviors: LoopSchemas.LoopBehaviors,
): boolean {
return behaviors.watch_ci && behaviors.fix_review_comments;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Mixed Behaviors Display As Off

When an existing loop has only watch_ci or fix_review_comments enabled, this predicate displays Auto-fix as Off even though one behavior remains active. Clicking the switch then enables both fields instead of disabling the active behavior, so the control and Review step misrepresent the persisted state.

Rule Used: When implementing new features, ensure that the UI... (source)

Learned From
PostHog/posthog#32595
PostHog/posthog#32677

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant