Commit Graph

14 Commits

Author SHA1 Message Date
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