Skip to content

dashboard: project detection hardcodes .skillshare and misses --visible projects #437

Closed

Description

@runkids

Problem

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

  1. added
    bug
    on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions