chore: commit workspace updates

This commit is contained in:
ddCat committed 2026-09-14 01:11:56 +08:00
1 parent 4eeef3cfd8
commit 4b0e9d8965
490 files changed
+12826 -72249

No files matched your search

+5 -1
View File
@@ -71,7 +71,11 @@ func runProtocolAdapterTaskWithTiming(ctx context.Context, input canvasGeneratio
if taskID == "" {
// 幂等键只存在于宿主请求元数据中,声明式插件可以把它映射到 Header,
// 但不能把宿主控制字段泄漏到供应商 JSON body。恢复已有 taskID 时不会进入 create 分支。
request.Extra["idempotencyKey"] = uuid.NewString()
key, _ := ctx.Value(providerSubmissionKeyContext{}).(string)
if key == "" {
key = uuid.NewString()
}
request.Extra["idempotencyKey"] = key
spec, err := adapter.BuildCreate(ctx, protocol.RequestContext{BaseURL: input.Config.BaseURL, Request: request})
if err != nil {
return nil, err