Skip to content

Fix/gateway session end timeout#478

Draft
drive888 wants to merge 5 commits into
TencentCloud:mainfrom
drive888:fix/gateway-session-end-timeout
Draft

Fix/gateway session end timeout#478
drive888 wants to merge 5 commits into
TencentCloud:mainfrom
drive888:fix/gateway-session-end-timeout

Conversation

@drive888

Copy link
Copy Markdown

关联 Issue

Related to #235
Depends on #316.

变更说明

#316 提供了 #235 的共享 GatewayMemoryClient 基线。

本 PR 为 POST /session/end 增加独立超时。会话结束可能需要等待 L1 抽取和队列刷新,耗时通常会超过普通的 recall 或 search 请求。

主要修改

  • GatewayMemoryClientOptions 增加可选的 sessionEndTimeoutMs
  • health、recall、capture 和 search 继续使用原有的 timeoutMs
  • 只有 endSession() 使用独立的 session-end 超时
  • 增加较长和显式较短超时的测试
  • 补充相关使用文档

范围说明

相对于 #316,本 PR 的独有改动仅涉及 3 个 Gateway client 文件。

本 PR不包含新的 Adapter SDK、平台适配器、MCP Server 或 Gateway 运行时修改。

验证

npm test -- --run src/adapters/gateway-client/gateway-client.test.ts
npm test
npm run build
git diff --check origin/pr-316-head...HEAD

验证结果

  • 针对性测试:1 file / 5 tests passed
  • 完整测试:5 files / 72 tests passed
  • 完整构建:通过
  • git diff --check:通过

当前状态

由于 #316 尚未合并,本 PR 暂时以 Draft 形式提交。

RerankerGuo and others added 5 commits June 30, 2026 20:40
Signed-off-by: Ziyang Guo <121015044+RerankerGuo@users.noreply.github.com>
Signed-off-by: Ziyang Guo <121015044+RerankerGuo@users.noreply.github.com>
Signed-off-by: Ziyang Guo <121015044+RerankerGuo@users.noreply.github.com>
Signed-off-by: drive888 <2085696241@qq.com>
Signed-off-by: drive888 <2085696241@qq.com>
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.

2 participants