Skip to content

fix: allow empty skill bundle for apps without skills#33561

Open
hikariming wants to merge 1 commit intolanggenius:refactor/skill-bundlerfrom
hikariming:fix/allow-empty-skill-bundle
Open

fix: allow empty skill bundle for apps without skills#33561
hikariming wants to merge 1 commit intolanggenius:refactor/skill-bundlerfrom
hikariming:fix/allow-empty-skill-bundle

Conversation

@hikariming
Copy link
Copy Markdown
Contributor

Problem

When an app has no skill files in its asset tree, the publish process does not create a skill bundle. This causes SkillInitializer to fail with:

ValueError: No skill bundle found for tenant_id=xxx, app_id=xxx, assets_id=xxx

As a result, Chatflows without any skills cannot run at all.

Solution

Instead of raising an error when no bundle exists, create an empty SkillBundle. This allows apps without skills to run normally while still supporting skill-based workflows when skills are present.

Changes

  • api/core/sandbox/initializer/skill_initializer.py: Create empty bundle instead of raising error

Testing

Tested locally:

  • Created Chatflow without any skills
  • Confirmed the app can run successfully with an empty bundle

When an app has no skill files in its asset tree, the publish process
does not create a skill bundle. This causes SkillInitializer to fail
with 'No skill bundle found' error, making the app unusable.

This fix creates an empty SkillBundle when none exists, allowing apps
without skills to run normally.
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant