feat(cua-driver): capture embedded startup diagnostics - #3281
Open
injaneity wants to merge 5 commits into
Open
Conversation
injaneity
force-pushed
the
feat/embedded-host-diagnostics
branch
from
August 20, 2026 07:06
473f1c3 to
f162845
Compare
injaneity
marked this pull request as ready for review
August 20, 2026 08:22
This was referenced Aug 20, 2026
f-trycua
force-pushed
the
feat/embedded-host-no-overlay
branch
from
August 20, 2026 16:06
a8114bb to
a759cab
Compare
f-trycua
force-pushed
the
feat/embedded-host-diagnostics
branch
from
August 20, 2026 16:06
ca05630 to
6ad0f92
Compare
f-trycua
force-pushed
the
feat/embedded-host-no-overlay
branch
3 times, most recently
from
August 20, 2026 18:29
7b1dee7 to
f7ed2fd
Compare
f-trycua
force-pushed
the
feat/embedded-host-diagnostics
branch
2 times, most recently
from
August 20, 2026 23:23
848d15b to
d7e8cab
Compare
Closed
3 tasks
injaneity
force-pushed
the
feat/embedded-host-diagnostics
branch
2 times, most recently
from
September 1, 2026 15:01
b768440 to
fd341bb
Compare
Co-authored-by: Francesco Bonacci <f@trycua.com>
Co-authored-by: Francesco Bonacci <f@trycua.com>
Co-authored-by: Francesco Bonacci <f@trycua.com>
injaneity
force-pushed
the
feat/embedded-host-diagnostics
branch
from
September 3, 2026 01:14
fd341bb to
fc12152
Compare
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
EmbeddedCuaDriverHostand expose bounded startup diagnostics through generated Python and TypeScript bindings.EmbeddedDriverDiagnosticsfrom Python, and document the sensitivity of raw stderr.Refs #3278.
Design
Each startup creates one shared diagnostics capture. The host retains it as the latest result, while the stderr pump writes directly to that same capture. A successful startup clears it by reference identity. An old pump only retains its detached capture and therefore cannot reach diagnostics from a newer startup.
The managed child provides one cleanup path for graceful shutdown, forced termination, stderr draining, and exit-status recording. This removes generation fields and comparisons from diagnostics, the fixed 250 ms startup shutdown path, and the former standalone append, clear, finish, and terminate helpers.
Diff scope
The committed generated bindings account for 203 added lines. Focused tests account for 139 added lines. The handwritten Rust runtime change is 293 additions and 57 removals, or 236 net lines. The ownership refactor removed 43 net handwritten lines from the earlier candidate. No unrelated product files are included.
Validation
Local validation:
cargo check -p cua-driver-sdk --lib --locked— passedcargo test -p cua-driver-sdk --lib --locked— 53 passedcargo test -p cua-driver --test embedded_host_sdk_mcp_test --locked— 6 passednode libs/cua-driver/scripts/generate-uniffi-bindings.mjs --check— passedcargo fmt --all -- --check— passedgit diff --check— passedAll required pull request checks pass across macOS, Linux, and Windows. The first Nix YAML policy run failed while downloading from
cache.nixos.org; its rerun passed without a code change.No desktop E2E certification is claimed because this change affects SDK-owned startup lifecycle rather than desktop interaction behavior.