Skip to content

feat: agents can wait on pull request CI and review feedback - #3

Open
flamboh wants to merge 1 commit into
mainfrom
async-ci-pr-monitoring
Open

flamboh wants to merge 1 commit into
mainfrom
async-ci-pr-monitoring

Conversation

@flamboh

@flamboh flamboh commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Note

🤖 Claude Opus 5.5 on behalf of Oliver

ELI5

An agent can now say "tell me when CI finishes" and stop working. T3 Code keeps an eye on the pull request and wakes the agent back up when checks fail, finish, or a reviewer leaves feedback.

Problem

Agents waiting on CI either burn a turn polling gh or end the turn and forget. There was no durable way to resume a thread when a pull request changes.

Implementation

  • watch_pull_request / cancel_pull_request_watch MCP tools register one-shot watches for check_failed, checks_finished, and review_feedback.
  • Watches live in a plain service table (pull_request_watches, migrations 056-057), polled once a minute on the shared scheduler. Matches coalesce for 15s, freeze a payload, and deliver it as a server notification message with stable command/message ids so restarts never duplicate delivery.
  • Pending watches appear in the thread's background-task roster, so the thread reads as waiting. Web and mobile show a waiting notice with a cancel action, gated on the new pullRequestWatches capability.
  • GitHub only for now; other hosts report unsupported.

Built with Claude Opus 5.5 in Claude Code (T3 Code).

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Sep 22, 2026
@github-actions

Copy link
Copy Markdown

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for e5b97c7.

This comment will update automatically after the next completed run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant