Skip to content

[1928 by GPT-5.6 Sol] Expose automatic CI follow-up controls in CLI, UI, and docs - #1932

Merged
propr-dev[bot] merged 1 commit into
1926-epic-automatic-ci-vn4from
1928/gpt-5.6-sol-expose-automatic-ci-follo-20260824-0937-v7v
Aug 24, 2026
Merged

propr-dev[bot] merged 1 commit into
1926-epic-automatic-ci-vn4from
1928/gpt-5.6-sol-expose-automatic-ci-follo-20260824-0937-v7v

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #1928

Branch: 1928/gpt-5.6-sol-expose-automatic-ci-follo-20260824-0937-v7v
Commits: ✅ Changes committed (27eed49)


AI Processing Completed

Execution Details:

Summary:
Implemented GitHub issue #1928.

  • Added CLI flags for repository add/toggle and an audit column in repo list: repoCommands.ts
  • Added admin-only UI controls for repository creation and per-repository updates: useRepositoryManagement.ts, RepositoryListItem.tsx
  • Preserved existing values and normalized missing legacy values to false.
  • Added CLI and UI hook regression tests.
  • Documented the off-by-default behavior and trusted-CI recommendation: propr-cli.md

Validation passed:

  • CLI and UI type checks
  • CLI and UI lint
  • UI production build
  • 4 focused CLI tests
  • 13 repository-management UI tests

Detailed Logs:

  • Conversation: 64 messages
  • Session: 01a03322-f956-7050-a173-f9769a8cf612

Log files stored at:

  • conversation: /tmp/claude-logs/issue-1928-2026-08-24T09-47-13-285Z-conversation.json
  • output: /tmp/claude-logs/issue-1928-2026-08-24T09-47-13-285Z-output.txt
Latest Conversation Messages

This PR was created automatically by ProPR after processing issue #1928.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

… in CLI, UI,

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.
@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix
Triggered automatically by Planner execution settings.

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev propr-dev Bot added the ultrafix label Aug 24, 2026
@propr-dev

propr-dev Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — claude:claude-sonnet-5

Overall Evaluation

This PR exposes the previously backend-only "automatic CI follow-up" repository setting through the CLI (repo add/repo toggle/repo list) and the Web UI (add-repository modal, per-repository toggle, admin-only gating). The backend contract (autoFollowupOnFailedCi, default false, preserved when omitted) was already implemented and validated in unrelated, unchanged files, so this PR's job was purely to plumb the setting through existing UI/CLI flows without breaking prior behavior — which it does cleanly and consistently on both sides. All 10 required head checks pass and 0 fail.

✅ Consistent default/legacy handling across CLI and UI — Both useRepositoryManagement.ts (autoFollowupOnFailedCi = repoObj.autoFollowupOnFailedCi === true) and the CLI (autoFollowupOnFailedCi: options.autoCiFollowup ?? false) correctly default missing/legacy values to false, matching the documented "off by default" behavior and the backend's own normalization contract.

✅ Read-modify-write safety preserved — handleToggleAutoCiFollowup and handleAddRepo map/spread over the full repos array and only mutate the targeted entry, mirroring the existing handleToggleRepo/handleAddRepo patterns, so other repositories' settings are not clobbered on save — verified against the new hook tests (toggles automatic CI follow-up for one repository without changing others).

✅ Thorough, behavior-matching test coverage — Both the new CLI tests (repoCommands.test.ts) and hook tests (useRepositoryManagement.test.tsx) exercise add/toggle/default/preserve scenarios that align precisely with the implementation's actual logic (e.g., verifying --no-auto-ci-followup disables while leaving enabled and other repos untouched).

No actionable (merge-blocking) issues were found; the diff is internally consistent with the pre-existing backend contract shown in the surrounding context, and the changed control/data paths (CLI flag parsing → updateRepo/addRepo → API; UI toggle → performAutoSave → API) were traced without finding regressions.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Confirm AddRepositoryForm caller is updated (or remove if unused)

AddRepositoryForm.tsx gained a brand-new isReadOnly prop plus autoFollowupOnFailedCi/onAutoFollowupOnFailedCiChange required props in this diff, but no caller of AddRepositoryForm appears in the 11 changed files (the page wiring shown only touches AddRepositoryModal). Since the UI production build and typecheck passed, either an unseen caller already supplies these props correctly, or the component is currently unused/dead code. It would be worth confirming which is the case and, if unused, removing or documenting the component to avoid future confusion — this is not a functional regression since the build succeeded, so it's optional cleanup rather than a blocker.

S2: 🟢 Add an explicit aria-label to the modal's new checkbox

AutoCiFollowupControl in RepositoryListItem.tsx sets aria-label={Automatic CI follow-up for ${repo.name}} on its checkbox, but the equivalent checkbox added in AddRepositoryModal.tsx (and AddRepositoryForm.tsx) relies only on the adjacent <span> text without an explicit aria-label/htmlFor association for screen readers. This is a minor accessibility polish item, not required for merge since the visible label text still describes the control.

S3: 🟢 Guard against simultaneous --auto-ci-followup and --no-auto-ci-followup

repoCommands.ts's repo toggle validates the mutually exclusive --enable/--disable pair explicitly but does not add an equivalent explicit conflict check for --auto-ci-followup vs --no-auto-ci-followup being passed together (Commander's last-flag-wins behavior applies implicitly). Adding a symmetric guard would improve CLI UX consistency, but this is an edge case with low practical impact and not necessary for merge.

Score

No actionable findings were identified, the changed behavior is consistent with the pre-existing backend contract, test coverage for the new paths is solid, and all current head checks pass.

Score: 9/10


🤖 Review Details

  • Model: Claude Sonnet 5
  • Time: 2m 16s
  • Tokens: 77,834 (63,672 in / 14,162 out)
  • Cost: $0.30

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Aug 24, 2026
@propr-dev
propr-dev Bot merged commit ef70315 into 1926-epic-automatic-ci-vn4 Aug 24, 2026
23 checks passed
@propr-dev
propr-dev Bot deleted the 1928/gpt-5.6-sol-expose-automatic-ci-follo-20260824-0937-v7v branch August 24, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants