Skip to content

feat(browser): 支持个人与托管浏览器登记及休眠重连 - #39

Merged
xerrors merged 5 commits into
mainfrom
feat/managed-sandbox-browser
Nov 24, 2026
Merged

xerrors merged 5 commits into
mainfrom
feat/managed-sandbox-browser

Conversation

@xerrors

@xerrors xerrors commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

改动

  • 提供 v2 浏览器状态、登记与一次性票据兑换。个人安装登记在用户自己的 OIDC 账户下,沿用普通平台连接已有的设备与能力授权。应用工作负载的委托绑定当前安装标识与登记版本,只能操作专属浏览器。
  • 浏览器开启会话或派发操作前通过 WebSocket Ping/Pong 确认连接;等待重连期间重新校验权限和请求取消。已失效的凭据、旧会话和未派发的操作有各自的协议结果。
  • 添加无头 Linux 浏览器客户端与发行包,使用原版扩展和持久 Chromium Profile。设备替换失败后仍可恢复原绑定。部署文档说明了登记、换绑、撤权和旧试用数据库的处理方式。

验证

  • 在合入 main 的 23d0ad0 后,对最终快照执行 Linux npm run check,378 项通过、28 项跳过,0 项失败。分发包验证包含离线安装、CLI、HTTP、WASM 与扩展 ZIP。git diff --check 和提交信息检查通过。
  • 单独运行身份、浏览器执行和 Server 测试共 46 项,全部通过。覆盖凭据轮换与兑换竞争、撤权、休眠后旧连接、等待 Pong 时取消和未派发步骤。
  • 对 npm run package:browser-client 生成的 0.5.1 Linux 包运行 python -I apps/browser-client/tests/replacement.py <解包目录>;旧启动器复现换绑后不能恢复,候选通过。在临时 aBridge 服务上用真实沙盒 Chromium 完成两轮启动、通过 MCP 读取测试页面、停止,并核对服务端在线状态、设备 ID 与 Profile 延续。
  • 本次未在实际 Cube VM 上重新执行休眠/唤醒端到端测试。

@xerrors xerrors changed the title feat(server): enroll managed sandbox browsers feat(browser): 支持个人与托管浏览器登记及休眠重连 Nov 24, 2026
Activate candidate credentials only after the browser answers on the new connection.
Fence superseded candidates, preserve local pause across Server restarts, and
wait for the same browser after its old socket has closed.
@xerrors
xerrors marked this pull request as ready for review November 24, 2026 17:38
@xerrors
xerrors merged commit cfb83c2 into main Nov 24, 2026
12 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T17:39:24.466764Z 6f10524 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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