Repository navigation
feat(miniapps): operate live apps through semantic and DOM controls - #3549
Merged
Merged
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.
Summary
An Agent operating a MiniApp should work on the user's current instance through MiniAppBrowser, preserve unsaved state, and verify business results. This adds source-informed semantic control plus DOM/input fallbacks, and makes that route the first choice before desktop automation.
For example, the Agent can update Regex Playground's unsaved input without reloading it, or play the existing SVG Gomoku board through application-local clicks when the app has no semantic actions.
Implementation
element-position-click-v1; older hosts reject positioned clicks before dispatch and retain ordinary element clicks. Invalid, stale, hidden, or covered positioned targets fail explicitly.Validation
Compatibility and limits
No required persisted fields are added. New positioned input is capability-negotiated; older host payloads and unknown capability strings retain round-trip coverage. App actions use the existing host permission paths, and MiniApp-owned headless Agent runs remain restricted from MiniAppBrowser.
Host and Shell must be updated together for this PR's request-claim protocol. Restart the Host and reopen independent windows to load that runtime.
Local DOM/Shell fixtures and the manual Gomoku run do not establish Windows/Linux native behavior, independent-window end-to-end behavior, or live SSH/Docker workspaces, relay/mobile remote control, Peer connections, or Detached Dispatch. Full platform validation runs in CI.
AI-assisted implementation; focused automated validation and local manual checks completed.