Repository navigation
Status: count plugins that fail to resolve as install failures - #358
Conversation
With other plugins resolving, the failure was only a warning, so capa status showed Installed and --strict exited 0. It is now recorded like a failed skill, and reported once instead of twice when every plugin fails.
PR Summary by QodoCount plugin resolution failures as install failures
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
resolvePlugins now returns failures alongside warnings. The install task and passthrough install use that list, so a warning from a plugin that resolved can't count as a failure because of its text.
Plugin resolve failures: structured list instead of text match
Summary
Found while verifying the v2.4.0 release (#351) locally. When one plugin failed to resolve and the others resolved,
capa installonly printed a warning. The failure wasn't recorded, socapa statusshowed "✓ Installed" and--strictexited 0.What changed
reportPluginResults(install-tasks/resolve-plugins.ts) takes over the result handling from the resolve-plugins task:capa statusthen reports "Installed, with problems" with the error,--strictexits 1, and the install summary counts it as failed. UnderonInstallError: stop, install exits non-zero at the end, as it does for a failed skill.resolvePlugins.Screenshots / logs
Release build, a project with five plugins where
glabfails on Windows (symlinks without Developer Mode):Before:
After:
Test plan
reportPluginResultstests: a partial failure is counted and reported once; all plugins failing returns false with one message; a clean resolve is untouched; stop mode records an error.statusandstatus --strictas shown above.bunx tsc --noEmit; the CLI suite has no assertion failures (only the known Windows EBUSY/EPERM temp cleanup).status.Checklist
bunx tsc --noEmitpasses🤖 Generated with Claude Code