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(server): refresh PR status from agent links by artieeg · Pull Request #7229 · pingdotgg/t3code

Conversation

@artieeg

@artieeg artieeg commented Aug 16, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

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

Copy link
Copy Markdown

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.

All reactions
@artieeg
fix(server): refresh PR status from agent links
515e2ca
@coderabbitai

coderabbitai Bot commented Aug 16, 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 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:

  • 🔍 Trigger review

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list. labels Aug 16, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Aug 16, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge

juliusmarminge commented Sep 4, 2026

Copy link
Copy Markdown
Member

Superseded by #9125, which refreshes missing PR associations after agent turns (broader than URL detection) and landed on main.

All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge juliusmarminge closed this Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

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.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Refresh sidebar change request status when agents post PR links

Uh oh!

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

2 participants

@artieeg @juliusmarminge
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.