Repository navigation
[3530 by Claude Opus 5.5] Show the PR state as one leading emoji in the PR title - #3539
Conversation
… neither needs restarting. They never fired because the process check in each one matched its own command line, so it always looked like the tests were still running. They were only waiting on test runs I had already re-run and read directly, and those all passed. Nothing in my earlier report changes.
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds a shared title-slot format and integrates it with status synchronization, creation, merging, and UI parsing. It needs a localized correctness fix before merge. ✅ Shared parsing — Creation, task titles, UI consumers, and merge helpers use the same strict leading-slot pattern. ✅ Controlled updates — State settling, unchanged-title checks, and combined body/title writes reduce unnecessary renames. ✅ Lifecycle coverage — Tests cover status transitions, manual removal, closure, configuration failures, and webhook suppression. The supplied current-head status reports no failures and five pending checks. This review is a static analysis; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Failed writes suppress future title updates
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Exercise successful creation configurationThe new creation test verifies disabled maintenance and configuration-read failure, but never successfully reads an enabled or disabled repository setting. Add coverage asserting that enabled configuration produces the initial hammer slot and disabled configuration preserves the title. This is optional additional coverage; the supplied creation logic itself does not establish another blocker. ScoreThe implementation is cohesive and has useful transition coverage, but failed-write bookkeeping can prevent recovery of the feature’s primary output. A localized fix and regression test are needed; current checks have no reported failures but remain incomplete. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 5a64035
Summary of ChangesI fixed F1: when GitHub rejects a title update, ProPR no longer treats that as a person removing the status emoji, so the emoji is written again on the next update. What was wrong: ProPR saved the emoji it was about to write before sending the update, so the webhook GitHub sends back is recognised as ProPR's own edit however fast it arrives. If GitHub rejected the update, that saved emoji stayed. On the next update the title had no emoji but the saved one matched what was wanted, so ProPR read it as "a person removed it" and skipped the retry. That lasted until the status changed or the saved record expired after 30 days. The fix:
If the update actually went through but its response was lost, the next sync sees the emoji in the title and confirms it. If a person removed it in that short gap, it comes back once. That's the trade-off I chose for "unconfirmed". Same problem elsewhere: I checked the status block in the description, which uses the same save-before-update pattern. It isn't affected: that saved record is only used to recognise webhooks, and the sync always compares the description itself with what it should be, so a rejected update is retried. Tests: in
Both new tests fail on the previous code and pass with the fix. The four status suites pass (125 tests), core typechecks, and lint passes on the changed source files. There's no visible change, so I made no preview. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…nger treats that as a person removing the status emoji, so the emoji is written again on the next update. I fixed F1: when GitHub rejects a title update, ProPR no longer treats that as a person removing the status emoji, so the emoji is written again on the next update. **What was wrong:** ProPR saved the emoji it was about to write before sending the update, so the webhook GitHub sends back is recognised as ProPR's own edit however fast it arrives. If GitHub rejected the update, that saved emoji stayed. On the next update the title had no emoji but the saved one matched what was wanted, so ProPR read it as "a person removed it" and skipped the retry. That lasted until the status changed or the saved record expired after 30 days. **The fix:** - **`pullRequestStatusTitle.ts`:** - The saved emoji now has a pending flag. A new `recordPendingPullRequestTitleSlot` saves it as pending before the update. The existing `recordPullRequestTitleSlot` saves it as confirmed. - Only a confirmed emoji counts as one a person removed. A pending one is written again. - Webhook recognition still accepts pending records, so a webhook that arrives before GitHub answers is still treated as ProPR's own. - When the title already shows the wanted emoji and the saved one is still pending, it is now marked confirmed. - Records saved before this change have no flag and are treated as confirmed, which is what they meant before. - **`pullRequestStatusSync.ts`:** saves the emoji as pending before the update and confirms it only after GitHub accepts. If the update fails, the record stays pending and the next sync retries. If the update actually went through but its response was lost, the next sync sees the emoji in the title and confirms it. If a person removed it in that short gap, it comes back once. That's the trade-off I chose for "unconfirmed". **Same problem elsewhere:** I checked the status block in the description, which uses the same save-before-update pattern. It isn't affected: that saved record is only used to recognise webhooks, and the sync always compares the description itself with what it should be, so a rejected update is retried. **Tests:** in `packages/core/test/pullRequestStatusTitle.test.ts`, the fake GitHub can now reject an update, and there are two new tests: - A rejected `✅` followed by a successful sync wanting the same `✅`. It also checks that the webhook arriving mid-update is still treated as ProPR's own, that a fresh process reading only from Redis retries too, and that removing the emoji by hand is respected again once GitHub has accepted it. - A rejected `🔨` followed by a retry that adds it. Both new tests fail on the previous code and pass with the fix. The four status suites pass (125 tests), core typechecks, and lint passes on the changed source files. There's no visible change, so I made no preview. PR: #3539 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds a shared title-status format, integrates it into status synchronization, and updates title consumers and merge paths. It is merge-ready within the supplied scope, conditional on the two pending checks completing successfully. ✅ Consistent slot parsing — Shared helpers recognize only a leading status slot, preserve the remaining title, and handle both warning-emoji variants. ✅ Controlled updates — Title and body changes share the existing lock and PATCH request. Pending versus confirmed title records distinguish rejected writes from subsequent manual removal. ✅ Relevant regression coverage — Added tests cover lifecycle transitions, rejected renames, webhook suppression, title limits, Epic detection, and merge-title sanitization. This assessment is based on static review of the supplied code; no commands or tests were run. The authoritative check summary reports zero failures, 21 passes, and two pending checks. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Exercise successful creation decorationThe new creation test in S3: 🟢 Test scheduled settling across processesThe title tests manually call synchronization twice, while production settling also depends on ScoreThe implementation is cohesive and has substantial targeted coverage, with no verified merge blocker in the supplied changes. Remaining uncertainty concerns scheduler integration coverage and the two pending checks. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #3530
Branch:
3530/claude-opus-5-5-show-the-pr-state-as-one--20261113-2040-5clCommits: ✅ Changes committed (827d4a2)
AI Processing Completed
Execution Details:
Summary:
Two of my background wait commands were stopped by their time limits; neither needs restarting. They never fired because the process check in each one matched its own command line, so it always looked like the tests were still running.
They were only waiting on test runs I had already re-run and read directly, and those all passed. Nothing in my earlier report changes.
Detailed Logs:
23259e5a-f6da-4dd4-a1eb-ce2fa80be26eLog files stored at:
/usr/src/app/logs/executions/issue-3530-2026-11-13T21-19-50-362Z-conversation.json/usr/src/app/logs/executions/issue-3530-2026-11-13T21-19-50-362Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3530.
💡 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!