fix: Worker 启动崩溃 + Node.js fetch 代理支持#32
Closed
chenqi146 wants to merge 8 commits intosaturndec:mainfrom
Closed
Conversation
### ✨ 新功能 - 增加 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
3 tasks
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
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.
Summary
lru-cachev6 兼容性(purgeStale→ 兼容prune),解决 Worker 进程启动即崩溃导致所有任务无法处理undici依赖,Worker 入口启用EnvHttpProxyAgent,让 Node.js 20 原生fetch支持HTTP_PROXY/HTTPS_PROXY环境变量Test plan
npm run dev验证 Worker 进程 ([1]) 不再崩溃HTTPS_PROXY后验证 LLM 调用能通过代理正常工作