Session.invalidate() leaves in-flight CDP calls pending

未关闭 适合新手
#154 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

  • #155 来自 @green3sf —— 已关闭,未合并

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
typescript
领域
backend

调研方向

在 TypeScript 源代码中搜索 Session.invalidate()、WebSocket 关闭监听器和待处理调用集合。在失效期间重现一个正在执行的 CDP 调用,然后添加或更新测试,以验证该调用会因失效错误而拒绝,并且不会留下待处理条目。

由索引模型根据 Issue 内容生成。

描述

Description

Session.invalidate() clears this.ws before closing the socket. The close listener then treats that socket as superseded and returns without rejecting entries in pending, so an in-flight CDP call can remain pending forever.

Plugins

None

OpenCode version

main at e634099

Steps to reproduce
  1. Connect a Session to a WebSocket endpoint.
  2. Start a CDP call that does not receive a response.
  3. Call session.invalidate(error).
  4. Observe that the call never settles. It should reject with the invalidation error.
Screenshot and/or share link

No response

Operating System

macOS

Terminal

Codex desktop

主要语言
TypeScript
星标
804
派生
95
平均合并
3 小时 13 分钟
30 天内合并 PR
6

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

browser-use/browsercode 的其他 Issue

查看 browser-use/browsercode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。