Skip to content

fix: pass squadFolder to GitHubIssuesService for .squad workspaces#68

Merged
csharpfritz merged 1 commit intocsharpfritz:mainfrom
danielscholl:fix/squad-folder-issues-service
Feb 23, 2026
Merged

fix: pass squadFolder to GitHubIssuesService for .squad workspaces#68
csharpfritz merged 1 commit intocsharpfritz:mainfrom
danielscholl:fix/squad-folder-issues-service

Conversation

@danielscholl
Copy link
Contributor

Problem

Workspaces using the new .squad/ folder structure (instead of legacy .ai-team/) show 0 issues, 0 milestones, and all members idle on the Squad Dashboard — even when the GitHub repo has issues with squad:{member} labels and milestones configured.

The Team tab shows all members but with 0 open · 0 closed · 0 in progress, and the Burndown tab shows "No milestone data available."

Root Cause

GitHubIssuesService creates its own TeamMdService() with the default .ai-team folder (line 69), ignoring the runtime-detected squad folder. When the workspace uses .squad/, the service looks for .ai-team/team.md which doesn't exist, so getIssueSource() returns null and all issue/milestone fetches silently return empty arrays.

This was missed in commit 5c01e1f which fixed the same .ai-team hardcoding in four other places (SquadDataProvider, SquadDashboardWebview, DecisionsTreeProvider, TeamTreeProvider).

Fix

  • Added squadFolder option to GitHubIssuesServiceOptions
  • Pass it through to new TeamMdService(options.squadFolder) — falls back to .ai-team when unset (backward compatible)
  • Extension now passes the detected squadFolderName when constructing the service

Tests Added

  • .squad folder team.md is found when squadFolder: '\.squad' is passed
  • Default service does not find .squad/team.md (confirms the bug)
  • Constructor passes squadFolder through to internal TeamMdService
  • Default squadFolder remains .ai-team for backward compatibility

All 1026 existing tests continue to pass.

GitHubIssuesService created its own TeamMdService with the default
'.ai-team' folder, ignoring the runtime-detected squad folder. This
caused all GitHub issue and milestone fetches to silently return empty
results in workspaces using the new .squad/ folder structure.

This was missed in commit 5c01e1f which fixed the same issue in four
other places.

Added squadFolder option to GitHubIssuesServiceOptions and tests
verifying both .squad detection and default .ai-team fallback.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@csharpfritz csharpfritz merged commit ca9e439 into csharpfritz:main Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants