Skip to content

feat(web): let the model judge state-changing web actions - #8

Merged
Verlintas merged 1 commit into
mainfrom
feat/model-judged-web-actions
Nov 7, 2026
Merged

Verlintas merged 1 commit into
mainfrom
feat/model-judged-web-actions

Conversation

@Verlintas

Copy link
Copy Markdown
Owner

目标

按“让模型自己判断”调整 web_research:端侧不再用按钮/GET 链接的正则硬拦状态变更操作。AI 可能需要搜索、筛选、提交表单、点击结果等;是否发送/发布/关注/下单/支付应由模型根据用户请求判断。

变更

  • 移除 CLICK_JS / ACTIVE_GUARD_JS 中的按钮标签、GET 链接路径、draft form 正则拦截。
  • click 现在会执行模型选择的按钮/链接;press Enter 不再因为 textarea/提交按钮标签被端侧拒绝。
  • 保留能力/凭证边界:密码仍交给 show_to_user;文件上传/下载不支持;跨域 iframe / closed shadow root 只列 URL;非 http(s) 链接不支持。
  • 工具描述改为“默认只读;是否状态变更由模型按用户请求判断”;页面输出不再宣称“没有发送/发布”。
  • CHANGELOG / SECURITY / HOW_IT_WORKS / WEB_RESEARCH / README 同步。

验证

  • test / lintDebug / assembleDebug / assembleRelease、许可证头、三语 strings、58 工具 schema 全过。
  • API 35 模拟器:
    • Post 按钮现在执行并显示 posted(无 Denied);
    • GET /like、/follow 链接现在导航(无 Denied);
    • 密码 type / Enter 仍返回 show_to_user handoff 提示;
    • 之前套件的 search / check / select / history / read / network / wait / state 不受影响。
  • 真站回归仍待网络/真机;不把维护者账号或单一设备作为发布门槛。

说明

这是产品策略调整:端侧提供浏览器能力,模型负责判断是否执行状态变更操作。需要时模型可以先用 ask_user 向用户确认。

Remove the regex guard that vetoed buttons and GET links in web_research. The model now decides whether a send/post/like/follow/order/payment action is appropriate for the user's request. Keep credential handoff for password fields and the unsupported file upload/download boundaries. Update the tool description, page output, tests and docs.
@Verlintas
Verlintas merged commit 3dd5689 into main Nov 7, 2026
1 check passed
@Verlintas
Verlintas deleted the feat/model-judged-web-actions branch November 7, 2026 16:19
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.

1 participant