Skip to content

fix: parse Aijiau video completion independently of timestamps - #57

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

lingozhi merged 1 commit into
mainfrom
codex/aijiau-wan-poll-metadata

Conversation

@lingozhi

Copy link
Copy Markdown
Owner

⚠️ 提交说明 / PR Notice

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

📝 变更描述 / Description

Aijiau 成功查询的 completed_at 是 RFC3339 字符串,而通用视频响应结构将它定义为整数,后台因此无法解析完成状态,任务一直显示生成中。

轮询现在只解析实际需要的 status、progress 和 error.message,忽略与状态转换无关的供应商元数据。保留原始任务数据供查询返回。加入真实完成响应的脱敏回归样例,确认任务进入 SUCCESS。现有运行中任务可在部署后继续轮询完成,无需重新提交或再次扣费。

🚀 变更类型 / Type of change

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

🔗 关联任务 / Related Issue

关联 #55、#56。仓库已禁用 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 通过。
  • 新增实际 RFC3339 completed_at 与 video 元数据的完成响应回归测试。
  • 上游已完成当前测试视频;修复部署后继续验证同一个网关任务的完成状态与下载。

@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:24:59.033961Z bc99f8f 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 c4f9fc9 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