gsxdsm
2758dde301
FN-7777: fix skill content/file routes double-decoding skill IDs
Fixes Skills view showing "Skill not found" for every skill, including built-in Fusion skills, by removing a redundant URL decode in the content/file lookup routes.
- register-agent-skills-routes.ts: stop calling decodeURIComponent on req.params.id in the /skills/:id/content and /skills/:id/file handlers since Express 5 already decodes route params once; a second decode corrupted encoded source segments so IDs no longer matched computeSkillId's discovery output
- Added FNXC:Skills comments documenting the Express 5 single-decode behavior and why re-decoding breaks plugin/npm/path source IDs
- routes-skills.test.ts: added regression coverage for exact-ID content/file lookups across skill sources
- Added a patch changeset describing the fix for release notes
Files changed:
.changeset/fn-7777-skills-content-not-found.md | 7 +
.../dashboard/src/__tests__/routes-skills.test.ts | 144 ++++++++++++++++++++-
.../src/routes/register-agent-skills-routes.ts | 26 ++--
3 files changed, 159 insertions(+), 18 deletions(-)
Fusion-Task-Id: FN-7777
Fusion-Task-Lineage: dc190b9a-ac5c-4f8b-9d65-11bfd5598db2
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-10 07:37:18 -07:00
..
2026-07-09 23:46:21 -07:00
2026-07-08 16:27:10 -07:00
2026-07-10 02:21:01 -07:00
2026-07-10 07:37:18 -07:00
2026-07-09 23:46:21 -07:00
2026-07-08 16:27:10 -07:00
2026-07-10 02:21:01 -07:00
2026-07-10 01:15:40 -07:00
2026-07-08 16:27:10 -07:00
2026-07-09 21:32:59 -07:00
2026-06-08 15:19:27 -07:00
2026-07-08 16:27:10 -07:00