Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
fix(studio): filter media decode errors from crash telemetry
Miguel Ángel179241e93263
diff --git a/packages/studio/src/main.tsx b/packages/studio/src/main.tsxindex 92c547c73c..e6a627158a 100644--- a/packages/studio/src/main.tsx+++ b/packages/studio/src/main.tsx@@ -22,8 +22,13 @@ function errorProps(value: unknown): {return { error_message: String(value), error_name: null, stack_trace: null };}+// fallow-ignore-next-line complexityfunction isCompositionAssetError(msg: string): boolean {- return msg.includes("Error fetching") && (msg.includes("404") || msg.includes("Not Found"));+ if (msg.includes("Error fetching") && (msg.includes("404") || msg.includes("Not Found")))+ return true;+ if (msg.includes("unsupported or unrecognizable format")) return true;+ if (msg.includes("MEDIA_ERR_SRC_NOT_SUPPORTED")) return true;+ return false;}const ERROR_CAP = 50;