shell-mirror 1.5.63 → 1.5.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/app/dashboard.js +3 -13
package/package.json
CHANGED
package/public/app/dashboard.js
CHANGED
|
@@ -530,22 +530,12 @@ class ShellMirrorDashboard {
|
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
renderActiveAgents() {
|
|
533
|
-
// Filter for agents that should be displayed (online
|
|
533
|
+
// Filter for agents that should be displayed (only online/recent - offline agents can't be recovered)
|
|
534
534
|
const displayAgents = this.agents.filter(agent => {
|
|
535
|
-
|
|
536
|
-
if (agent.status === 'online') return true;
|
|
537
|
-
|
|
538
|
-
// Show recent agents (last 2 minutes)
|
|
539
|
-
if (agent.status === 'recent') return true;
|
|
540
|
-
|
|
541
|
-
// Show offline agents only if they have active sessions
|
|
542
|
-
const sessions = this.agentSessions[agent.agentId] || [];
|
|
543
|
-
const activeSessions = sessions.filter(s => s.status === 'active');
|
|
544
|
-
return activeSessions.length > 0;
|
|
535
|
+
return agent.status === 'online' || agent.status === 'recent';
|
|
545
536
|
});
|
|
546
537
|
|
|
547
|
-
//
|
|
548
|
-
const activeAgents = displayAgents.filter(agent => agent.status === 'online' || agent.status === 'recent');
|
|
538
|
+
// All displayed agents are now connectable (online/recent only)
|
|
549
539
|
|
|
550
540
|
const agentCount = displayAgents.length;
|
|
551
541
|
const agentsHtml = displayAgents.map(agent => {
|