fix(FN-952): activate projects after CLI registration

- Set project status to 'active' after registration in runInit (kb init)
- Set project status to 'active' after registration in runProjectAdd (kb project add)
- Set project status to 'active' after interactive registration in resolveProjectDirectory
- Add updateProject mock to init.test.ts, project.test.ts, and project-resolver.test.ts
This commit is contained in:
gsxdsm
2026-04-04 21:07:43 -07:00
parent 2516463901
commit ca72ec81a3
6 changed files with 17 additions and 0 deletions

View File

@@ -361,6 +361,9 @@ export async function runProjectAdd(
isolationMode,
});
// Activate the project (registration sets it to 'initializing')
await central.updateProject(project.id, { status: "active" });
console.log();
console.log(` ✓ Registered project '${projectName}'`);
console.log(` Location: ${formatDisplayPath(project.path)}`);