You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dashboard: project detection hardcodes .skillshare and misses --visible projects #437
Two dashboard handlers detect a project by statting <root>/.skillshare/config.yaml directly instead of going through internal/projectdir. A project initialised with skillshare init -p --visible (directory skillshare/) is therefore not recognised by those endpoints, while the CLI (which uses projectdir.Find) handles it.
Evidence (v0.25.0, aeaea40e)
internal/server/handler_projects.go:70
internal/server/handler_mcp.go:85
Correct resolution: internal/projectdir/projectdir.go:24-27 (Default / Visible), used e.g. in internal/hooks/plan.go
Also worth a look while there: internal/config/targets.go:614-621 (ProjectTargetDotDirs) only seeds .skillshare, not skillshare. Whether that causes an observable problem has not been verified.
Fix
Replace both os.Stat(filepath.Join(root, ".skillshare", "config.yaml")) calls with projectdir.Find / projectdir.ConfigPath, add a test with a visible project dir.
Found while researching #239; unrelated to that proposal.
Activity
fix(dashboard): detect a visible project directory