Skip to content

Installed skills fail to execute due to missing progressive loading and lost context paths #663

@felix307253927

Description

@felix307253927

Description

Installed skills are not executing correctly. The root cause appears to be the lack of a progressive loading mechanism. Currently, the system attempts to eagerly load all enabled skills defined in the skill_allowlist simultaneously. Furthermore, the execution context seems to lose the specific file paths required to locate and run these skills.

Expected Behavior

  1. Progressive Loading:
  • When the LLM determines that a specific skill is required to answer a user query, it should trigger a tool call to a dedicated method, e.g., load_skill(skill_name).
  • This load_skill method will then:
    • Resolve the correct file path for the requested skill.
    • Load the full instructions, code, or context associated with that skill.
    • Inject this detailed content into the current conversation context for immediate execu
  1. Path Preservation: Ensure that the absolute or relative file paths for each skill are correctly maintained and accessible within the execution context.
  2. Successful Execution: Skills should execute reliably when invoked, without requiring a full preload of all allowed skills.

Steps to Reproduce

  1. Install multiple custom skills and add them to the skill_allowlist.
  2. Restart the application/service.
  3. Observe the startup logs (likely showing attempts to load all skills).
  4. Attempt to invoke a command that requires one of the installed skills.
  5. Result: The skill fails to execute.

OpenFang Version

0.4.4

Operating System

Windows

Logs / Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions