# plugin: attribute hook stats by name after reload · lucenx/signaltty

[View on GitCafe](https://git.cafe/lucenx/signaltty/commit/0bdd6704bc08659f582ef05a0ac5dee729b22508)

Repository: [lucenx/signaltty](https://git.cafe/lucenx/signaltty)

Visibility: public

Requested revision: 0bdd6704bc08659f582ef05a0ac5dee729b22508

Requested commit: 0bdd6704bc08659f582ef05a0ac5dee729b22508

Commit: 0bdd6704bc08659f582ef05a0ac5dee729b22508

Tree: 186678e64686c9933910022ffef2d4afac542e44

Author: Grok Bot

Committer: Grok Bot

## Message

```
plugin: attribute hook stats by name after reload

dispatch recorded runs/errors via plugin and hook indices captured at
spawn time. plugin.reload replaces that vec (and resets stats), so an
in-flight hook could credit a different package after reorder or
removal. Look up the live plugin by name and matching hook identity
instead.

```

## Parents

- [ce05ab1f171b07c1ce39945ab7fcf502ee2baeb7](https://git.cafe/lucenx/signaltty/commit/ce05ab1f171b07c1ce39945ab7fcf502ee2baeb7?format=markdown)

[Source at this commit](https://git.cafe/lucenx/signaltty/tree/0bdd6704bc08659f582ef05a0ac5dee729b22508?format=markdown)
