Skip to content

🐞 Show existing PR status and prevent duplicate drafts - #861

Merged
JFWooten4 merged 2 commits into
mainfrom
chipcutter
Dec 4, 2026
Merged

JFWooten4 merged 2 commits into
mainfrom
chipcutter

Conversation

@kefania-pony

@kefania-pony kefania-pony Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Show a check badge over New PR when the selected branch already has an open PR, a GitHub draft PR, an active Kefania drafting session, or a previously used starting base. Clicking the badged button explains why a new PR cannot be started and offers Open Pull Request when a valid PR link is available.

  • Replace the silent disabled state introduced in 🐛 Gate New PR on a fresh starting base #254 with an actionable warning while preserving the fresh-starting-base requirement and other eligibility restrictions.
  • Extend the dedicated PR workspaces from 🔩 Run PR sessions in dedicated VS Code workspaces #282 with empty, repository- and branch-scoped status markers in the checkout’s Git administrative directory. Hand the marker to the receiving extension host, renew it every 30 seconds while drafting is active, and disregard it after two minutes without renewal. Remove markers on closing, publication, and drafting failures without sharing draft content between hosts.
  • Check for existing open PRs, including drafts on other base branches, before allowing the pending-commit workflow introduced in 🐛 Let New PR open while commit titles are pending #346 to proceed. Also check the source repository when targeting a fork’s upstream.
  • Recheck active drafting status every 15 seconds and refresh eligibility on window focus without clearing the last known result during a same-branch recheck. Discard stale results when the selected branch or repository changes.

Regression tests cover duplicate warnings, draft-to-open-PR transitions, pending-commit eligibility, and marker handoff and disposal. The originating implementation session reports that the PR and bulk-merge suites passed; the live VS Code interface remains unverified.

🔗 Source

Online · Local · Desktop

JFWooten4 and others added 2 commits December 4, 2026 10:12
Co-authored-by: Codex <noreply@openai.com>
Preserve main's stopped-draft status and already-merged handling alongside the duplicate-draft marker lifecycle. Stop renewing markers for stopped drafts, dispose the marker when preparation ends, and retain both sets of regression tests.

Co-authored-by: ChatGPT 6.2 <noreply@openai.com>
@JFWooten4
JFWooten4 merged commit d0832bb into main Dec 4, 2026
46 of 48 checks passed
@JFWooten4
JFWooten4 deleted the chipcutter branch December 4, 2026 20:05
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.

1 participant