mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
fix(LocalRunnerClient): support deleting descCache while *.desc.json is not available in DescMcpServer
This commit is contained in:
@@ -901,6 +901,8 @@ public class LocalRunnerClient extends RunnerClient {
|
|||||||
try {
|
try {
|
||||||
info = JSONUtil.readJSONObject(context.toFile(), StandardCharsets.UTF_8).toBean(MetaActionInfo.class);
|
info = JSONUtil.readJSONObject(context.toFile(), StandardCharsets.UTF_8).toBean(MetaActionInfo.class);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
// 加载失败也需要移除对应的 cache
|
||||||
|
descCache.remove(context.toUri().toString());
|
||||||
log.warn("desc.json 加载失败: {}", context);
|
log.warn("desc.json 加载失败: {}", context);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user