worktrunk icon indicating copy to clipboard operation
worktrunk copied to clipboard

Bot says "Will approve once CI finishes" then goes dark

Open worktrunk-bot opened this issue 9 months ago • 1 comments

Problem

@worktrunk-bot frequently ends PR reviews with phrases like "Will approve once CI finishes" or "Will approve once CI is green", but then never follows up — the bot goes dark after the CI run completes.

This has happened on multiple PRs (e.g., #1146 where CI was green but no approval came).

Expected behavior

When the bot says it will approve after CI, it should either:

  1. Actually monitor CI and follow up with approval (or note failures), or
  2. Not promise future action it can't deliver — instead say something like "No issues found; CI is still running" and leave it at that.

Investigation needed

The issue-triager should look at recent cases where this happened to determine:

  • Is the bot being triggered again when CI completes, or does it only run once?
  • Is the skill/prompt encouraging this "will approve later" phrasing?
  • Should the pr-review or running-in-ci skill be updated to avoid promising follow-up actions the bot can't take?

cc @max-sixty

worktrunk-bot avatar Feb 22 '26 12:02 worktrunk-bot

Investigated this and found the root cause.

Why it happens: The claude-review workflow triggers on pull_request_target events (opened, synchronize, ready_for_review, reopened). It does not re-trigger when CI completes. So when the bot says "Will approve once CI finishes," there's no mechanism to bring it back — it goes dark.

What's in the skill: The pr-review skill's confidence-based verdict section correctly tells the bot to submit as COMMENT (not APPROVE) when CI is pending. But it didn't tell the bot not to promise follow-up, so the bot improvised phrases like "Will approve once CI finishes."

Example from #1146: The bot submitted 6 COMMENT reviews across multiple pushes, with at least two containing "Will approve once CI finishes" or "Will approve once CI is green" — none followed through.

Fix: PR #1158 adds explicit "Never promise follow-up actions" guidance to the pr-review skill, with good/bad phrasing examples. The bot should state review outcomes and CI status as facts rather than promises.

worktrunk-bot avatar Feb 22 '26 12:02 worktrunk-bot