Repository navigation
feat: support website webhooks for Wan and Seedance video tasks - #50
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 18d284b473
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| request.WebhookURL = webhookURL | ||
| if options.Secret != nil { | ||
| request.WebhookSecret = *options.Secret |
There was a problem hiding this comment.
Require encrypted storage before accepting webhook secrets
On deployments using the default ASYNC_IMAGE_ENCRYPTED_WRITES_ENABLED=false, copying the secret here causes TaskWebhook.BeforeCreate to persist both the callback URL and signing secret as plaintext; callback URLs can also contain sensitive query tokens. Other durable callback paths reject registration unless StableCryptoSecretConfigured() and encrypted writes are enabled, so this validator should apply the same prerequisite before accepting these fields.
Useful? React with 👍 / 👎.
| const { t } = useTranslation() | ||
| return ( | ||
| <section className='space-y-3'> | ||
| <h3 className='text-sm font-semibold'>Webhook</h3> |
There was a problem hiding this comment.
Route the webhook heading through i18n
When a non-English locale is active, this newly added user-facing heading remains hard-coded in English, and no Webhook translation key was added to any locale. Render it through t(...) and add the locale entries so it follows language changes with the rest of the documentation panel.
AGENTS.md reference: web/default/AGENTS.md:L59-L63
Useful? React with 👍 / 👎.
Important
📝 变更描述 / Description
Wan unified and Lxmone Seedance requests can now register an optional website webhook. The gateway stores callback settings in its existing durable outbox, strips them from upstream requests, and sends a public terminal payload after generation finishes. Authenticated polling remains available.
The API panels and AI copy guides document every callback field, signing format, retry rule, and fallback. Legacy channel behavior and billing are unchanged.
This change and description were AI-assisted.
🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work