Skip to content

fix: correct Idle status display in VS Code Copilot Chat#66

Merged
csharpfritz merged 7 commits intomainfrom
squad/63-fix-copilot-chat-idle-status
Feb 22, 2026
Merged

fix: correct Idle status display in VS Code Copilot Chat#66
csharpfritz merged 7 commits intomainfrom
squad/63-fix-copilot-chat-idle-status

Conversation

@csharpfritz
Copy link
Owner

Closes #63

Summary

Fixes the issue where Squad subagents show 'Idle' in VS Code Copilot Chat when they're actually working.

Root Cause

  1. Task completion detection missed outcomes: When orchestration logs had #NNN issue references in both
    elatedIssues\ AND \outcomes, the task was created from
    elatedIssues\ first (defaulting to 'in_progress'), missing the completion signal in outcomes like 'Closed Squad CLI version check and upgrade notification #42'.

  2. Overly aggressive working-to-idle override: The logic (working && !currentTask) ? idle\ marked members idle even when they had NO tasks at all — common in Copilot Chat scenarios where logs may not have parseable task markers.

Changes

  • OrchestrationLogService: Check outcomes for completion signals when extracting tasks from relatedIssues
  • SquadDataProvider: Only apply working-to-idle override when member has tasks but none are in-progress (not when they have zero tasks)
  • Tests: Added 8 new tests covering both scenarios (1003 tests total, all passing)

Test Coverage

  • Member status with no tasks → stays 'working' (Copilot Chat scenario)
  • Member status with completed tasks → shows 'idle'
  • Member status with in-progress tasks → shows 'working'
  • Completion signals: Closed, Resolved, Fixed → task marked 'completed'
  • No completion signal → task marked 'in_progress'

csharpfritz and others added 7 commits February 21, 2026 20:02
When Squad runs in Copilot Chat, subagents often show Idle because
the Squad orchestrator doesn't create active-work marker files.

Added fallback detection: if no active-work markers exist but ANY
orchestration log file was modified in the last 10 minutes, members
who appear in logs are marked as working. This covers the Copilot
Chat scenario where logs update but markers aren't created.

The active-work marker system remains the primary status indicator
when present (5-min staleness threshold). This fallback only activates
when no markers exist (10-min activity window).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Root cause: When orchestration logs had #NNN issue references in both
relatedIssues AND outcomes, the task was created from relatedIssues first
(default to in_progress), missing the completion signal in outcomes.

Also: The working-to-idle override was too aggressive - it marked members
idle even when they had NO tasks at all (common in Copilot Chat where
logs may not have parseable task markers).

Changes:
- OrchestrationLogService: Check outcomes for completion signals when
  extracting tasks from relatedIssues
- SquadDataProvider: Only apply working-to-idle override when member
  has tasks but none are in-progress (not when they have zero tasks)
- Update test fixture to properly test completion detection

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add 4 tests for SquadDataProvider working-to-idle override scenarios
- Add 4 tests for OrchestrationLogService completion signal detection
- Cover edge cases: no tasks, completed tasks, in-progress tasks
- Test completion signals: Closed, Resolved, Working on, no outcome

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@csharpfritz csharpfritz merged commit f923d5f into main Feb 22, 2026
4 checks passed
@csharpfritz csharpfritz deleted the squad/63-fix-copilot-chat-idle-status branch February 22, 2026 01:44
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.

VSCode Copilot Chat: Squad subagents progress shows as Idle when it's actually doing work Squad CLI version check and upgrade notification

1 participant