fix(interaction): route frame-aware input and support live editing sessions | 修复跨 frame 输入路由并完善实时编辑会话 - #162
Open
Ljy-0827 wants to merge 2 commits into
Conversation
Ljy-0827
marked this pull request as ready for review
August 31, 2026 09:55
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.
问题现状
PR #143 已经支持 Agent 根据 Canvas Surface 截图选择位置并执行点击。部分 Canvas 应用会在点击目标后暴露一个标准 DOM 输入框,随后 Agent 再通过
fill或press完成输入。现有文本与键盘交互存在通用机制缺口:这些问题并非 Canvas 特例,而是跨 Frame 路由、输入语义和键盘/IME 事务不完整造成的通用交互缺陷。
解决方案
目前链路
PR #138 :在 Observation 中发现 Canvas,并按 Surface ref 截图
↓
PR #143 :根据截图中的像素坐标安全点击 Canvas 内部目标
↓
本 PR:点击后重新观察真实 DOM 编辑入口;持久字段使用 fill,实时或瞬态编辑会话使用 type,按键操作使用 press,并统一路由到目标所属 frame