fix: make daemon-down socket check reactive via polling state#1217
Merged
fix: make daemon-down socket check reactive via polling state#1217
Conversation
Replace the one-off ObservationStreamClient.socketExists() call during composition with a polled mutableStateOf that checks every 2 seconds while disconnected/connecting. This ensures the UI transitions between "Device Disconnected" and "Restart MCP Daemon" when the daemon socket appears or disappears after the initial disconnect. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
f975849 to
5e9afc1
Compare
MCP BenchmarksOverall Status: ✅ PASSED Context Thresholds
Overall Status: ✅ PASSED Generated at 2026-02-09T04:02:27.704Z Tool Call ThroughputSample Size: 50 iterations per tool Fast Operations (<100ms)
Medium Operations (100ms-1s)
Slow Operations (1s+)
Summary: 7/7 tools passed Generated at 2026-02-09T04:04:22.606Z Startup PerformanceMCP Server (stdio)
Device discovery: skipped (not run) Daemon
Overall Status: ✅ PASSED Generated at 2026-02-09T04:03:30Z NPM Unpacked Size
Package: @kaeawc/auto-mobile@0.0.10 Overall Status: ✅ PASSED Generated at 2026-02-09T04:02:57.968Z |
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
ObservationStreamClient.socketExists()call during composition with a polledmutableStateOfthat updates every 2s while disconnected/connectingTest Plan
./gradlew -p android :ide-plugin:buildpassesCloses #1202
🤖 Generated with Claude Code