GeezerVison is showing github.com — Fix PR action controls by Bl4ckBl1zZ · Pull Request #2898 · pingdotgg/t3code
Conversation
Bl4ckBl1zZ
commented
Jun 2, 2026
•
edited by macroscopeapp
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
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:
✨ 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
Comment @coderabbitai help to get the list of available commands and usage tips.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.

❌ 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.
|
|
hint: "Checks are still running.",
|
|
|
tone: "warning",
|
|
|
};
|
|
|
}
|
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.
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.
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)
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.
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
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.
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.
|