CodePanel
reopen_finding

reopen_finding

The CodePanel MCP tool that reopens a dismissed finding, including one a later round reported again and left closed, and clears its dispute.

On this page›

reopen_finding brings a dismissed finding back to open, with its dispute cleared. Call it when you dismissed a finding and then found it was real, or when get_review lists it under suppressed and you disagree with keeping it closed. It needs the reviews:write scope, and any token with that scope may reopen, an agent's included.

When to call it

  • After a wrong dismissal: you called dismiss_finding and later learned the finding was right.
  • When a finding is suppressed: a dismissed finding that a later round reports again stays closed. get_review lists it under suppressed with who dismissed it, why and when. Reopen it if it is real after all.
  • Not for a finding you only rated down: a rating never closes a finding, so there is nothing to reopen.

Inputs

Input Type Required Description
findingId string no Finding id, from get_review or list_findings
repo string no Repository as owner/name
pr integer no Pull request number
ref string no The finding as the review names it, e.g. "F3"

It writes: the server marks it readOnlyHint: false and destructiveHint: true (it can change what is already there), so a client that asks before writes asks here.

Name the finding by findingId, or by repo, pr and ref (F4). The ref is ignored when findingId is given, and ref: "review" is refused. An unknown finding is a 404.

What it returns

id, ref, reopened and status. reopened: false, with nothing changed, means the finding was not dismissed. status was persisting in the recorded call. The next round that re-examines the finding closes it if it was fixed. The posted review comment isn't rewritten when you reopen; the next round shows it as open.

Examples

These responses come from a test account on a local backend. F4 had been closed with dismiss_finding and deferred.

Call
{ "repo": "codepanel-dev/web-app", "pr": 142, "ref": "F4" }
Result
{
  "id": "nn7bmyaaa5572n7cwez665991d8j71de",
  "ref": "F4",
  "reopened": true,
  "status": "persisting"
}

The id is the one list_findings gave for F4.

The same step without MCP

Surface Form
CLI codepanel findings reopen owner/name#123 F4, or with a bare <findingId> (CLI)
HTTP API POST /findings/reopen

No /feedback reply reopens a finding: rating it up leaves it closed. A person can use Undo dismiss on the review page.

What the server tells your agent

The description your agent reads when it lists the tools:

Reopen a dismissed finding. A finding dismissed earlier that a later round reports again stays closed, and get_review lists it under suppressed with who dismissed it, why and when; reopen it here when it is real after all. Name it by findingId, or by repo, pr and ref ("F3"). Reopening one that is not dismissed changes nothing (reopened: false).

Last updated