1 Commits
Author SHA1 Message Date
0c47755526 Support GitHub branch plugin installation and mirror fallback (#3152)
* Install GitHub plugins from pinned branches with mirror fallback

Co-authored-by: multica-agent <github@multica.ai>

* fix(plugin): resolve GitHub archive temp root and re-probe refs before branch install

Symlinked temp dirs (macOS /var, Windows 8.3 paths) made the manifest
containment check fail; install now resolves the branch head freshly
instead of trusting the 10-minute ref cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix(plugin): let GitHub source probes wait for a workspace DNS slot

Probing direct + 3 mirrors resolves 4 hosts at once, but the per-workspace
DNS pool admits 2, so /plugins/github/refs returned 429 for every
WebUI user. Retry the rejected probe until its timeout instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* feat(web): pick a branch when installing plugins from GitHub

Release / Branch tabs in the GitHub install popover. Branches come from
/plugins/github/refs (works through mirrors when api.github.com is
blocked), with search, the URL's branch or the default branch preselected,
an editable plugin directory and the probed download source shown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix(web): ignore GitHub refs payloads without a branch list

A refs response missing `branches` crashed the add-extension page
("branches is not iterable"), which broke the GitHub quota e2e test.
Treat such a payload as unavailable and keep the release flow working.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:53:15 +08:00