feat: reduce time-to-boot, remove default eager approval checks on inputs, auto-cancel stale approvals (#579)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-01-17 16:19:30 -08:00
committed by GitHub
parent f4eb921af7
commit 5f5c0df18e
13 changed files with 1376 additions and 93 deletions

View File

@@ -149,7 +149,7 @@ async function readSkillContent(
try {
const content = await readFile(projectSkillPath, "utf-8");
return { content, path: projectSkillPath };
} catch (primaryError) {
} catch {
// Fallback: check for bundled skills in a repo-level skills directory (legacy)
try {
const bundledSkillsDir = join(process.cwd(), "skills", "skills");
@@ -157,8 +157,11 @@ async function readSkillContent(
const content = await readFile(bundledSkillPath, "utf-8");
return { content, path: bundledSkillPath };
} catch {
// If all fallbacks fail, rethrow the original error
throw primaryError;
// If all fallbacks fail, throw a helpful error message (LET-7101)
// Suggest refresh in case skills sync is still running in background
throw new Error(
`Skill "${skillId}" not found. If you recently added this skill, try Skill({ command: "refresh" }) to re-scan the skills directory.`,
);
}
}
}