From 9fb0b68a40e8b6fdfdb8f74b387ece74eaf18425 Mon Sep 17 00:00:00 2001 From: Devansh Jain <31609257+devanshrj@users.noreply.github.com> Date: Tue, 9 Dec 2025 15:44:21 -0800 Subject: [PATCH] fix: Update skill unload logic (#170) --- src/agent/context.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent/context.ts b/src/agent/context.ts index e3f87e1..cf5c020 100644 --- a/src/agent/context.ts +++ b/src/agent/context.ts @@ -112,8 +112,8 @@ export async function initializeLoadedSkillsFlag(): Promise { { 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;