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;