Skip to content

Commit 4f2ab8b

Browse files
thecodedriftclaude
andcommitted
fix(cli): Include .agents/ fallback in checkStaleness when directory exists
When .agents/ exists from a previous fallback install, include it in staleness checks so taskless info reports its status. This makes the fallback location a proper first-class install target for status reporting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ad4ae02 commit 4f2ab8b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/cli/src/install/install.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,15 @@ async function readInstalledSkillVersion(
296296
export async function checkStaleness(cwd: string): Promise<ToolStatus[]> {
297297
const embedded = getEmbeddedSkills();
298298
const tools = await detectTools(cwd);
299+
300+
// Include .agents/ fallback if the directory exists (from a previous fallback install)
301+
const fallbackExists = await stat(join(cwd, AGENTS_FALLBACK.installDir))
302+
.then((s) => s.isDirectory())
303+
.catch(() => false);
304+
if (fallbackExists) {
305+
tools.push(AGENTS_FALLBACK);
306+
}
307+
299308
const results: ToolStatus[] = [];
300309

301310
for (const tool of tools) {

0 commit comments

Comments
 (0)