Dash
646c81a644
Merge remote-tracking branch 'origin/main' into cindy/thoughtful-morse
...
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
# Conflicts:
# scripts/eval-browser-tasks.mjs
2026-11-12 00:17:47 +13:00
Dash
a2642acce9
fix(browser): read 拒绝 frame;「我的浏览器」文字读取遵守 timeoutMs 并如实报告 4000 字符上限
...
评审指出的三处:
- read 接受 frame 却读主文档并报成功:和 extract 一样明确拒绝。
- 「我的浏览器」文字读取丢掉 timeoutMs:桥接对作业的默认期限是 45 秒,页面无响应时会把打开后 5 秒的
内容探测拖长。两条读取路径(页面脚本、被拦后的声明式读取)现在共用调用方给的剩余时间。
- 声明式读取被桥接按字段截成 4000 字符却当成整页:结果带 capped,read 返回 truncated 并提示用
selector 读具体区域,不再给读不到的 nextOffset;开发文档里的「上限 30000 字符」按实际更正。
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-11 20:38:10 +13:00
Dash
e45381c3a7
docs(browser): 公开读网页实测的方法、数据与复现脚本
...
- docs/benchmarks/browser-read-2026-11-11:这一版与上一版、bro、Claude App、Codex App 的
实测说明、四组逐次结果,以及海报上每个数字的出处和局限。
- scripts/benchmarks/browser-task-bro-compare.mjs:和 bro 对比用的脚本,含准备 bro 的步骤。
- eval-browser-tasks.mjs:--effort 指定推理强度;--serve 同时打印各题题目。
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-11 20:08:08 +13:00
Dash
5d6e6f02cd
feat(browser): 读取题进题库,「我的浏览器」里脚本被拦时 read 改用声明式读取
...
题库(scripts/eval-browser-tasks.mjs):
- 四道读取题:打开时为空、稍后才渲染的页面(late),先显示 Loading… 的页面
(spinner),一次读不完的长文档(manual),JSON(status)。操作题的页面
瞬间就绪,测不出真实网站对比里发现的问题。
- --real-sites 再加八道公开网站读取题,标准答案运行前从各站公开接口或页面现取,
取不到的题跳过并说明。
- --check 增加 read 的免模型检查:等空页面出内容、多页按序返回、长文档截断后
从 nextOffset 续读、读完关闭自己开的标签页。
在运行中的个人版上切到侧边栏和「我的浏览器」,用新代码实际下发的页面函数实测:
- 「我的浏览器」里 github.com 的内容安全策略拦截页面脚本,read 会失败。后端在
脚本被拦或扩展不支持页面脚本时改用扩展自己的声明式读取(实测返回的同样是渲染
后的文字)。
- 侧边栏的 open 自己等到加载完才返回,读文字的函数返回正确。
新题暴露的两处:
- 只显示 Loading… 的页面加载已完成且不再变化,读回来的是占位文字。不足 200
字符且带这类字样的页面最多再等 3 秒。spinner 一题 18.3 → 5.1 秒。
- 模型给等待条件配 timeMs 时本意是上限,运行时却先原地停满(实测白等 20 秒)。
有条件、有 timeMs、没有 timeoutMs 的等待改写为以它为上限。
文档补充:题库分组、工具说明变长的代价(多 935 token,谁付、付多少、如何判断)、
三种后端的实测结论。
验证:
- @cindy/mcps 1341 个单测、@cindy/browser-control-runtime 207 个、desktop
browser-backend 312 个通过;mcps / desktop typecheck 通过;--check 通过。
- 评测脚本 12 题各 2 次(Opus 5.5,基线 origin/main):两组 48 次全部通过,
轮数 4.3 → 2.5,费用 $0.139 → $0.038,用时 10.8 → 7.3 秒。
风险:
- 侧边栏和「我的浏览器」验证的是新代码依赖的前提,不是新代码的端到端;装上包含
本改动的构建后需各跑一遍 read。
- Loading… 的识别靠字样,不带这类字样的占位内容仍会被当作正文读回。
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-11 17:57:45 +13:00
Dash
a4155032da
feat(browser): read 动作,核心用法随工具说明给出
...
与另一款浏览器工具在真实网站上对比后的两处改动。
核心用法随 call_tool 的说明给出。以前模型要先调一次 list_tools 读完整规则:每个
任务多一轮,约一万 token 的规则作为工具结果排在用户消息之后,别的任务无法复用
它的缓存。现在读页面、操作页面、等待、底层出口和交给用户这几条在工具说明里,
完整规则仍由 list_tools 返回,说明最后一段写明何时去读。34 次评测没有一次再去
读完整规则。
read 动作:给地址就打开、等内容出现、返回可见文字并关闭标签页;pages 一次给多个
地址(先全部打开再各自读,总耗时约等于最慢的一页);targetId 读已打开的页面,
也可作为 batch 的一步。
- 文字来自运行时新增的固定读取 domRead:{kind:"text"}:innerText,不含脚本、
样式和隐藏部分。专用浏览器里固定读取不算交互,一次约 20 毫秒。
- 打开后的等待(open / navigate 后同一次调用里的读取)改用同一个读取做探测,
不再每次多付约 250 毫秒的导航观察期。
- 「我的浏览器」新版扩展走页面脚本;旧版扩展明确拒绝,read 退回声明式 extract。
- selector 没匹配到时返回整页并说明;一页失败不影响其它页。
参数错误只返回出错字段的说明,不再每次附整份约 1.1 万字符的 schema;args 传 {}
仍返回完整 schema。
验证:
- @cindy/mcps 全部 1339 个单测、@cindy/browser-control-runtime 207 个、desktop
browser-backend 312 个通过;mcps / runtime / desktop / host typecheck 通过;
eval-browser-tasks.mjs --check 通过。
- 真实网站 8 题各 3 次、本机夹具 5 题各 2 次(Opus 5.5 medium),改动前后均全部
通过:真实网站 13.4 → 6.3 秒、4.3 → 2.3 轮;夹具 16.3 → 11.8 秒、6.0 → 4.2 轮。
风险:
- 工具说明变长约一千字符,每个加载浏览器工具的会话都要付。
- 说明的措辞直接改变模型做法,改动后需重跑评测(docs/dev-rules/browser-use.md)。
- 侧边栏与「我的浏览器」只有单测覆盖,没有在真实后端上实测 read。
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-11 17:19:18 +13:00
Dash
d5471d1df7
fix(browser): open / navigate 后同一次调用里的读取先等页面有内容
...
open 在标签页建好时就返回,navigate 在文档加载完成时返回;靠脚本渲染的页面
这时还没有文字。同一次调用里紧接着的读取(afterSnapshot,或 batch 的下一步)
读到空页面,模型只能再花一轮等待后重读。本机夹具页瞬间加载,测不出来;真实
网站上 12 次带 afterSnapshot 的 open 有 10 次读空。
工具层(三种后端共用)在「open / navigate 成功且同一次调用里后面还有读取」时
先等,最多 5 秒,尽力而为,不改变动作本身的成败:
- navigate 后先看一次快照,不为空即放行。
- open 后用页面脚本读 location.href、readyState 和可见文字长度。新标签页先显示
占位页(chrome://new-tab-page/),它的快照不为空、加载状态已完成,标签页报告
的地址却已是目标地址,只有页面自己的地址能分清;浏览器内部地址一律当作目标
文档还没到。
- 不支持任意页面脚本的后端(旧版扩展的「我的浏览器」)第一次探测即放弃,行为
与之前相同。
规则文案同步说明,避免模型再为刚打开的页面单独加一步等待。
验证:
- @cindy/mcps tsc 与 browser 目录 332 个单测通过(新增 10 个用例)。
- eval-browser-tasks.mjs --check 通过。
- 真实网站 8 题各 3 次、本机夹具 5 题各 2 次(Opus 5.5 medium):全部通过;
真实网站 7 题平均轮数 4.9 → 3.9,用时 13.3 → 12.0 秒。样本少,未做显著性检验。
已知限制写在 docs/dev-rules/browser-use.md:同一地址已在另一标签页打开时探测
可能提前放行;专用浏览器里每次页面脚本带约 250 毫秒导航观察期,短页面的 open
因此多约 0.7 秒。
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-11 15:27:59 +13:00
Dash
357ce260f3
docs(browser): 公开网页任务四方实测的方法、数据与复现脚本
...
同一批 9 件网页任务在 Cindy 新旧浏览器工具层、Claude App、Codex App 上的实测:文档写明题目来源、测法、结果与局限,附脱敏后的汇总数据。
- scripts/benchmarks/browser-task-request-log.mjs:记录测试页请求的转发与等待,用于给没有本地记录的产品计时
- scripts/benchmarks/browser-task-codex-timing.mjs:从 Codex 本机会话日志算每题用时与自动审批耗时
- eval-browser-tasks.mjs:--serve 同时打印题目原文;新增 --effort 传给命令行,便于按同一推理强度复现
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-11 02:35:04 +13:00
Dash
cc055c5a25
fix(browser): batch 的预检与真实调用共用同一组判断,并固定后端、不丢图片
...
本轮评审(Greptile、Codex)指出的是同一类问题:batch 承诺「参数写错时一步都不做」,但预检
只问了 schema 和后端能力,没有问各 action 自己的检查;另外批次执行中的后端切换和多余截图
都会让结果悄悄偏离调用者的预期。按收敛检查点把它们归成三条不变量一次修完:
- 预检与真实调用是同一组判断:处理入口新增 checkOnly 模式,走到派发之前就返回;batch 对每
一步都用它,所以地址协议、afterSnapshot 位置、extract / cdp 的专属检查、模式能力门控不会
再各说各话。extract 与 cdp 的纯参数检查前移到派发之前,真实调用和预检共用。
- 一个批次只在一个后端上运行:开始时固定后端身份,每步之前核对,被切换则这一步和后面的
都不执行。
- 结果不悄悄丢信息:一批最多 3 个 screenshot 步骤,超出整批拒绝,不再只返回前 3 张图。
新增 6 条回归测试,均在上一版代码上失败(逐条核对过)。cdp 里页面函数抛错仍报成功的那条
已在 14c2af7 修复,评审是对旧提交给的。
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-11 00:53:46 +13:00
Dash
efc2897d0b
docs(browser): 补全评测的分题数字并更正两处表述
...
「只点一个按钮」在 Sonnet 上调用次数略多(4.7 → 5.3),Haiku 的分页题平均 5.0 → 6.0;此前写成「没有变化」和「有一次 5 → 7」不够准确。
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-11 00:26:47 +13:00
Dash
a7e35dd62c
docs(browser): 记录专用浏览器在真实应用里的补测结果
...
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-11 00:06:33 +13:00
Dash
9985498387
fix(browser): cdp 输入在无焦点页面落空时改为设值,并补上实测发现的两处
...
在运行中的 Cindy 里实测三种后端后的修正:
- 侧边栏的页面在后台没有焦点,Input.insertText 不报错也不生效,cdp 的 type 曾在表单
为空时报成功。现在回读字段内容,没落进去就直接设值并触发 input / change,仍不对则报错。
- batch 的整批预检补上 cdp 命令白名单:不允许的命令在第一步执行前就拒绝。
- 登录交接的规则列表改用无序项,按后端裁剪后不再出现断号。
- 评测脚本新增 --serve,只起夹具网站,供在运行中的 Cindy 里逐个后端手工实测;
文档记录三种后端的实测结果与未测成的部分。
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-10 22:35:42 +13:00
Dash
b34cd11e73
feat(browser): 一次调用多步、底层出口与按模式给规则
...
借鉴 Browser Use 1.0 里对三种浏览器后端都成立的部分,做在共享工具层:
- batch:steps 里每一步是 browser 工具的一份普通参数,走同一个处理入口;先整体校验
再执行,任一步失败即停,不自动重放。recipe / upload / setBackend 不能放进去,
审批策略对带这些步骤的 batch 仍按每次确认处理。
- cdp:复用配方适配器已有的会话通道,一次调用一个会话。可发命令是运行时白名单的
子集,不含读 Cookie 与原始截图;另有 nodes / click / type / call 四个辅助命令,
能进到封闭 Shadow DOM。「我的浏览器」没有调试接口,调用前拒绝。
- browser-workflow 规则按当前浏览器模式渲染,宿主不报告模式时返回全部;模式在读取
规则后变化时由 status / setBackend 提示重新读取。
- scripts/eval-browser-tasks.mjs:真实模型对比评测(--live)与不用模型的真实浏览器
自检(--check)。
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-10 21:13:33 +13:00
Dash
6cb02f6c8d
fix(browser): 自动启动用户浏览器并等待扩展连接 ( #9643 )
...
* fix(browser): 自动启动用户浏览器并等待扩展连接
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
* fix(browser): 处理自动启动的并发、配对与 macOS 新进程启动
- macOS 启动加 -n,避免同一 App 已有专用实例时启动被吞掉
- 无 profile 的请求加入已在等待的 profile 请求时,仍会补一次默认浏览器启动
- 等待期间发现扩展已上线但需配对,立即结束等待
- 修改内置 Skill 规则文件,内置 Skill 包版本升到 91
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
---------
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-10 13:28:16 +08:00
Dash
8dc56135dc
Merge origin/main into browser reconnect fix
...
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-08 02:14:35 +13:00
Dash
7b9f4ef6da
fix(browser): preserve reconnect grace and distinguish disconnected extensions
...
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-08 02:10:57 +13:00
Dash
1bcf6ef7e1
fix(browser): restore extension control after plugin updates
...
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-08 00:38:27 +13:00
Dash
b03667f2dc
fix(browser): 补齐图片读取兜底与 X 公开配方发现
...
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-07 19:06:35 +13:00
Dash
c9ca03dc8f
fix(browser): 「我的浏览器」默认新开页签,不占用用户自己的页签
...
11 月 3 日查 ChatGPT 账单的任务里,Agent 在用户自己的 ChatGPT 页签上读取、点击并两次跳转。原因:工作流指引要求先复用已打开的页面(用户开的也算),open 的同网站提醒也让它优先在已有页面上继续,而 tabs 不区分页签归属。
- tabs 按扩展给出的 cindyWindow 标出 owner:"user" / owner:"cindy";旧版扩展不标就不猜。
- 同网站提醒遇到用户页签时,只让 Agent 沿用它的地址(多账号网站的 /u/<n>/ 等),在自己的页面里打开,不在上面点击、输入或跳转。
- 工作流指引、status/tabs 说明和 Play Console 站点指南同步修改:默认用 open 在 Cindy 窗口开自己的页面,登录态与用户共用;用户明确让看「这一页」时才读取。
- Browser Use 规则记录这一决定。专用浏览器与侧边栏的页面都是 Cindy 自己的,照旧复用。
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-06 17:17:28 +13:00
Dash
13ec5822c5
fix(browser): 「我的浏览器」大文件分块上传并如实报告调试能力 ( #8292 )
...
* fix(browser): 「我的浏览器」大文件分块上传并如实报告调试能力
Chrome 不允许扩展按需获得调试接口,能力表不再声称支持 PDF 和原始协议,
被拒时直接说明可改用专用浏览器。超过约 30 MB 的文件分块交给扩展,最大
1 GB。快照传递 limit,新版扩展接受 frame,截断时提示如何继续读取。
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
* fix(browser): 分块上传的批次上限一并传入校验,超过 500 MiB 的文件不再被拒
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
* docs(browser): 规则文档同步——Chrome 调试接口不能按需申请,相关能力不可用
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
* docs(browser): 清除残留的调试接口可用说明;测试兼容 Windows 短路径
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
---------
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-01 12:42:37 +09:00
Dash
6e2b0c1960
docs: align secret-field and test-build notes with existing repo rules
...
Address review feedback on #8261 :
- plugin-security-and-authoring, browser-use: the "my browser" notes said
password, payment and one-time-code fields are readable and fillable, which
read as contradicting the input-handoff boundary. State that the extension
does not block by field type, but values the owner enters through ask_owner
still go only to the host and never into the model, and that task
permission tiers and automatic review do not replace that boundary.
- simulator-debugging: the side-by-side test build recipe omitted
CINDY_USE_LOCAL_REGION_CONFIG=1, without which app.config.js ignores the
temporary self-host-regions.json and silently keeps the built-in bundle ID.
Add the switch, say which variables only change the display name, require
checking the built bundle ID before install, and name the two entitlements
to remove.
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-01 04:02:16 +13:00
Dash
8b6503cd41
docs: move agent-learned product and dev knowledge into the repo
...
Decisions and debugging knowledge that only lived in one person's agent
memory now live where every contributor and agent reads them:
- environment-setup: keep git auto-maintenance in the foreground for
multi-worktree partial clones (git 2.54 loses the maintenance lock)
- simulator-debugging: evidence-first physical-iPhone debugging and the
side-by-side test build parameters
- remote-desktop: zero frames from ScreenCaptureKit means check replayd
- model-catalog-maintenance: Cindy AI name suffixes, AI Gateway repos
- design-decision-log: extra model cost display (10-30), remote desktop
resolution tiers with effect words (10-06)
- core-product-principles: transient failures recover automatically,
background status hints stay light and never reflow lists
- engineering-conventions: name Chinese variants by script, not region
- REVIEW.md: do not demand mechanisms for rare benign edges
- configuration-and-overrides: four tiers for settings visibility
- protocol-compatibility: manual continuation of interrupted scheduled
runs; X delete keeps the mention requirement
- plugin-security-and-authoring: "my browser" capability parity, user
non-interference baseline, on-demand debugger permission, page badge
- new docs/dev-rules/browser-use.md: shared-layer optimizations, no
capability limits with risk handled by approval, external link handoff,
recipe catalog maintenance
- new docs/product-rules/mail-card.md: mail card editing, sending,
reading, read marks, avatars and Google contacts scope
- system-skills README: bundled Skills stay repo-agnostic; pr triggers
only on explicit PR intent
Assisted-by: Cindy (https://cindy.app )
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com >
2026-11-01 03:39:40 +13:00