Skip to content

fix: Worker 启动崩溃 + Node.js fetch 代理支持#32

Closed
chenqi146 wants to merge 8 commits intosaturndec:mainfrom
chenqi146:fix/worker-crash-and-proxy
Closed

fix: Worker 启动崩溃 + Node.js fetch 代理支持#32
chenqi146 wants to merge 8 commits intosaturndec:mainfrom
chenqi146:fix/worker-crash-and-proxy

Conversation

@chenqi146
Copy link

Summary

  • 修复 lru-cache v6 兼容性(purgeStale → 兼容 prune),解决 Worker 进程启动即崩溃导致所有任务无法处理
  • 添加 undici 依赖,Worker 入口启用 EnvHttpProxyAgent,让 Node.js 20 原生 fetch 支持 HTTP_PROXY/HTTPS_PROXY 环境变量

Test plan

  • npm run dev 验证 Worker 进程 ([1]) 不再崩溃
  • 设置 HTTPS_PROXY 后验证 LLM 调用能通过代理正常工作
  • 不设置代理时验证不影响正常功能

saturndec and others added 8 commits February 27, 2026 19:25
### ✨ 新功能
- 增加 OpenAI 兼容图片、视频格式支持
### 🐛 修复
- 修复默认模型配置后项目模型需要二次选择的问题
- 修复部分情况 resolution 无法读取的问题
- 修复模型链路为 LangGraph
- 修复默认参数无选择问题
- 修复关闭计费依然触发计费问题
- 修复 openai-compatible 被误判为原生 OpenAI 推理问题
- 修复 JSON 解析失败问题
### ⚙️ 优化
- 修改为默认计费 off
- 增强提示词 JSON 格式限制
### ✨ 新功能
- 增加 OpenAI 兼容图片、视频格式支持
### 🐛 修复
- 修复默认模型配置后项目模型需要二次选择的问题
- 修复部分情况 resolution 无法读取的问题
- 修复模型链路为 LangGraph
- 修复默认参数无选择问题
- 修复关闭计费依然触发计费问题
- 修复 openai-compatible 被误判为原生 OpenAI 推理问题
- 修复 JSON 解析失败问题
### ⚙️ 优化
- 修改为默认计费 off
- 增强提示词 JSON 格式限制
- 修复 lru-cache v6 兼容性 (purgeStale → prune),解决 Worker 启动即崩溃
- 添加 undici 依赖,Worker 入口启用 EnvHttpProxyAgent 让 fetch 走 HTTP_PROXY
- .gitignore 添加 .ace-tool/
FredHJC added a commit to FredHJC/waoowaoo that referenced this pull request Mar 2, 2026
- Guard imageCache.purgeStale() with typeof check for lru-cache v6 compat,
  falling back to deprecated prune() method if purgeStale is unavailable
- Add EnvHttpProxyAgent from undici in worker entry to respect HTTP_PROXY/
  HTTPS_PROXY env vars for Node.js native fetch calls
- Add .ace-tool/ to .gitignore

Note: undici dependency already present from timeout fix.

Upstream: saturndec/waoowaoo#32
FredHJC added a commit to FredHJC/waoowaoo that referenced this pull request Mar 2, 2026
- Guard imageCache.purgeStale() with typeof check for lru-cache v6 compat,
  falling back to deprecated prune() method if purgeStale is unavailable
- Add EnvHttpProxyAgent from undici in worker entry to respect HTTP_PROXY/
  HTTPS_PROXY env vars for Node.js native fetch calls
- Add .ace-tool/ to .gitignore

Note: undici dependency already present from timeout fix.

Upstream: waoowaooAI/waoowaoo#32
@saturndec saturndec closed this Mar 7, 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.

3 participants