fix: invalidate skills cache with loadSkills directory key
performConfigRefresh passed client-directory-first path into invalidateSkillsLoadCache, missing the active-project cache key used by loadSkills after the repository-local skills discovery fix. Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
This commit is contained in:
co-authored by
Serhii Dziupin
parent
049600df72
commit
576791d024
@@ -700,7 +700,9 @@ async function performConfigRefresh(options: {
|
||||
uiRefreshTasks.push(commandsStore.loadCommands().then(() => undefined));
|
||||
}
|
||||
if (refreshSkills) {
|
||||
invalidateSkillsLoadCache(currentDirectory);
|
||||
// Match loadSkills cache key (active-project-first). Passing client/directory-store
|
||||
// path here misses the key when those diverge after getRequestDirectory().
|
||||
invalidateSkillsLoadCache();
|
||||
uiRefreshTasks.push(skillsStore.loadSkills().then(() => undefined));
|
||||
uiRefreshTasks.push(skillsCatalogStore.loadCatalog({ refresh: true }).then(() => undefined));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user