TapTap Maker 插件动态工具被 timeoutMs=180000 本地校验拒绝
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 401
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
## 环境
- macOS / arm64
- Cindy TapTap Maker 插件:2.1.11
- 插件内置 `@taptap/maker`:0.0.28
- 工作区已绑定 Maker 项目,Maker proxy tools 状态为 `ok`
## 复现步骤
1. 在已绑定的本地 Maker 工作区调用 `maker_status`:成功。
2. 调用 `maker_list_tools`:成功,能列出 `generate_image`、`batch_generate_images` 等动态工具及 schema。
3. 通过插件调用 `maker_call_tool`,选择 `generate_image` 或 `batch_generate_images` 并传入符合实时 schema 的参数。
4. 调用在到达 Maker Runtime 前失败:
```text
INTERNAL: timeoutMs 必须是 1000–120000 的整数
```
5. `maker_doctor` 也返回同一个错误。
失败后检查工作区 `assets/image/` 与 `.maker/assets/generated-assets.json`,没有对应文件或生成记录,说明请求未进入素材生成流程。
## 已定位原因
插件安装目录中的 `main.js` 对长任务传入了超出宿主上限的超时值:
```js
async function accountRequest(action, payload, longRunning) {
// ...
timeoutMs: longRunning ? 180000 : 30000,
...(longRunning ? { maxTotalMs: 900000 } : {}),
}
async function callMakerTool(name, args, longRunning) {
// ...
timeoutMs: longRunning ? 180000 : 30000,
...(longRunning ? { maxTotalMs: 900000 } : {}),
}
```
同时,`callMakerToolWithIdentityRecovery()` 对动态工具固定调用:
```js
await callMakerTool(name, args, true)
```
因此所有动态 Maker 工具都会发送 `timeoutMs: 180000`,而当前 Cindy Node 请求层只接受 `1000–120000`。`maker_status` 与 `maker_list_tools` 可以工作,是因为分别使用 30000 和 60000。
## 预期行为
插件传给单次 Node 请求的 `timeoutMs` 应不超过宿主上限,例如 `120000`;长任务总等待时间继续交由现有的 `maxTotalMs: 900000` 管理。这样动态 Maker 工具与 `maker_doctor` 才能正常进入 Runtime。
本报告未包含项目源码、图片、凭证、账号标识或完整对话。
Contributor guide
Research direction
Start by locating the plugin's installed main.js and inspect accountRequest(), callMakerTool(), and callMakerToolWithIdentityRecovery(), where the issue reports timeoutMs and maxTotalMs are set. Verify that single-request timeoutMs stays within the 1000–120000 host limit while long-task total waiting remains 900000, then exercise maker_doctor and dynamic Maker tools to confirm they reach Runtime.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 76/100