Skip to content

review-pr: empty dismiss message instruction causes API fumbling (3 retries) #1371

Closed

Description

@worktrunk-bot

Problem

The review-pr skill (Step 5.2) instructs the bot to dismiss its approval with an "empty dismiss message":

Dismiss the bot's approval if one exists (empty dismiss message).

However, the GitHub API rejects empty dismiss messages with a 422 validation error. This causes the bot to fumble through multiple retry attempts before discovering that a non-empty message is required.

Evidence

Run 22826195279 (claude-review on PR #1369):

The bot needed 3 attempts to dismiss its approval:

  1. gh api .../dismissals -f message="" -f event="DISMISS" → 404 (wrong HTTP method)
  2. gh api .../dismissals -X PUT -f message="" → 422 (empty message rejected)
  3. gh api .../dismissals -X PUT -f message="CI failed — completion snapshots need updating" → success

The third attempt worked only because the bot guessed that a non-empty message was needed.

Root Cause

Line 390 of .claude/skills/review-pr/SKILL.md says "(empty dismiss message)" but the GitHub Pull Request Review Dismissal API requires a non-empty message field.

Fix

Update the skill to instruct the bot to provide a short summary message when dismissing, instead of an empty string.

Activity

  1. added
    claude-behavior
    on Mar 8, 2026
  2. added a commit that references this issue on Mar 8, 2026
    1ace197
  3. added a commit that references this issue on Mar 8, 2026
    3bee41f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claude-behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions