The user-facing skill list endpoint relied on the picker contract of
ListSkillsForListingScoped, which intentionally returns disabled rows so
admin pickers can render them as greyed-out chips. The user-facing list
should not surface disabled skills at all — the agent task-creation UI
has no use for them — so filter !Enabled in the handler.
The repo behavior is unchanged so admin / team callers keep their
greyed-chip view.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ListActiveSkillsScoped / ListActivePluginsScoped now include
IsOrphanEQ(false) alongside IsDeletedEQ(false) + EnabledEQ(true).
Orphaned skills/plugins (parent repo soft-deleted, or the name
disappeared from the remote source) drop out of dispatch so deleted
repos stop bleeding into agent tasks.
The legacy ListActiveSkills / ListActivePlugins paths are deliberately
unchanged — TestListActiveSkills_KeepsOrphans codifies the "explicit
user pick wins, orphans allowed" semantic and task.go uses the Scoped
variants anyway. Added regression tests for both scoped paths.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
SwitchModel path now passes includeRules=false so rule ConfigFiles are
not re-delivered when switching models; Create path passes true to keep
the original behavior. Tests updated to match the new signature.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
OpenCode discovers skills from cfg.skills.paths (skill/index.ts), but the
template only shipped instructions + plugin paths. Point skills.paths at the
on-VM .ai-ready/skills dir so unpacked skills are auto-discovered. ${HOME}
is expanded by the agent (os.ExpandEnv over the whole config body).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Allow the agent to run as a non-root user by replacing the hardcoded
/tmp/codingmatrix-project-tpl base with ${HOME}/.codingmatrix/project-tpl.
The agent expands the env var at runtime via os.ExpandEnv.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>