Enable the built-in `herdr` plugin by default in `clai2`

Merged
DS
1mo ago
+48-22

This pull request was posted by CLAI2 on behalf of David.

No linked issue; David requested and approved this follow-up to merged #11439.

Why we make these changes

Herdr reporting should work automatically in eligible managed terminal panes, without requiring users to enable the built-in plugin first.

[!WARNING]
Compatibility impact: Eligible Herdr panes that relied on the old disabled default begin reporting on upgrade.

Why this can ship in a minor release: This is a maintainer-approved default change in the 0.x CLAI2 CLI; its runtime guards and saved opt-outs are preserved.

Migration: Run /plugins disable herdr to keep reporting off. Notifications are unchanged.

New public surface

None.

User-visible behavior

Before: /plugins enable herdr is required. After: eligible Herdr panes report automatically; /plugins disable herdr opts out. Existing saved opt-outs stay disabled. Environment, socket, pane, terminal, and platform guards are unchanged. The separate notifications plugin is unchanged and is not automatically disabled.

Verification

  • 44 targeted tests passed: automatic activation and disable, saved opt-out, runtime guards, and built-in defaults.
  • Focused Pyright on four touched Python files; Ruff check/format; API compatibility against v2.62.0: passed.
  • Fresh tmux CLI with a fake Unix socket: automatic report with HERDR_ENV=1, no report with HERDR_ENV=0.
  • Isolated Review specialist on Luna: no findings on the pushed head.

What changes for existing users

Eligible Herdr panes report automatically unless explicitly disabled; saved opt-outs and notification behavior are preserved.

PR decisions

2026-10-27 · Await isolated review dispatch dependency · iter -

2026-10-27 · Review dispatch hold released · iter -

  • Decision: Proceed with isolated Review specialist on explicit light model after merging current upstream/main; prior hold superseded.
  • Why: David explicitly released the hold after PR 11569 merged and upgraded all CLAI2 processes. No review dispatch had been consumed.
  • Source: https://github.com/pydantic/pydantic-ai/pull/11569

2026-10-27 · pre-push review 1 of 3 at 5cb2676fbff111227b1d7719b7c1463df6836d83 · iter -

2026-10-27 · pre-push review 1 of 3 outcome at 5cb2676fbff111227b1d7719b7c1463df6836d83 · iter -

2026-10-27 · Acknowledge approved default compatibility impact · iter -

  • Decision: Replace the stale DEFAULT_PLUGINS API fingerprint with the exact approved guarded Herdr-default change; add compatibility impact warning and label.
  • Why: CI tests and coverage passed, but quality rejected the changed public tuple and flagged its prior hooks-only waiver as unused. No additional runtime change is needed.
  • Source: https://github.com/pydantic/pydantic-ai/actions/runs/40584669531

2026-10-27 · pre-push review 2 of 3 at a7676652f5fa573cd954821c7f28c37266617c9b · iter -

2026-10-27 · pre-push review 2 of 3 outcome at a7676652f5fa573cd954821c7f28c37266617c9b · iter -

2026-10-27 · No optional second opinion · iter -

Checklist

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration and release note, and an exact API-check waiver if the gate reports it.
  • PR title is fit for the release changelog.