fix(ui): sync worker busy/idle count with actual worker state #344
No reviewers
Labels
No labels
auto-merged
ci
failed
component
api
good first issue
has-pr
help wanted
idea
priority
critical
priority
high
priority
low
priority
medium
review
approved
review
commented
status
blocked
status
in-progress
status
needs-review
status
ready
type
bug
type
chore
type
docs
type
enhancement
type
feature
type
refactor
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
customable/claude-mem!344
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/341-worker-count-desync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The header worker metrics (working/idle counts) only checked SSE
workerTasksstate, while individual worker cards also checkedworker.currentTaskIdfrom the API. This caused the header to show fewer working workers than the cards displayed (e.g. "2 working, 1 idle" when all 3 cards showed "Working").Fix: Added
worker.currentTaskIdfallback to the busy count calculation, matching the logic already used inWorkerItem.Closes #341
AI Code Review (Devstral)
The fix correctly addresses the inconsistency between worker status in the header and individual worker cards by checking both SSE state and API state for busy workers.
Automated review by pr-reviewer