Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

代理流提前断开时 result() 会一直卡住

未关闭
#147 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
领域
api, backend

调研方向

Look for the streamProxy() and stream.result() methods in the codebase, likely in a file handling proxy or SSE connections. The issue mentions a local fix and passing npm run check and related tests. Start by running the existing tests to understand the failure case, then examine the event flow for early disconnects. The goal is to ensure result() returns an error instead of hanging when the proxy stream disconnects before done or error events.

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

描述

untriaged
What do you want to change?

代理请求的 SSE 连接如果在 done 或 error 事件之前断开,streamProxy() 会结束事件流,但 stream.result() 会一直等。我想让这种情况返回一个错误事件。

Why?

调用方等最终结果时会卡住。用一个只发 start 就断开的模拟响应就能复现。

How? (optional)

本地已经加了检查和回归测试,npm run check 和相关测试都过了。如果这个方向可以做,麻烦回个 lgtm,我再提 PR。

主要语言
TypeScript
星标
54
派生
20
平均合并
4 小时 1 分钟
30 天内合并 PR
12

贡献指南

打开贡献指南

从这里开始

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

stepfun-ai/Step-Code 的其他 Issue

查看 stepfun-ai/Step-Code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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