fix: remove early return in DraftAppAssetsInitializer if file tree is empty

This commit is contained in:
Harry 2026-03-12 16:57:11 +08:00
parent ed9f36dd1f
commit 0a4a85ada2

View File

@ -46,8 +46,6 @@ class DraftAppAssetsInitializer(SyncSandboxInitializer):
def initialize(self, sandbox: Sandbox, ctx: SandboxInitializeContext) -> None:
tree = sandbox.attrs.get(AppAssetsAttrs.FILE_TREE)
if tree.empty():
return
# --- 1. Run the build pipeline (SkillBuilder compiles .md inline) ---
accessor = AppAssetService.get_accessor(ctx.tenant_id, ctx.app_id)