agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

Community index truncated (FIXED) New issue: No stars on plugins

Open DoThatKarma opened this issue 2 months ago • 3 comments

Community index truncated: generated-index release contains only 7 of 179 plugins

Summary

The Plugin Hub's Browse tab currently shows only 7 plugins. Investigation shows the published community index (generated-index release asset index.json) contains only 7 entries, while the repo's plugins/ directory contains 179 plugins. Everyone's Plugin Hub is affected — this is not a local configuration issue.

Evidence

Check Result
Plugin folders in repo (plugins/) 179
Plugins in published index.json (release asset) 7 (file is only ~6 KB)
Plugins in index vs. plugins touched by recent workflow runs Exact match — the 7 index entries are exactly the plugins merged on Sep 8 (5× file_browser_* from @3clyp50 PRs #524–#538, plus sem_review_loop and tree_ring_memory from @TerminallyLazy)

The 7 plugins currently in the index:

  • file_browser_ftps, file_browser_s3, file_browser_smb, file_browser_ssh, file_browser_webdav
  • sem_review_loop
  • tree_ring_memory

Likely root cause

The Generate Plugin State workflow appears to have rebuilt the index from an empty base instead of merging into the existing one:

  1. The workflow step "Download current index.json (best effort)" tolerates a failed download (HTTP 404 → None) and lets the job continue.
  2. The sync step then writes a new index containing only the plugins touched by that run's diff.
  3. The step "Publish index.json to Release (replace asset)" replaces the release asset — so the truncated index overwrites the good one.
  4. The scheduled "Update Index Stars & Repo Stats" cron (runs every few hours) re-publishes whatever it downloads, so the truncation persists until the index is restored.

Timeline supporting this: runs #224–#234 on Sep 8 (all "success") merged the file_browser/sem_review_loop/tree_ring_memory PRs, and the release asset was subsequently replaced (last by the stars-cron at 2026-09-09 06:02 UTC) with the 7-plugin version.

Impact

  • Plugin Hub Browse tab shows only 7 plugins for all users; ~172 community plugins are invisible.
  • Installing plugins via Git URL still works normally (UI Install tab / plugin_install API) — unaffected by the broken index.
  • Install via ZIP also unaffected.

Suggested fixes

  1. Restore the index: rebuild the full index from plugins/ (179 entries) and re-publish the generated-index release asset. The repo's scripts/sync_plugin_state.py appears capable of a full rebuild.
  2. Make the download step fail hard: the "Download current index.json (best effort)" step should fail the job when the current index cannot be downloaded (or when the downloaded index is empty / dramatically smaller than expected), instead of continuing and rebuilding from scratch. A silent 404 should never be able to wipe the published index.
  3. Optionally: sanity-check before publishing — if the new index contains significantly fewer plugins than the previous asset (e.g. < 50% of repo plugin folders), abort the publish.

Environment

  • Observed: Sep 8–9, 2026 (index asset replaced 2026-09-09T06:02:09Z, 6114 bytes, 7 plugins)
  • Affects: Plugin Hub Browse tab in Agent Zero (all instances fetching the generated-index release)

Related: #543 (same truncation reported — this comment adds root-cause analysis and timeline).

DoThatKarma avatar Sep 09 '26 11:09 DoThatKarma

Thank you @DoThatKarma for reporting this!

I’ve rebuilt and republished the index, and verified that all 175 eligible plugins are included again. We’ll now harden the GitHub Actions workflows to prevent this from happening again.

They're 175 and not 179 because these 4 plugins count as blocked:

  • _example1 — reserved example.
  • codex_provider — blocked.
  • a0-llmfallback — missing index.yaml.
  • agent0-terminal — missing index.yaml.

Thanks again, Alessandro

3clyp50 avatar Sep 09 '26 11:09 3clyp50

Thank you @DoThatKarma for reporting this!

I’ve rebuilt and republished the index, and verified that all 175 eligible plugins are included again. We’ll now harden the GitHub Actions workflows to prevent this from happening again.

They're 175 and not 179 because these 4 plugins count as blocked:

* `_example1` — reserved example.

* `codex_provider` — blocked.

* `a0-llmfallback` — missing `index.yaml`.

* `agent0-terminal` — missing `index.yaml`.

Thanks again, Alessandro

Thanks for the promptly fix! Love the work you guys put in :)

DoThatKarma avatar Sep 09 '26 11:09 DoThatKarma

Thank you @DoThatKarma for reporting this!

I’ve rebuilt and republished the index, and verified that all 175 eligible plugins are included again. We’ll now harden the GitHub Actions workflows to prevent this from happening again.

Iam sorry @3clyp50 But now the Plugin Hub doesnt show Stars from any of the Repos that you added back in. Only the plugins that didnt go away have any stars!

DoThatKarma avatar Sep 09 '26 12:09 DoThatKarma