Repository navigation
Conversation
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.
Outcome
Removes the phone-wide
ui.settleserialization bottleneck (MCP-115) so multiple app windows can settle and interact in parallel without starving each other.android/core+android/app): replaces the single per-sessionSettleWatchwith one watch per display sharing the singleUiAutomationevent listener (SettleWatches.kt,UiAutomationTree.kt,Session.kt). Concurrentui.settlecalls on distinct displays run in parallel; a secondui.settleon the same display still answersbusy. Instantaneousui.tree/ui.press/ui.typereads no longer block behind another display's settle wait, and the event-listener mask drops back to empty once zero watches remain active across all displays.ContiguaCore+Contigua): decouplesui.settlefrom the phone-widePhoneReadQueue(MCP-9), serializing settles per stream while keeping instantaneousui.tree/ui.press/ui.typeserialized onPhoneReadQueue. All active settles fail cleanly on link loss/session end.tools/fakephone/fakephone.py,deckctl.py,test_selfcheck.sh,docs/PROTOCOL.md,docs/specs/mcp.md(MCP-9,MCP-115), anddocs/design/mcp.md.Fixes #391
Checks
scripts/check-rules.sh --base $(git merge-base HEAD main):PASS (21 files checked)scripts/check-ratchets.sh --base $(git merge-base HEAD main):PASSscripts/check-format.sh --base $(git merge-base HEAD main):PASS (8 Swift files, 7 Kotlin files)./gradlew -q :core:test --tests app.contigua.server.UiTreeSessionTest :app:assembleDebug :app:testDebugUnitTest --tests app.contigua.server.SettleWatchTest --tests app.contigua.server.SettleWatchesTest:PASS(full:app:testDebugUnitTest546/546 passed)swift test --filter "ContiguaCoreTests|MCPCoreTests|MCPToolHostTests":ContiguaCoreTests433/433,MCPCoreTests+MCPToolHostTestspassed, 0 failuresswift test --filter "PhoneReadQueueTests|WindowActQueueTests":PhoneReadQueueTests13/13,WindowActQueueTests17/17, 0 failuresswift testhits pre-existing teardown stall#161.)bash tools/fakephone/test_selfcheck.sh:SELFCHECK PASS(including concurrent two-displayui.settle+ same-displaybusy+ concurrentui.tree)python3 -m unittest discover -s tools/mcp-eval -p 'test_*.py':Ran 34 tests in 1.158s — OKSurfaces
docs/PROTOCOL.md"UI tree" §6–§7): updated.:core,:app): updated and verified.ContiguaCore,Contigua): updated and verified.tools/fakephone): updated and verified.