Skip to content

fix(install): resolve custom install failures and missing agent-metadata#297

Open
darrenhinde wants to merge 2 commits intomainfrom
fix/installer-paths
Open

fix(install): resolve custom install failures and missing agent-metadata#297
darrenhinde wants to merge 2 commits intomainfrom
fix/installer-paths

Conversation

@darrenhinde
Copy link
Copy Markdown
Owner

Summary

  • Fix custom install mode ([BUG] Install fails (CachyOS, fish) #237): Plural category names (contexts, agents) were breaking all component resolution in custom install. Added explicit singular mapping via case statement.
  • Add agent-metadata.json to registry ([BUG] missing ~/.config/opencode/config/agent-metadata.json #277): Config file existed on disk but was missing from registry and all profiles. Added as agent-metadata-config to avoid ID collision with existing context entry.
  • Registry data quality: Fixed 3 duplicate context IDs, 5 description artifacts, missing dependencies fields, self-referential dependency, legacy duplicate subagents block, and schema version mismatch.
  • Install script hardening: Added numeric input guards, removed dead variables, fixed double function calls, added non-.md fallback to get_component_info.

Test plan

  • Run bash -n install.sh — syntax check passes
  • Run jq . registry.json > /dev/null — JSON valid
  • Run REGISTRY_URL="file://$(pwd)/registry.json" bash install.sh with custom mode — verify components install correctly
  • Run quick install with essential profile — verify agent-metadata.json is listed and installed
  • Verify list_components shows config section

🤖 Generated with Claude Code

darrenhinde and others added 2 commits March 25, 2026 00:18
…ata (#237, #277)

Fix custom install mode breaking all components by mapping plural category
names to singular types. Add agent-metadata.json to registry config section
and all profiles. Clean up registry data quality issues including duplicate
context IDs, description artifacts, and schema inconsistencies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…te trap

Fix get_install_path misrouting root-level config files (env.example,
README.md) into INSTALL_DIR instead of project root. Fix custom install
display counter resetting per category. Remove duplicate INT/TERM trap.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant