Skip to content

fix: isolate legacy Seedance requests from website webhooks - #51

Merged
lingozhi merged 1 commit into
mainfrom
codex/seedance-webhook-boundary
Sep 8, 2026
Merged

lingozhi merged 1 commit into
mainfrom
codex/seedance-webhook-boundary

Conversation

@lingozhi

@lingozhi lingozhi commented Sep 8, 2026

Copy link
Copy Markdown
Owner

⚠️ 提交说明 / PR Notice

Important

  • 请提供人工撰写的简洁摘要,避免直接粘贴未经整理的 AI 输出。

📝 变更描述 / Description

Harden the boundary between the two Seedance protocols. Legacy creation rejects website webhook fields before billing or forwarding, so callback credentials cannot reach a provider that does not support gateway callbacks. Calls omitting these fields retain the existing legacy validation and pricing.

Also exclude the reserved /v1/videos/generations creation path from Lxmone's generic task-path match. Cached selection, database selection and middleware now keep legacy creation on its own channel; public task queries and downloads remain supported. Website clients use /v1/videos for the new integration.

Code and description are AI-assisted.

🚀 变更类型 / Type of change

  • 🐛 Bug 修复 (Bug fix) - 请关联对应 Issue,避免将设计取舍、理解偏差或预期不一致直接归类为 bug
  • ✨ 新功能 (New feature) - 重大特性建议先通过 Issue 沟通
  • ⚡ 性能优化 / 重构 (Refactor)
  • 📝 文档更新 (Documentation)

🔗 关联任务 / Related Issue

✅ 提交前检查项 / Checklist

  • 人工确认: 我已亲自整理并撰写此描述,没有直接粘贴未经处理的 AI 输出。
  • 非重复提交: 我已搜索现有的 Issues 与 PRs,确认不是重复提交。
  • Bug fix 说明: 若此 PR 标记为 Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。
  • 变更理解: 我已理解这些更改的工作原理及可能影响。
  • 范围聚焦: 本 PR 未包含任何与当前任务无关的代码改动。
  • 本地验证: 已在本地运行并通过测试或手动验证,维护者可以据此复核结果。
  • 安全合规: 代码中无敏感凭据,且符合项目代码规范。

📸 运行证明 / Proof of Work

  • Regression test first reproduced legacy acceptance of callback URL/secret; now returns local HTTP 400 before task state.
  • Routing regression reproduced the old creation path matching both providers; now selects only legacy in cache and DB, while exhausted new-channel candidates never fall back to legacy.
  • Passed: go test ./common ./relay/channel/task/sora ./model ./middleware ./controller ./service ./relay/channel/openai/image_stream
  • Passed: go vet ./common ./relay/channel/task/sora ./model ./middleware
  • No frontend source or pricing changes. No paid generation or external callback used for validation.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 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-08T01:33:56.584988Z 2b4a568 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 40066fe into main Sep 8, 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