Skip to content

feat: Add method to check agent online status and use it in container handler#42

Merged
9trocode merged 1 commit intomainfrom
feat/email-collab-invitations
Mar 7, 2026
Merged

feat: Add method to check agent online status and use it in container handler#42
9trocode merged 1 commit intomainfrom
feat/email-collab-invitations

Conversation

@9trocode
Copy link
Contributor

@9trocode 9trocode commented Mar 7, 2026

This pull request improves the accuracy of agent online status detection for shared terminal features by introducing a new method to check real-time agent connectivity, both locally and across distributed instances via Redis. The changes ensure that the system more reliably reports whether agents are actually online, rather than relying solely on historical ping data.

Enhancements to agent online status detection:

  • Added the IsAgentOnline method to AgentHandler in internal/api/handlers/agent.go, which checks for real-time agent connectivity locally and via Redis, providing a more accurate online status.

Improvements to shared terminal logic:

  • Updated the shared terminal status determination in internal/api/handlers/container.go to use the new IsAgentOnline method, falling back to the previous LastPing check only if real-time connectivity is not found.

@9trocode 9trocode merged commit 7e8ddd1 into main Mar 7, 2026
2 checks passed
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.

1 participant