乐于分享
好东西不私藏

OpenClaw 2026.4.21 发布:OpenAI GPT-Image-2 支持、4K 图片生成、安全修复!

OpenClaw 2026.4.21 发布:OpenAI GPT-Image-2 支持、4K 图片生成、安全修复!

OpenClaw 2026.4.21 正式发布

发布时间:2026 年 4 月 22 日

版本亮点:OpenAI GPT-Image-2 支持、4K 图片生成、安全修复、依赖清理


🎉 重磅更新

1️⃣ OpenAI 图片生成升级(OpenAI/Images) ⭐⭐⭐⭐⭐

核心功能

  • ✅ 默认使用最新的 gpt-image-2 模型
  • ✅ 支持 2K / 4K 高清尺寸
  • ✅ 图片质量大幅提升

技术细节

imageGeneration:
  provider: openai
  model: gpt-image-2
  size:
    - 2k
    - 4k

适用场景

  • 高清海报生成
  • 产品图片优化
  • 艺术创作


2️⃣ 安全修复(Auth/Commands) ⭐⭐⭐⭐

核心修复

  • ✅ 修复权限验证问题
  • ✅ 防止非管理员误执行 owner 命令
  • ✅ 提升系统安全性

技术细节

  • 要求 owner 身份验证
  • 防止通配符 allowFrom 滥用
  • 增强命令执行安全性


3️⃣ 插件与依赖优化(Plugins/Doctor) ⭐⭐⭐

优化内容

  • ✅ 修复 Plugins/doctor 依赖恢复问题
  • ✅ 解决 npm 废弃依赖警告
  • ✅ 安装包更干净

技术细节

  • 从 doctor 路径修复捆绑插件运行时依赖
  • 镜像 node-domexception 别名到根 package.json
  • 减少依赖链警告


4️⃣ 图片生成日志优化(Image Generation) ⭐⭐⭐

新功能

  • ✅ 失败时显示更详细的警告日志
  • ✅ 自动 provider 回退前记录候选模型
  • ✅ 方便调试和排查问题

日志示例

[WARN] Image generation failed for provider: openai/model: gpt-image-1
[INFO] Falling back to provider: minimax/model: image-01
[INFO] Image generated successfully with minimax/image-01

5️⃣ 其他修复

模块 修复内容 重要性
Slack 修复线程别名丢失问题 ⭐⭐⭐
Browser 拒绝无效的无障碍引用,提升稳定性 ⭐⭐
npm/install 镜像 node-domexception 别名 ⭐⭐

📊 升级建议

推荐升级的理由

  1. OpenAI 2K/4K 图片 – 图片质量大幅提升
  2. 安全修复 – 防止未授权命令执行
  3. 依赖清理 – 安装包更干净,运行更稳定
  4. 日志优化 – 方便调试图片生成问题

升级命令

npm install -g openclaw@latest

🔗 相关链接

  • GitHub: https://github.com/openclaw/openclaw[1]
  • 文档: https://docs.openclaw.ai[2]
  • 社区: https://discord.gg/clawd[3]
  • 更新日志: https://github.com/openclaw/openclaw/releases/tag/v2026.4.21[4]

💬 结语

OpenClaw 2026.4.21 带来了 OpenAI GPT-Image-2 支持和 4K 图片生成,同时修复了安全问题和依赖警告。

推荐所有用户升级! 🚀


如果你觉得这篇文章有帮助,欢迎点赞、在看、转发支持!

关注公众号,获取最新 AI 技术资讯~

引用链接

[1]https://github.com/openclaw/openclaw

[2]https://docs.openclaw.ai

[3]https://discord.gg/clawd

[4]https://github.com/openclaw/openclaw/releases/tag/v2026.4.21