fix: Update skill unload logic (#170)

This commit is contained in:
Devansh Jain
2025-12-09 15:44:21 -08:00
committed by GitHub
parent e0c4ac8163
commit 9fb0b68a40

View File

@@ -112,8 +112,8 @@ export async function initializeLoadedSkillsFlag(): Promise<void> {
{ agent_id: context.agentId },
);
const value = loadedSkillsBlock?.value?.trim() || "";
// Consider empty or placeholder as no skills loaded
context.hasLoadedSkills = value !== "" && value !== "[CURRENTLY EMPTY]";
// Check for actual skill content (skills are formatted with "# Skill:" headers)
context.hasLoadedSkills = value.includes("# Skill:");
} catch {
// Block doesn't exist, no skills loaded
context.hasLoadedSkills = false;