Repository navigation
Releases
Releases · DeliciousBuding/codex-browser-bridge
v3.0.4
Added
- Added 10
propteststateful and protocol-invariant test suites (src/native/proptests.rs) and a concise surface verification matrix (docs/FEATURE_MAP.md).
Fixed
- Preserved
CREATE_NO_WINDOWunder WindowsJobObjectviaprocess_wrap::tokio::CreationFlags, handled WindowsCTRL_BREAK_EVENTandCTRL_CLOSE_EVENTduring shutdown, pinned Unix process-group leaders withwaitid(WNOWAIT)before descendant termination, and tolerated macOS/XNUEPERMwhen only the exited zombie leader remains. - Hardened relay cancellation and turn ownership: suppress unanswered
turn_endedby execution ID instead of turn key, emitInterruptwhen a host-cancelled tool never settles before EOF, release active request slots for cancelled calls with a bounded 1,024-item history, guard against panics on duplicate cancellations with ID reuse, settle forwarded worker reverse requests on host EOF and release worker-cancelled slots, reject JS-unsafe integer IDs (|n| > 2^53 - 1), and disambiguate partialturn_endedarguments using full_meta. - Prevented CLI stdout
BrokenPipefrom panicking pastturn_endedcleanup, validated single-payload JSON-RPC responses and strict booleanisError, accepted an initial UTF-8 BOM inbatch, rolled back partial--image-dirfiles on error, eliminated an unnecessary CLI result clone, and expanded the stdio read buffer to 64 KiB. - Failed closed when
CODEX_HOMEis empty or platform home is unset instead of reading CWD config, deserialized TOML launch rows directly sonan/inftimeouts are rejected, rejected empty commands, resolved dotted Windows commands viaPATHEXTwhile skipping emptyPATHsegments, absolutized overridden CA paths, and percent-encoded control and RFC characters infile://URLs. - Hardened the npm installer and wrapper: fail nonzero on early proxy
CONNECTEOF, install binaries atomically via temp file + rename without following symlinks, honor non-443 ports,NO_PROXYports, HTTPS-only redirects, and authoritative embedded checksums, wait for WindowsCtrl+Ccleanup instead of hard-killing the bridge, and forward POSIXSIGINT/SIGTERM. - Upgraded
rustixto1.1.6(addressingRUSTSEC-2026-0486), removed unused Cargo dependencies (which,assert_cmd,predicates), fixed MSYS temp paths in the release drift guard, and extended repository contract checks to job-level reusable workflows, step timeouts, client transport schemas, and--prev-tag.
新增
- 新增 10 组
proptest状态机与协议不变量属性测试(src/native/proptests.rs),并落地精简的功能验证矩阵(docs/FEATURE_MAP.md)。
修复
- 通过
process_wrap::tokio::CreationFlags在 WindowsJobObject下保留CREATE_NO_WINDOW,补充 WindowsCTRL_BREAK_EVENT/CTRL_CLOSE_EVENT关闭监听;Unix 退出清理使用waitid(WNOWAIT)锁定进程组长 PID 再回收后代,并兼容 macOS/XNU 仅余僵尸组长时killpg返回的EPERM。 - 加固中继取消与轮次归属:按执行 ID 而非 turn key 抑制未确认的
turn_ended,宿主取消在途工具后 EOF 按Interrupt清理并释放活跃槽位(保留 1,024 条有界取消历史),防重复取消加 ID 复用触发 panic,Host EOF 时收口已转发的反向请求并支持 worker 主动取消释放槽位,拒绝超过 JS 安全范围的整数 ID(|n| > 2^53 - 1),并用完整_meta消歧部分turn_ended参数。 - 避免 CLI stdout
BrokenPipepanic 绕过turn_ended清理,严格校验单载荷 JSON-RPC 响应与布尔型isError,batch支持首行 UTF-8 BOM,--image-dir失败时回滚已写文件,消除 CLI 响应深拷贝并将读缓冲扩至 64 KiB。 - 空
CODEX_HOME或缺失平台主目录时直接报错而不读取当前目录配置;TOML 行直接反序列化以拒绝nan/inf超时,拒绝空白命令,Windows 带点裸命令回退PATHEXT并跳过空PATH段,覆盖后的相对 CA 路径保持绝对化,并转义file://URL 中的控制与保留字符。 - 加固 npm 安装器与包装器:代理
CONNECT提前关闭时非零退出,改用临时文件加原子重命名安装且不跟随符号链接,正确处理非 443 端口、NO_PROXY端口、仅 HTTPS 重定向及内置校验清单权威性;WindowsCtrl+C等待 Rust 完成清理,POSIX 正确转发SIGINT/SIGTERM。 - 将
rustix升至1.1.6(修复RUSTSEC-2026-0486),移除未使用的 Cargo 依赖(which、assert_cmd、predicates),修复发布漂移守卫在 Windows Git Bash 的临时路径问题,并补齐 job 级可复用 workflow、测试步骤超时、客户端 transport 字段与--prev-tag校验。
Install
npm install -g @delicious233/codex-browser-bridge@3.0.4
# or Claude Code plugin
claude plugin marketplace add DeliciousBuding/codex-browser-bridge
claude plugin install codex-browser@codex-browser-bridgeFull Changelog: v3.0.3...v3.0.4
v3.0.3
Fixed
- Discover direct-launch Computer Use in Codex 26.1120+ from
node_repl.exeandNODE_REPL_JS_BANNERwithout requiringCUA_REPL_NODE_REPL_PATH. Use case-insensitive Windows environment lookups, read JSON with a UTF-8 BOM, and encodefile://URLs for the current platform. - Bound Tokio runtime shutdown so the bridge can exit when the native worker stops while the host still holds stdin open.
- Track multiple explicit turns per connection and clean up each outstanding turn on exit. Reconcile partial
turn_endedarguments with metadata, apply the same success criteria to explicit and automatic cleanup, stop sending hooks whenturn_endedis unavailable, and useStopcleanup for terminal CLI JSON-RPC errors. - On host EOF, stop accepting new notifications and drain queued or partially written worker-bound frames before cleanup, with a ten-second total deadline. On worker exit, drain buffered host-bound notifications, responses, and local errors before reporting failure. Skip cleanup frames after an incomplete write.
- Track pending requests in one table to retain catalog filters and protect
initializefrom cancellation during handshake. Reject top-level JSON-RPC batch arrays, validate known_metafield types, skip blank lines, and keep reverse-direction cancellation and approval traffic flowing under image backpressure. - Aligned current installation docs and versioned client examples with the published npm package name and version.
- Corrected stale CLI approval, protocol, lifecycle, and release-order descriptions.
Changed
- Split the native module into
launch,transport,relay, andclientbehind a smallmod.rs. Thediscovercommand reportsconfig_sourceand sorts versions numerically. - Run fast lint checks separately, parallelize Windows tests and builds, cache CI builds with
rust-cache, and compile the Windows release binary once. Gate releases oncargo-denyfor the same commit SHA and protect published GitHub Release assets on retry. - Update PR and issue templates and contribution criteria to require reproduction before a fix, distinguish levels of hardware evidence, and tie reviews to the tested SHA. Replace historical drafts, including the Rust rewrite plan, with a linked archive index and tighten plugin, release, and packaging contract checks.
- Recorded Windows x64 3.0.2 execution evidence from a second host, where the sandbox block seen during release verification did not reproduce.
修复
- 支持 Codex 26.1120+ 通过
node_repl.exe和NODE_REPL_JS_BANNER直接启动 Computer Use,无需旧版CUA_REPL_NODE_REPL_PATH。统一 Windows 环境变量的大小写查找,支持读取带 UTF-8 BOM 的 JSON,并按平台编码file://URL。 - 为 Tokio runtime 关闭设置等待上限,修复 native worker 已退出、宿主仍持有 stdin 时 bridge 挂起的问题。
- 同一连接可跟踪多个显式 turn,并在退出时清理未结束的 turn。补齐部分指定的
turn_ended参数并与元数据对齐,统一显式与自动清理的成功判据,发现turn_ended缺失时立即停止发送后续钩子,CLI 终态 JSON-RPC 错误按Stop清理。 - 宿主关闭 stdin 后停止接收新通知,在十秒总时限内先排空已入队或部分写出的 worker 方向帧再清理。worker 退出时先向宿主排空已缓冲的通知、响应与本地错误再报错;发生残缺写出时不再追加清理帧。
- 合并在途请求记录,避免目录过滤记录被驱逐并阻止握手期间取消
initialize。拒绝可绕过策略的顶层 JSON-RPC batch 数组,校验_meta已知字段类型,跳过空白行,并让反向取消与审批流量在大图写入受阻时继续转发。 - 当前安装文档与固定版本客户端示例统一使用已发布的 npm 包名和版本。
- 修正过期的 CLI 授权、协议、生命周期和发布顺序说明。
调整
- 将 native 模块拆为
launch、transport、relay和client,由精简的mod.rs导出入口。discover输出config_source,并按数值排列版本。 - 将快速 lint 检查拆为独立任务,Windows 测试与构建并行,CI 使用
rust-cache缓存,Windows Release 二进制只编译一次。发布流程对同一 commit SHA 执行cargo-deny检查,重试时保护已公开的 GitHub Release 资产。 - 更新 PR、Issue 模板及贡献验收准则,要求先复现再修复、按实机验证层级记录证据,并将审阅绑定到已测 SHA。清理包括 Rust 重写计划在内的历史过程稿,保留可跳转的归档索引,并加强插件、发布与打包合同校验。
- 补充第二台 Windows x64 主机上的 3.0.2 执行证据:发布验证时的 sandbox 阻塞未复现。
Install
npm install -g @delicious233/codex-browser-bridge@3.0.3
# or Claude Code plugin
claude plugin marketplace add DeliciousBuding/codex-browser-bridge
claude plugin install codex-browser@codex-browser-bridgeFull Changelog: v3.0.2...v3.0.3
v3.0.2
Fixed
- Confirm explicit
turn_endedbefore clearing its execution context or rotating the default turn; retain rejected hooks for exit cleanup, preserve later executions, and report unanswered hooks without replaying them. - Preserve native CLI JSON-RPC error frames, including
code,data, and extension fields, on stdout with a nonzero exit. - Validate CLI/doctor initialize responses against known legacy protocol versions and advertise form elicitation for explicit non-interactive cancellation.
- Align CUA skill entry selection and tab cleanup with the installed runtime: use known targets directly, leave released user tabs and existing persistent tabs open, and distinguish completion summaries from turn cleanup.
Changed
- Document native string formatting and result preservation, CLI event/protocol boundaries, and host-owned tool exposure, token budgets, and UI rendering.
- Remove unused HTML fixtures left behind by the retired extension adapter.
修复
- 显式
turn_ended收到成功回执后才清空执行 context、轮换默认 turn;拒绝时保留退出清理记录,不让晚到回执清掉后续执行,未确认 hook 报告结果未知且不重放。 - CLI 在 stdout 保留原生 JSON-RPC 错误帧,包括
code、data和扩展字段,并以非零状态退出。 - CLI/doctor 校验 initialize 回执的已知 legacy 协议版本,声明 form elicitation 能力以明确返回非交互取消。
- CUA skill 按已安装运行时选择定向入口和清理标签页:已知目标直接进入,释放的用户标签页与既有 persistent 标签页保持打开,区分完成摘要与轮次清理。
调整
- 文档明确原生字符串格式与结果保真、CLI 事件和协议边界,以及宿主负责的工具暴露、token 预算与 UI 渲染。
- 清除已退役扩展适配层遗留且无现役测试引用的 HTML 夹具。
Install
npm install -g @delicious233/codex-browser-bridge@3.0.2
# or Claude Code plugin
claude plugin marketplace add DeliciousBuding/codex-browser-bridge
claude plugin install codex-browser@codex-browser-bridgeFull Changelog: v3.0.1...v3.0.2
v3.0.1
Breaking
- Removed
--surface browser, the 66 structuredcodex_*tools, legacy CLI flags, and the extension adapter's modules, tests, and docs. Only--surface native-browser(default,node_repl) and--surface computer(cua_repl) remain. Users of the old tools must migrate or keep an older release. (Upgrade Guide)
Added
- Added macOS arm64 and x64 prebuilt binaries, installer support, checksums, and attestations; macOS GUI/TCC acceptance remains unverified.
- Added Cursor plugin and MCP Registry manifests, OpenCode and VS Code templates, Antigravity configuration, and skills.sh installation guidance.
- Added CLI
--omit-inline-imageswith--image-dirto save screenshots and artifact metadata while omitting base64 image data from stdout.
Changed
- Aligned the bundled skill, setup guide, npm package, and security guidance with the two native runtimes; tool schemas and browser behavior come from the installed runtime.
- Bounded relay frames and outbound queues, batch input, and catalog pagination; split native unit tests into
src/native/tests.rs. - Rendered release notes from both changelogs with a shared install block.
Fixed
- Added an importable
file://browser_client_urlto discovery and preferred concrete installed plugin versions overlatestaliases. - Rotated generated turn IDs after an explicit
turn_endedand aligned native browser selection and non-interactive CLI approval cancellation. - Corrected Windows release checksum generation to include both staged executable assets.
- Removed direct Unix libc references left behind by the dependency cleanup.
破坏性变更
- 删除
--surface browser、66 个结构化codex_*工具、旧 CLI 参数,以及扩展适配层的模块、测试和文档。现仅保留--surface native-browser(默认,node_repl)与--surface computer(cua_repl);旧工具用户需迁移或保留旧版本。(升级指南)
新增
- 新增 macOS arm64/x64 预编译二进制、安装器支持、校验和与 attestation;macOS GUI/TCC 验收仍未完成。
- 新增 Cursor 插件与 MCP Registry manifest、OpenCode/VS Code 模板、Antigravity 配置和 skills.sh 安装说明。
- CLI 新增配合
--image-dir使用的--omit-inline-images,保存截图和制品元数据,同时从 stdout 移除 base64 图片数据。
调整
- 内置 skill、接入指南、npm 包和安全说明统一为两个原生运行时入口,工具 schema 与浏览器行为由已安装运行时提供。
- 为中继帧、出站队列、batch 输入和目录分页设置上限,将原生单元测试拆至
src/native/tests.rs。 - 发布说明从中英两份 changelog 生成,共用一个安装段落。
修复
- 发现结果新增可直接 import 的
file://browser_client_url,优先选择已安装插件的具体版本而非latest别名。 - 显式
turn_ended后轮换自动生成的 turn ID,对齐原生浏览器选择顺序与非交互 CLI 的审批取消行为。 - 修正 Windows 发布校验和生成路径,纳入两个已暂存的可执行资产。
- 清除依赖精简后遗留的 Unix libc 直接引用。
Install
npm install -g @delicious233/codex-browser-bridge@3.0.1
# or Claude Code plugin
claude plugin marketplace add DeliciousBuding/codex-browser-bridge
claude plugin install codex-browser@codex-browser-bridgeFull Changelog: v3.0.0...v3.0.1
v3.0.0
Version note: the instructions below describe v3.0.0. v3.0.1 removes the explicit
--surface browseradapter; see the 3.0.1 upgrade guide.版本说明:以下记录对应 v3.0.0;v3.0.1 已删除显式
--surface browser兼容入口,升级前请按上述指南迁移。
Breaking
- Claude Code plugin, client examples, and npm setup now register native Browser Use (
codex-browser/node_repl) and Computer Use (codex-computer/cua_repl) separately instead of the 66-toolcodex_*catalog. Pass--surface browserexplicitly if you still needcodex_*tools. (Upgrade Guide)
Added
- Native Browser Use relay via
--surface native-browser(node_repl), sharing the same launcher, MCP forwarding, anddiscover/doctordiagnostics as native Computer Use.
Changed
- Trimmed the bundled skill to native-first routing (
SKILL.md,native-computer-use.md,official-parity.md) and removed obsolete 2.x references, unused library wrappers, and the legacyMakefile.
Fixed
- Redacted malformed
~/.codex/config.tomlparse errors to line numbers only so local paths or tokens are never printed to stderr. - Hardened native MCP lifecycle: late
tools/listfiltering after cancellation, deduplicatedturn_endedteardown, early CLI argument validation, disconnect interruption reporting, and locator checkbox timeout handling.
破坏性变更
- Claude Code 插件、客户端示例与 npm 配置现改为分别注册原生 Browser Use(
codex-browser/node_repl)和 Computer Use(codex-computer/cua_repl),不再默认暴露 66 工具的codex_*目录。仍需codex_*工具请显式传入--surface browser。(升级指南)
新增
- 新增
--surface native-browser,直接中继本机 Codexnode_repl运行时,复用原生 Computer Use 的启动器、MCP 转发链路与discover/doctor诊断。
调整
- 精简内置 skill 为原生优先路由,清理 2.x 遗留参考文档、未使用封装与旧版
Makefile。
修复
- 解析异常的
~/.codex/config.toml时仅输出行号,避免泄露本机路径或凭据。 - 加固原生 MCP 生命周期:取消后迟到
tools/list仍过滤、turn_ended去重与退出容错、CLI 参数前置校验、断连中断上报及 checkbox 超时处理。
Install
npm install -g @delicious233/codex-browser-bridge@3.0.0
# or Claude Code plugin
claude plugin marketplace add DeliciousBuding/codex-browser-bridge
claude plugin install codex-browser@codex-browser-bridgeFull Changelog: v2.1.1...v3.0.0
v2.1.1
Changed
- Aligned the native Computer Use launcher with Codex CLI: it preserves the host surface and trusted-service config, honors
env_varsand the local stdio environment policy, resolves Windows commands against the constructed childPATHwithPATHEXT, and applies configured startup/tool timeouts and tool filters. - Unified native MCP relay and CLI/doctor on one untyped JSON stdio transport without an external MCP SDK; CLI and doctor negotiate
2025-06-18with 30/300s startup/tool deadlines, while the relay leaves handshake negotiation, pagination, elicitation waits, and deadlines to the receiving host. - Followed bounded native
tools/listpagination in CLI and doctor, preserved call correlation metadata for every native tool call, and rejected unused--image-dircombinations before launch. - Computer Use
jsnow uses every native surface enabled by the host launch row; browser-specific network, tab, and output policies no longer wrap that surface. - Decoupled client-to-native and native-to-client writes in the
--mode mcprelay with cancel-safe outbound queues so backpressure in one direction cannot block the other. - Expanded browser official parity:
selected_onlyforcodex_list_tabs,networkidlewaits incodex_observe/codex_nav_and_wait/codex_click_and_wait,url_globand safeurl_regexmatchers forcodex_wait_for_url, loglevelsfiltering, same-origininclude_iframessnapshots, and padded element capture.
Fixed
- Applied the host
enabled_tools/disabled_toolspolicy consistently to advertised catalogs, directtools/callrequests, and internalturn_endedcleanup in both relay and CLI modes. - Closed child
stdinbefore failing native CLI/doctor startup, preserved the underlying error chain when cleanup is unconfirmed, and failed the relay when the native child closedstdoutunexpectedly. - Re-verified tab attachment before modifier-key release in
input::keypress, boundedpointer::scrollto a single deadline, and guardedstart_observationrollback by connection epoch.
调整
- 原生 Computer Use 启动器与 Codex CLI 对齐:保留宿主的 surface 与 trusted-service 配置,遵循
env_vars与本地 stdio 环境策略,Windows 命令按构造出的子进程PATH解析并转发PATHEXT,同时应用配置的启动/工具超时与工具过滤。 - 原生 MCP 中继与 CLI/doctor 统一为同一条 untyped JSON stdio 传输,不引入外部 MCP SDK;CLI 与 doctor 以
2025-06-18协商并默认 30/300 秒启动与工具期限,中继则把握手、分页、elicitation 等待与请求期限交给接收方宿主。 - CLI 与 doctor 跟随有界
tools/list分页,为每次原生工具调用保留关联元数据,并在启动前拒绝未使用的--image-dir组合。 - Computer Use
js使用宿主启动行启用的全部原生 surface,浏览器专用的网络、标签页与输出策略不再包裹该 surface。 --mode mcp中继的客户端到原生、原生到客户端两个写方向解耦为可取消的出站队列,单向背压不再阻塞反向。- 扩展浏览器与官方行为对齐:
codex_list_tabs支持selected_only,codex_observe/codex_nav_and_wait/codex_click_and_wait支持networkidle等待,codex_wait_for_url增加url_glob与安全url_regex,日志捕获支持levels过滤,DOM 快照支持同源include_iframes,元素截图保留 padding。
修复
- 宿主的
enabled_tools/disabled_tools策略现在同时作用于对外目录、直接tools/call请求与内部turn_ended清理,中继与 CLI 两种模式一致。 - 原生 CLI/doctor 启动失败时先关闭子进程
stdin,清理未确认时保留底层错误链,原生子进程意外关闭stdout时中继直接失败。 input::keypress在释放修饰键前重新校验标签页附着,pointer::scroll收敛到单一操作期限,start_observation回滚按连接 epoch 保护。
Install
npm install -g @delicious233/codex-browser-bridge@2.1.1
# or Claude Code plugin
claude plugin marketplace add DeliciousBuding/codex-browser-bridge
claude plugin install codex-browser@codex-browser-bridgeFull Changelog: v2.1.0...v2.1.1
v2.1.0
Added
- Experimental
--surface computeraccess to the installed nativecua_replMCP service, with native schemas, application elicitation, images, metadata, cancellation, and owned worker cleanup. - Native CLI
call/batch, runtime discovery/doctor, and optional image artifacts through--image-dir; noninteractive CLI never approves apps.
Fixed
- Matched the native Codex Browser client by enabling focus emulation after every debugger attach, so background clicks, typing, and screenshots no longer activate the selected tab or window.
- Removed the automatic
Page.bringToFrontinput fallback; foreground activation stays an explicit user-requested tool, and failed focus setup detaches and reports an error before dispatching input. - Bound successful attachment setup to the pipe generation so reconnecting cannot send the first input with a stale debugger or focus cache.
- Removed pending request registrations when an outer timeout cancels a call, and let attachment recovery finish before the bounded pointer release.
- Preserved native MCP extension fields and installed host service mappings, rejected invalid call metadata per request, and reported interrupted sessions with a nonzero exit status.
- Finished bounded attach/focus setup before starting the observation producer, allowed bounded detach rollback, and avoided input release after expired setup.
- Positioned the pointer before every native scroll gesture; missing mouse-move acknowledgments are errors, while background scroll timeouts remain unknown outcomes and are never retried.
Changed
- Updated pinned CI actions from reviewed dependency PRs #52, #53, #54, and #55.
- Raised the Rust MSRV to 1.88 for native MCP support (
rmcp3.9.0). - Published desktop acceptance separately from source builds: Linux ARM64 X11 passed the synthetic app workflow, Windows input requires an unlocked desktop, and macOS GUI/TCC and Wayland remain unverified.
新增
- 实验性
--surface computer可接入本机原生cua_replMCP 服务,支持原生 schema、应用授权询问、图像、元数据、取消与所属 worker 清理。 - 新增原生 CLI
call/batch、运行时 discovery/doctor,以及通过--image-dir输出图像;非交互 CLI 不会批准应用。
修复
- 每次 debugger 附着后启用焦点模拟,与原生 Codex Browser 客户端一致,后台点击、输入与截图不再激活所选标签页或窗口。
- 移除自动
Page.bringToFront兜底,前台激活仍是显式的用户请求工具;焦点配置失败时先分离并报错,再分发输入。 - 附着配置的成功状态绑定到 pipe 代次,重连不会用旧的 debugger 或焦点缓存发送首批输入。
- 外层超时取消调用时移除待处理请求登记,附着恢复可在有界指针释放前完成。
- 保留原生 MCP 扩展字段与宿主服务映射,逐请求校验调用元数据,会话被中断时以非零退出码上报。
- 观察生产者在有界附着/焦点配置完成后才启动,允许有界 detach 回滚,过期配置后不再释放输入。
- 每次原生滚动手势前先定位指针;缺失 mouse-move 确认视为错误,后台滚动超时保持结果未知且不重试。
调整
- 按已评审的依赖 PR #52、#53、#54、#55 更新固定版本的 CI actions。
- 因原生 MCP 支持(
rmcp3.9.0)将 Rust MSRV 提升到 1.88。 - 桌面验收与源码构建分离发布:Linux ARM64 X11 通过合成应用流程,Windows 输入需要解锁桌面,macOS GUI/TCC 与 Wayland 仍未验证。
Install
npm install -g @delicious233/codex-browser-bridge@2.1.0
# or Claude Code plugin
claude plugin marketplace add DeliciousBuding/codex-browser-bridge
claude plugin install codex-browser@codex-browser-bridgeFull Changelog: v2.0.3...v2.1.0