Repository navigation
Description
Bug Description
The skills marketplace loader checks for marketplaces/default.json and returns [] if it is absent before attempting manifest discovery (openhands-agent-server/openhands/agent_server/skills_service.py:706-738).
The current OpenHands/extensions repository uses .plugin/marketplace.json; its marketplaces/ directory contains large-codebase.json and openhands-extensions.json, not default.json. The plugin marketplace loader already handles this correctly by calling Marketplace.load(repo_path) first (plugins_service.py:331-357).
As a result, a cold /skills/marketplace load can be blank while /plugins/marketplace loads the same repository successfully. The skills path also caches empty failures for the full TTL, while the plugin path deliberately does not.
Expected Behavior
Skills and plugins should derive their views from the same successfully fetched and parsed marketplace snapshot, using manifest discovery first and the explicit path only as fallback.
Actual Behavior
An independent, self-contained reproducer is posted in the issue comments. Save
it as /tmp/repro_4665.py, then run:
git clone --depth 1 https://github.com/OpenHands/extensions.git /tmp/openhands-extensions-repro-4665
uv run python /tmp/repro_4665.pyOn SDK commit bc5dfc50d, it exercises a fresh real OpenHands/extensions clone at 39fc25a, the actual Git cache, Marketplace loader, skills service, and filesystem; no mocks and prints:
manifest_plugins=64
default_marketplace_exists=False
service_catalog_entries=0
Suggested Implementation
Add one small shared marketplace snapshot loader/cache backed by Marketplace.load. Fetch/parse once, cache only successful snapshots, and let skills/plugins derive their distinct response shapes while computing installation state fresh.
Acceptance Criteria
- Skills load from the real
.plugin/marketplace.jsonlayout whenmarketplaces/default.jsonis absent. - Custom explicit marketplace paths remain supported as fallback.
- Skills and plugins within the TTL use the same fetched/parsed snapshot.
- Transient fetch/parse failures do not cache an empty catalog.
- Existing plugin-over-skill name precedence, plugin filtering, installed-state freshness, and REST schemas remain unchanged.
Version
Current main at 6d3881035. Repository layout was independently verified through the GitHub API on 2026-08-27; existing issue search found no duplicate.
Activity
github-actions commentedon Aug 27, 2026
✅
ready-for-devlabel appliedThis issue meets the readiness criteria and is ready for contribution.
A contributor can now open a PR that links this issue (
Fixes #<number>).This is an automated check — no AI was used to generate this comment.
Epochex commentedon Aug 31, 2026
I have a tested draft patch in #4785. This issue is currently blocked by the repository''s
ready-for-devgate because the body predates the exact### Actual Behaviorheading requirement.Could the author or a maintainer add this section to the issue body?
Actual Behavior
On current main, run
uv run pytest tests/agent_server/test_marketplace_snapshot.py::test_manifest_discovery_precedes_explicit_path -q(test included in #4785) against a checkout with.plugin/marketplace.jsonbut nomarketplaces/default.json. The skills service returns an empty catalog before attempting manifest discovery, while the plugins path can load the same marketplace.The existing Acceptance Criteria section already satisfies the other readiness requirement.
enyst commentedon Sep 9, 2026
Independent reproduction
Verified on SDK commit
bc5dfc50dusing a fresh real OpenHands/extensions clone at 39fc25a, the actual Git cache, Marketplace loader, skills service, and filesystem; no mocks.This confirms the report is a bug rather than a prospective enhancement.
Save this as
/tmp/repro_4665.py:Run:
Observed:
enyst commentedon Oct 9, 2026
I'm an AI agent based on Opus 5.5, helping Engel Nyst (@enyst) with project maintenance.
This still reproduces on
mainat 2804c12. The Agent Server feature map in #5621 drives it end to end on a fresh server and keeps it as a known-bug bullet (F25.marketplace-public), so once a fix lands the map reports an unexpected pass:What it observes:
The route returns 200 with
{"skills": []}. The server logsMarketplace file not found: <cache>/public-skills/marketplaces/default.json. Calls within the next 300 seconds return the cached empty list without reading the repository again.It is listed with the other bugs from the mapping pass in the umbrella issue, #5653.
Generated by Claude Code
enyst commentedon Oct 11, 2026
Related cache case from #5653:
F25.marketplace-stale-cacheshowsGET /api/skills/marketplaceretaining its five-minute cached catalog, including an empty result, afterPOST /api/skills/synchas brought new entries into the clone.The earlier map comment here already mentions the cached empty catalog. The additional case is that sync does not invalidate that catalog, so correcting the manifest layout alone need not make new entries visible immediately. This is related to the empty-marketplace report here, but has a separate cache-invalidation cause.
Posted by Codex on behalf of @enyst.
enyst commentedon Oct 13, 2026
I'm an AI agent (Claude Code) helping Engel Nyst (@enyst) with project maintenance.
#5767 proposes a minimal fix for the manifest-layout part:
_fetch_catalog_entriesnow triesMarketplace.load(which finds.plugin/marketplace.json) first and readsmarketplaces/default.jsononly as a fallback, as the plugin catalog already does. Against a fresh clone ofOpenHands/extensions, the map bulletF25.marketplace-publicgoes fromxfailx2 on main toxpassx2 on the branch (73 catalog entries), and the PR drops its known-bug marker.On the acceptance criteria:
.plugin/marketplace.jsonwithoutdefault.json: done in the PR, with a unit test.A maintainer needs to decide the scope. I implemented the smaller loader-order fix because it fixes the empty Marketplace tab with no new shared state. The empty-result caching (and sync not clearing the catalog) is the separate
F25.marketplace-stale-cachecase noted above and will get its own fix. The alternative is the shared, success-only snapshot this issue suggests, which would also cover the two remaining criteria but touches both services. #4785 (another contributor) is linked here; I did not read it, to keep the fix independent, so a maintainer should choose between the two approaches or take this one and keep the shared snapshot as a follow-up.Generated by Claude Code