Skip to content

fix: recognize Aijiau Wan running and terminal states - #56

Merged
lingozhi merged 1 commit into
mainfrom
codex/aijiau-wan-status
Sep 12, 2026
Merged

lingozhi merged 1 commit into
mainfrom
codex/aijiau-wan-status

Conversation

@lingozhi

Copy link
Copy Markdown
Owner

⚠️ 提交说明 / PR Notice

本次变更由 AI 辅助实现和验证,按用户要求接入 Aijiau Wan 3.0 并切换生产渠道。

📝 变更描述 / Description

真实 Aijiau WAN 查询返回 running 时,视频解析器未识别该状态,误将正常生成中的任务判为失败并退款。现在将 running 识别为生成中,继续轮询直到终态;同时支持供应商创作台识别的 succeeded/success 和 canceled/rejected 别名。

增加状态契约回归测试。首次生产测试确认上游最终 completed,站内误判任务已全额退款;修复部署前临时关闭新渠道,随后重新执行完整网关验证。

🚀 变更类型 / Type of change

  • 🐛 Bug 修复 (Bug fix)
  • ✨ 新功能 (New feature)
  • ⚡ 性能优化 / 重构 (Refactor)
  • 📝 文档更新 (Documentation)

🔗 关联任务 / Related Issue

关联 #55。仓库已禁用 Issues,无法创建独立 Issue;复现与预期行为记录在本 PR。

✅ 提交前检查项 / Checklist

  • 人工确认: 描述由 AI 整理,未声明已由人工撰写。
  • 非重复提交: 未做上游仓库的全面重复性检查。
  • Bug fix 说明: 修复真实生产状态误判,复现记录见上;仓库已禁用 Issues。
  • 变更理解: 已核对提供方文档、创作台请求及现有任务计费链路。
  • 范围聚焦: 仅包含 Aijiau WAN 接入、测试及文档。
  • 本地验证: 相关 Go 测试包全部通过。
  • 安全合规: 代码中无敏感凭据,复用原有时长和计费边界。

📸 运行证明 / Proof of Work

  • go test ./relay/channel/task/sora、go test ./service 和 go test ./controller 均通过。
  • git diff --check 通过。
  • 新增 pending/running/completed/succeeded/success/canceled/rejected 状态契约测试。
  • 真实上游任务经历 running 后 completed;本次修复后的网关生成测试待部署验证。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-12T05:16:33.718014Z 04ecdb8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lingozhi
lingozhi merged commit 7edb5ba into main Sep 12, 2026
1 check passed
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.

1 participant