From a922e844ebb690b2dc52785e9b36f01efefb47ad Mon Sep 17 00:00:00 2001 From: yyh Date: Mon, 19 Jan 2026 12:55:22 +0800 Subject: [PATCH] fix(skill): return raw content as fallback for non-JSON file content When file content is not in JSON format (e.g., newly uploaded files), return the raw content instead of empty string to ensure files display correctly. --- web/service/use-app-asset.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/service/use-app-asset.ts b/web/service/use-app-asset.ts index 66aed305ab..c21aa1e817 100644 --- a/web/service/use-app-asset.ts +++ b/web/service/use-app-asset.ts @@ -106,9 +106,7 @@ export const useGetAppAssetFileContent = (appId: string, nodeId: string) => { return result } catch { - return { - content: '', - } + return { content: data.content } } }, enabled: !!appId && !!nodeId,