You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: squad.agent.md silently disappears after upgrade when template source is missing #730
.github/agents/squad.agent.md can silently disappear or become empty after running squad upgrade or squad init. This happens because multiple code paths skip file creation without warning when the template source (squad.agent.md.template) is missing.
Root Causes (3 code paths)
1. Silent skip in upgrade.ts (version-current path)
When the CLI version is already current, the upgrade refreshes squad.agent.md — but if the template source doesn't exist, it silently skips with no warning:
if(storage.existsSync(agentSrc)){// ← silently skips if missing!storage.copySync(agentSrc,agentDest);stampVersion(agentDest,cliVersion);}
Activity
test(#730): add failing tests for squad.agent.md silent deletion bugs
fix(#730): prevent squad.agent.md silent deletion — 3 code path fixes
docs: add CHANGELOG entry for #730 agent file resilience fix
fix(#730): prevent squad.agent.md silent deletion
fix(#730): prevent squad.agent.md silent deletion — 3 code path fixes
fix(#730): prevent squad.agent.md silent deletion — 3 code path fixes
fix(cli,sdk): warn when squad.agent.md template is missing during upg…
fix(cli,sdk): warn when squad.agent.md template is missing during upg…
fix(cli,sdk): warn when squad.agent.md template is missing during upg…
fix(cli,sdk): warn when squad.agent.md template is missing during upg…
fix(cli,sdk): warn when squad.agent.md template is missing during upg…
fix(cli,sdk): warn when squad.agent.md template is missing during upg…