update agents loses the agent's source, so later updates never arrive
After the first update, an agent's source is rewritten to /agents/<name>.md (type unknown-subdir). From then on, check agents always reports up_to_date and updates never come through.
skillshare 0.28.3 on Arch
- Install an agent from a repo:
skillshare install github.com/you/repo --kind agent --all -g
skillshare list agents --json -g # source: github.com/you/repo/agents/demo.md
- Push a change to agents/demo.md, then update:
skillshare update agents --all -g # gets the change
skillshare list agents --json -g # source: /agents/demo.md
- Push another change:
skillshare check agents --json -g # up_to_date
I expected the source to stay github.com/you/repo/agents/demo.md, so the second change would show up.
Thanks for the clear repro, it led straight to the cause.
After an update, skillshare wrote the agent's source back without its repository, so check had nothing to compare against. #778 fixes that: the source now stays exactly as install recorded it, and later changes come through. It will ship in the next release.
Agents already updated once still have the broken source, so please reinstall them after upgrading:
skillshare install github.com/you/repo --kind agent --all --force -g
If anything still looks off, let me know here.