Skip to content

fix(streaming): 将请求超时改为上游无活动超时#51

Merged
sunerpy merged 2 commits into
mainfrom
fix/long-thinking-timeout
Jul 24, 2026
Merged

fix(streaming): 将请求超时改为上游无活动超时#51
sunerpy merged 2 commits into
mainfrom
fix/long-thinking-timeout

Conversation

@sunerpy

@sunerpy sunerpy commented Jul 24, 2026

Copy link
Copy Markdown
Owner

变更

  • 将固定请求总时限改为上游无活动时限
  • SDK 响应或任意流事件到达时刷新超时窗口
  • 保留静默上游超时、调用方取消和队列释放行为
  • 补充活动长思考流与空闲流回归测试

验证

  • make ci
  • bun run build
  • dist 入口手动烟测:总时长 200ms、活动间隔 100ms、无活动窗口 150ms,完整收到 reasoning 与最终答案
  • dist 入口手动烟测:调用方 AbortController 可即时取消挂起请求

sunerpy added 2 commits July 24, 2026 16:37
- 收到 SDK 响应及流事件时刷新超时窗口
- 保留静默上游超时与调用方取消语义
- 增加长思考活动流和空闲流回归覆盖
@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/core/request/request-handler.ts 96.88% <100.00%> (+0.05%) ⬆️
src/core/request/response-handler.ts 99.38% <100.00%> (+0.64%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sunerpy
sunerpy merged commit 9cf9d58 into main Jul 24, 2026
4 checks passed
@sunerpy
sunerpy deleted the fix/long-thinking-timeout branch July 24, 2026 08:44
@github-actions github-actions Bot mentioned this pull request Jul 24, 2026
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