fix: resolve PROJECTS.md to correct USER/PROJECTS/ path in Telos dashboard#1328
fix: resolve PROJECTS.md to correct USER/PROJECTS/ path in Telos dashboard#1328rfdiazpr wants to merge 1 commit into
Conversation
…board PROJECTS.md lives at PAI/USER/PROJECTS/PROJECTS.md, not inside PAI/USER/TELOS/. Both getAllTelosData() and the file save route were looking for it under TELOS_DIR, causing the file to return empty/missing when opened from the dashboard. Add resolveTelosFilePath() helper that routes PROJECTS.md to its correct location. Also aligns the TELOS_DIR constant in save/route.ts with telos-data.ts (was pointing to the old 'life/telos' path).
rfdiazpr
left a comment
There was a problem hiding this comment.
Daniel,
This was suggested to me by PAI.
The bug (PROJECTS.md served from wrong path) is a PAI infra bug. You could file an issue or PR at danielmiessler/Personal_AI_Infrastructure describing the TELOS_DIR vs USER/PROJECTS/ mismatch so others who build a Pulse dashboard hit the right path
The upstream has the same bug PROJECTS listed as a core file but getAllTelosData only reads from TELOS_DIR. The fix applies there too.
|
Hey @rfdiazpr, thank you for the PR and the work that went into it. We're changing how LifeOS ships: from a full We're closing it for that reason, not because the idea was wrong. If the need still stands against the new model, we'd love a fresh PR once it lands. Thanks again for contributing. |
Problem
PROJECTS.mdlives atPAI/USER/PROJECTS/PROJECTS.md, not insidePAI/USER/TELOS/. BothgetAllTelosData()intelos-data.tsand the save route inapi/file/save/route.tswere resolving it throughTELOS_DIR, so clicking a project card in the Telos dashboard returned an empty/missing file.Fix
Add a
resolveTelosFilePath()helper in both files that routesPROJECTS.mdrequests toUSER/PROJECTS/PROJECTS.mdand all other files throughTELOS_DIRas before.Also aligns the
TELOS_DIRconstant insave/route.tswithtelos-data.ts— it was still pointing to the oldlife/telospath.Files changed
Releases/v2.5/.claude/skills/Telos/DashboardTemplate/Lib/telos-data.tsReleases/v2.5/.claude/skills/Telos/DashboardTemplate/App/api/file/save/route.ts