explain-error-plugin icon indicating copy to clipboard operation
explain-error-plugin copied to clipboard

Feature: per-job opt-in/opt-out for automatic AI error explanation

Open shenxianpeng opened this issue 5 months ago • 0 comments

Background

PR #201 introduced a global admin toggle (enableAutoExplainOnFailure) that automatically explains all failed builds via a RunListener. This is sufficient for the initial use case, but @panicking raised a valid point in #202: the feature should also be configurable at the job level.

Problem

With only a global switch, there is no way to:

  • Opt out a specific noisy job when the global toggle is enabled (e.g. a flaky test job that fails frequently and would waste AI quota)
  • Opt in a specific job when the global toggle is disabled

Proposed Solution

The RunListener would check the job-level property first, falling back to the global setting when the property is absent or set to inherit.

Related

#202 (original feature request) PR #201 (global toggle implementation)

shenxianpeng avatar Jun 22 '26 08:06 shenxianpeng