GeezerVison is showing github.com — fix(server): refresh PR status from agent links by artieeg · Pull Request #7229 · pingdotgg/t3code
Conversation
artieeg
commented
Aug 16, 2026
•
edited by macroscopeapp
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
What Changed
- detect completed assistant messages containing GitHub, GitLab, Azure DevOps, or Bitbucket change request URLs
- refresh the authoritative remote VCS status immediately after detection so subscribed sidebars update without waiting for the polling interval
- avoid refreshes for streaming message chunks and cover URL detection plus reactor behavior with focused tests
Why
Remote pull request and merge request metadata normally refreshes on a 30-second interval. When an agent creates a change request and posts its URL, the sidebar can therefore remain stale even though T3 already has a reliable signal that remote state changed. The URL is used only as a refresh hint; the configured source-control provider remains the source of truth.
Closes #7228
Checklist
- This PR is small and focused
- I explained what changed and why
- Before/after screenshots are not applicable; this changes refresh timing without changing UI
- A video is not applicable; this changes refresh timing without changing interaction behavior
Implemented with gpt-5.6-sol via the Codex harness in T3 Code.
Note Low Risk
Adds an opportunistic VCS refresh on message completion with guarded regex matching and swallowed refresh errors; no auth or data-model changes.
Overview
When an agent finishes a non-streaming assistant message that includes a PR/MR URL, the sidebar can refresh remote VCS status right away instead of waiting on the ~30s poll.
Shared: adds containsChangeRequestUrl in @t3tools/shared/sourceControl with regexes for GitHub, GitLab, Azure DevOps, and Bitbucket change-request links, plus unit tests.
Server: CheckpointReactor handles thread.message-sent for completed assistant messages: if the message text matches, it resolves the thread workspace CWD and calls VcsStatusBroadcaster.refreshStatus (failures are logged, not thrown). Streaming deltas are ignored. A reactor test asserts refresh runs only after assistant.complete, not on delta alone.
Reviewed by Cursor Bugbot for commit 515e2ca. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Refresh PR status when a completed assistant message contains a change request URL
- Adds
containsChangeRequestUrl to packages/shared/src/sourceControl.ts, which matches GitHub, GitLab, Azure DevOps, and Bitbucket change request URLs using provider-specific regex patterns.
- Adds
refreshChangeRequestFromAssistantMessage in CheckpointReactor.ts that triggers a VCS status refresh via vcsStatusBroadcaster.refreshStatus(cwd) when a non-streaming assistant message contains a change request URL.
- Refresh is only triggered on
thread.message-sent events where the message role is assistant and streaming has completed — delta events are ignored.
Macroscope summarized 515e2ca.
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 Plus
Run ID: 4e34a8b2-c7e0-4a2b-ad1f-62dd2645eec4
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:
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved 515e2ca
Self-contained enhancement that wires up existing VCS status refresh when assistant messages contain PR/MR URLs. The change is well-tested, uses existing infrastructure, has proper error handling, and carries low risk.
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.
|
Superseded by #9125, which refreshes missing PR associations after agent turns (broader than URL detection) and landed on main.
|
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:M
30-99 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
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.
|