Skip to content

fix: pr-bug-scan findings from #1424 - #1465

Merged
buf0-bot[bot] merged 1 commit into
mainfrom
bot/pr-bug-scan-1424-1778016114
May 5, 2026
Merged

buf0-bot[bot] merged 1 commit into
mainfrom
bot/pr-bug-scan-1424-1778016114

Conversation

@buf0-bot

@buf0-bot buf0-bot Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

Automated fix-PR from pr-bug-scan for parent #1424.

Fixer summary: Gate gh retries on idempotency (auto-detected from argv/-X/mutation), key parent-field probe by (owner,ownerType), accept 'to an' in not_found classifier, and replace bulk label PUT with parallel single-label DELETEs.
Typecheck: skipped

Findings addressed

  • ✅ [high] src/main/git/runner.ts — Transient-error retry duplicates non-idempotent mutations
  • ✅ [medium] src/main/github/project-view.ts — parentFieldRetried is process-global, leaks across owners/tokens
  • ✅ [low] src/main/github/project-view/internals.ts:178 — not_found classifier misses GitHub's to an phrasing
  • ✅ [low] src/main/github/project-view/mutations.ts — updateIssueBySlug bulk-remove has a label TOCTOU

This PR was generated by the pr-bug-scan automation and reviewed by an agent reviewer. Human approval required before merge.

Gate gh retries on idempotency (auto-detected from argv/-X/mutation), key parent-field probe by (owner,ownerType), accept 'to an' in not_found classifier, and replace bulk label PUT with parallel sing
@buf0-bot
buf0-bot Bot force-pushed the bot/pr-bug-scan-1424-1778016114 branch from 03a5e97 to 2c62c3e Compare May 5, 2026 22:42
@buf0-bot
buf0-bot Bot merged commit dd1c940 into main May 5, 2026
2 checks passed
nwparker added a commit that referenced this pull request May 6, 2026
…1514)

Closes the race where siblings awaiting parentFieldProbeInFlight wake
between resolveProbe() and the deferred parentFieldRetriedByOwner.add()
in the outer block, see parentFieldProbeInFlight=null +
parentFieldRetriedByOwner without scopeKey, and issue duplicate
with-parent probes.

Originally raised in #1456, but that PR branched off pre-#1465 main and
its diff against current main reverted #1465's owner-keyed parent-field
caches back to global flags. This re-applies the fix on current main.

Refs #1456

Co-authored-by: nwparker <[email protected]>
AmethystLiang pushed a commit that referenced this pull request May 8, 2026
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Gate gh retries on idempotency (auto-detected from argv/-X/mutation), key parent-field probe by (owner,ownerType), accept 'to an' in not_found classifier, and replace bulk label PUT with parallel sing

Co-authored-by: orca-bug-scan-bot <[email protected]>
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…tablyai#1514)

Closes the race where siblings awaiting parentFieldProbeInFlight wake
between resolveProbe() and the deferred parentFieldRetriedByOwner.add()
in the outer block, see parentFieldProbeInFlight=null +
parentFieldRetriedByOwner without scopeKey, and issue duplicate
with-parent probes.

Originally raised in stablyai#1456, but that PR branched off pre-stablyai#1465 main and
its diff against current main reverted stablyai#1465's owner-keyed parent-field
caches back to global flags. This re-applies the fix on current main.

Refs stablyai#1456

Co-authored-by: nwparker <[email protected]>
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants