Repository navigation
fix: 修复研迹工具调用中断与行情接口兼容问题 - #50
Merged
Merged
Conversation
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题与改动
Windows 桌面助手处理“判断一下苹果明日的涨跌”时,在第 9 次工具调用开始后触发
PI_TOOL_LIMIT_EXCEEDED。界面已显示失败,Pi 后台仍继续执行并生成最终回答,后续请求还可能受到旧进程的无请求 ID 事件影响。maxToolCalls配置继续生效。startupTimeoutMs,默认 120 秒。热进程健康检查继续使用原有期限,显式健康检查配置继续生效。time,补入请求股票代码。financial映射到 CLI 接受的report,并在工具参数说明中提示该别名。测试报告
环境
实际执行命令与结果
新增回归用例覆盖默认 12 次工具调用完成、超限终止与旧事件隔离、流式及非流式请求超时、动态凭据并发启动、冷启动与热检查期限、超时后的迟到凭据、失败后同一会话恢复,以及分时、盘口和财经日历兼容行为。
真实边界验收
本地 Windows 修复安装包使用资料副本,通过 Electron preload 的正常会话与运行 API 调用已配置的真实模型。
completed,助手消息保存 10 次工具调用和完整回答。isError=false,均未返回TOOL_UNAVAILABLE。financial日历参数成功取得结果。8 项跳过来自缺少真实账户 fixture 的 7 项测试,以及当前 Windows 主机符号链接权限限制的 1 项测试。
验收边界
本地安装包验收使用
0.4.0-beta.3-hotfix.1,对应本 PR 的源码修复。先前两次历史启动超时的唯一根因仍有不确定性,并发启动竞争已通过独立回归用例复现并修复。