Skip to content

feat(web): add SPA wait and document platform support honestly - #6

Merged
Verlintas merged 1 commit into
mainfrom
feat/web-wait
Nov 6, 2026
Merged

Verlintas merged 1 commit into
mainfrom
feat/web-wait

Conversation

@Verlintas

Copy link
Copy Markdown
Owner

目标

让 web_research 面向所有用户,而不是围绕维护者的单台设备或个人账号设计。

变更

  • 新增 web_research wait:等待指定文本或元素出现,默认 5 秒、最长 15 秒;超时返回当前页面而不是硬失败。
  • 工具描述不再承诺 X / Reddit;明确平台支持因站点而异,部分站点会拒绝 WebView 登录或要求人工验证。
  • 登录 handoff 明确使用每个用户自己的账号,不保存密码;设置 → 存储可清除网页数据。
  • README / WEB_RESEARCH / HOW_IT_WORKS / SECURITY / CHANGELOG 同步支持矩阵和限制。
  • 调试入口支持 wait_text / wait_ref / wait_timeout_ms。

验证

  • test / lintDebug / assembleDebug / assembleRelease、许可证头、三语 strings、58 工具 schema 全过。
  • API 35 模拟器本地延迟渲染页:
    • open 后正文为 loading;
    • wait text="Delayed result" 约 2.2 秒匹配,返回渲染后的链接;
    • 超时返回当前页面,不崩溃。
  • HN Algolia / Reddit 真站仍待回归;不把维护者账号或单一设备作为发布门槛。

说明

这是通用能力:任何用户都可以用自己的账号登录;登录态只留在本机,设置 → 存储可一键清除。

Add web_research wait for text/ref with a bounded timeout and a snapshot that reports whether the condition appeared. Use it for client-rendered results such as HN Algolia and the new Reddit. Remove X/Reddit from the guaranteed platform list, document per-user login handoff and the support matrix, and update the web research docs.
@Verlintas
Verlintas merged commit ce3479b into main Nov 6, 2026
1 check passed
@Verlintas
Verlintas deleted the feat/web-wait branch November 6, 2026 06:42
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