Skip to content

feat(cua): add self-window input driver and session safety - #560

Draft
sjungwon03 wants to merge 72 commits into
devfrom
feat/558-app-window-cua-driver
Draft

sjungwon03 wants to merge 72 commits into
devfrom
feat/558-app-window-cua-driver

Conversation

@sjungwon03

@sjungwon03 sjungwon03 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Closes #558

Adds an Electron driver restricted to the supplied OpenScene BrowserWindow/webContents, with capture, CSS/bitmap/zoom conversion, click, bounded drag, restricted keys and held-input release. Main-only one-use permits bind the exact window/session/run/frame/revision/action; own-top-frame IPC exposes safety reporting, state, Stop and rollback acknowledgement. Operating-system input, external-window control and public debugging ports are absent.

Main wiring integrates the coordinated LLM approval runtime from #561. Renderer overlay and Pointer Events work remains separately owned; this PR is Draft until that implementation is integrated and the actual editor scenario is demonstrated. MCP clip creation/state inspection reuse existing registered tools; CUA actions run only through the main approval dispatch.

At 2a7edd741993ab2f59cc15a137e546a1851fe3f2, root typecheck, 219 test files / 1,395 tests, build, and mobile typecheck passed. An earlier full run had one unrelated assetLibraryConcurrency timing failure; its isolated suite and subsequent full runs passed. Exact-HEAD CI is still pending and there is no independent approval yet.

Actual Electron probes show HTML5 drag starts but never drops with sendInputEvent, while Pointer Capture delivers down/move/up. Zoom 2 requires CSS coordinates multiplied by zoomFactor for Electron DIP input. Even an explicitly authorized initial-only focus request on a separate test profile left both focus flags false on this host; production guards remain intact. The complete MCP clip → CUA move → MCP inspection → UI Undo and mid-drag Stop/rollback evidence is not yet available. See docs/cua-driver-validation.md for local evidence paths and limits.

This driver is desktop-specific because mobile has no Electron BrowserWindow; shared contracts still compile against mobile. Do not mark ready or merge before the exact final HEAD has passing required CI, independent specification/code-quality approval, no unresolved review threads and the required real-app evidence.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: app-window scoped CUA driver and session safety (Backend item31)

1 participant