fix(gpu): preserve omitted metadata in projected views

This commit is contained in:
morluto committed 2026-10-27 14:23:55 +08:00
1 parent e99b6c2c3b
commit dfe6aaf6da
3 files changed
+80 -11

No files matched your search

+18 -10
View File
@@ -58,16 +58,24 @@ export const gpuCodeObjectsSummarySchema = gpuCodeObjectsObjectSchema
});
export const gpuCodeObjectsItemsSchema = z.union([
z.array(
gpuObjectSchema.partial().required({
id: true,
kind: true,
target: true,
location: true,
metadata_location: true,
payload_target: true,
target_consistency: true,
inspection: true,
}),
gpuObjectSchema
.partial()
.required({
id: true,
kind: true,
target: true,
location: true,
metadata_location: true,
payload_target: true,
target_consistency: true,
inspection: true,
})
.extend({
// Source defaults qualify historical full rows, never omitted page columns.
amd_target_metadata: gpuObjectSchema.shape.amd_target_metadata
.removeDefault()
.optional(),
}),
),
z.array(
gpuKernelSchema.partial().required({