Repository navigation
fix: status bar says "agents active", not "agents connected" - #45
Merged
Merged
Conversation
The count is MCP clients that made a request in the last 5 minutes. Each Claude session with Arduino Agent configured runs its own bridge, which fetches the tool list as soon as the IDE starts, so two open sessions showed "2 agents connected" before anyone used a tool, and the item fell back to "MCP ready" after 5 idle minutes while both stayed attached. "Active" matches what is measured; the tooltip and dialog say how it is counted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reported while testing 0.7.0: the status bar showed "2 agents connected" right after launch, with nobody using it.
The count was correct: it is MCP clients that made a request in the last 5 minutes, and two Claude Code sessions on the machine each have Arduino Agent configured. Each session runs its own bridge, and each bridge fetches the tool list as soon as the IDE comes up. The 0.7.0 log shows both sessions initializing three seconds apart. But "connected" oversold it:
Now it reads "Agent active" / "N agents active". The tooltip says what is counted ("N MCP clients used Arduino Agent in the last 5 minutes (each AI session with Arduino Agent configured counts once)"), and the dialog's status line matches.
Test plan
tscpasses.claude.exesessions, each with its own bridge process, produced twoStreamable HTTP session initializedlines in the 0.7.0 log at launch.🤖 Generated with Claude Code