tabsByWorktree can retain entries for worktrees deleted outside Orca or whose cleanup didn't complete. This caused phantom agents to appear in the titlebar count. Now both countWorkingAgents and getWorkingAgentsPerWorktree filter against worktreesByRepo as the source of truth.