GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix PR action controls by Bl4ckBl1zZ · Pull Request #2898 · pingdotgg/t3code

Conversation

@Bl4ckBl1zZ

@Bl4ckBl1zZ Bl4ckBl1zZ commented Jun 2, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Summary

  • Open View PR actions directly in the browser.
  • Let mergeable PRs with pending checks arm the quick action as Merge, then send the merge prompt on the next click.
  • Archive merged PR threads immediately from the Merged quick action.

Checks

  • bun fmt
  • bun lint
  • bun typecheck
  • bun run test src/components/GitActionsControl.logic.test.ts
  • bun run test:browser src/components/GitActionsControl.browser.tsx

Note

Medium Risk
Changes user-visible git/PR behavior and thread archiving in the header; mistakes could send wrong prompts or archive threads unexpectedly, though logic is heavily unit/browser tested.

Overview
Git/PR controls now derive quick actions and menu state from richer VCS/PR metadata (merged, conflicting, behind base, checks, mergeable), with new paths like Rebase / pull, Update from base, Resolve conflicts, and Merge plus visual tones.

GitActionsControl routes most git/PR actions through buildGitAgentPrompt and the composer (onSubmitPrompt or draft staging) instead of only running stacked git commands; conflicting PRs submit merge-resolution prompts directly when a submit handler is provided.

Merged PR threads use a two-step quick action (Merged → Archive) that calls archiveThread; browser and logic tests cover conflict prompts, archive arming, and the updated action matrix (including preferring pull when dirty and behind upstream).

Reviewed by Cursor Bugbot for commit 7a5f3a8. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Fix PR action controls to handle merged, conflicting, and behind-base states

  • resolveQuickAction in GitActionsControl.logic.ts now covers merged PRs ('Merged'), conflicting PRs ('Resolve conflicts' via AI prompt), behind-base branches ('Rebase / pull' or 'Update from base'), and check-pending states with progress labels.
  • buildMenuItems enables 'View PR' even while busy, shows 'Merged' for merged PRs, and disables 'Push' and 'Create PR' when the branch is behind its base.
  • GitActionsControl.tsx routes most git workflow actions (commit, push, create PR, pull, conflict resolution) through AI-generated prompts when USE_AGENT_PROMPTS_FOR_GIT_ACTIONS is true, and adds a two-click safety for the 'Archive' button on merged PRs.
  • A new buildGitAgentPrompt function assembles structured AI prompts from current git status, PR state, checks, and selected files.
  • Behavioral Change: labels change from 'Commit & push' to 'Commit and push' and from 'Sync ref' to 'Rebase / pull'; many actions now submit AI prompts instead of executing git commands directly.

Macroscope summarized 7a5f3a8.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Bl4ckBl1zZ
Fix PR action controls
7a5f3a8
@coderabbitai

coderabbitai Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 1ca12514-334e-4a1c-a565-964ec039a521

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands and usage tips.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the vouch:unvouched Author is not yet trusted in the VOUCHED list. label Jun 2, 2026
@Bl4ckBl1zZ Bl4ckBl1zZ closed this Jun 2, 2026
@github-actions github-actions Bot added the size:XL 500-999 changed lines (additions + deletions). label Jun 2, 2026
cursor[bot]
cursor Bot reviewed Jun 2, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7a5f3a8. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/GitActionsControl.logic.ts
hint: "Checks are still running.",
tone: "warning",
};
}

@cursor cursor Bot Jun 2, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Inverted boolean logic for pending checks disabled state

High Severity

The disabled and kind fields use inverted logic. When isPrWaitingOnChecks(pr) is true (PR is mergeable with pending checks and no failures), the code sets disabled: !true = false and kind: "open_pr". The corresponding test asserts disabled: true and kind: "show_hint" for this exact scenario. The negation operator on disabled is backwards, and the ternary for kind has its branches swapped.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 7a5f3a8. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/GitActionsControl.tsx
),
);
return;
}

@cursor cursor Bot Jun 2, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Merged quick action prompt bypasses two-click archive arming

High Severity

quickActionPromptIntent returns "archive_merged_thread" when label === "Merged", causing runQuickAction to call promptAi and return immediately. This completely bypasses the isMergedQuickAction two-click arming logic below it, which transitions from "Merged" → "Archive" → calls archiveThread. The browser test "requires a second click before archiving" will fail because the first click sends an AI prompt instead of arming the button.

Additional Locations (1)
  • apps/web/src/components/GitActionsControl.tsx#L400-L404
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 7a5f3a8. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@macroscopeapp

macroscopeapp Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs human review

This PR introduces significant new capabilities including AI-driven git action prompts and PR merge status handling. Two high-severity unresolved review comments identify logic bugs: inverted boolean handling for pending checks and control flow that bypasses the two-click archive safety mechanism.

You can customize Macroscope's approvability policy. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@only21mil only21mil mentioned this pull request Oct 23, 2026
fix(clients): offer Commit when the branch is behind upstream #24117
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cursor cursor[bot] cursor[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XL 500-999 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Bl4ckBl1zZ
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.