refactor(driver): require daemon-backed dispatch - #2337
Merged
Conversation
f-trycua
marked this pull request as ready for review
July 18, 2026 17:31
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
cua-driver call, configuration commands, diagnostics, and MCP dispatch go through the daemonWhy
Permission policies, desktop identity, session state, and telemetry need one authoritative execution boundary. A daemonless fallback could bypass that boundary or execute against a different desktop/session than the long-lived driver.
Behavior changes
cua-driver call <tool>now fails when no daemon is available instead of invoking a local registryserve --embedded --socket ...before startingmcp --embedded --socket ...Tests
cargo fmt --all -- --checkcargo check -p cua-driver -p cua-driver-testkitcargo test -p cua-driver-core --lib(291 passed)cargo test -p cua-driver --bin cua-driver(103 passed)cargo test -p cua-driver-testkit --lib(46 passed)cargo test -p cua-driver --test daemon_required_test --test protocol_handshake_test --test protocol_tools_call_test --test protocol_schema_test --test transport_config_persistence_test(24 passed, 2 intentionally ignored)xcrun swiftc -typecheck ExampleAgentHarness.swift -framework ApplicationServicesregistry.invokeis inserve.rs