feat(roundtable): 入库门控——未挂载入库技能则不显示入库按钮、也不执行入库
- 门控改为「是否挂载了入库相关技能」:按 name/name_zh/description 含 `ingest` 或「入库」 识别任意启用的入库相关技能,不写死示例技能名(真实入库技能改名也能自动识别; 知识库检索类技能不误命中)。 - 操作层加保险:runIngest 在 ingestAvailableRef 为假时直接 no-op,未挂载技能/非深链 即使被触发也不执行任何入库动作。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
19028ba627
commit
85cca36ddb
2 files changed
+22
-3
No files matched your search
@@ -1253,6 +1253,8 @@ export function useStep3Summary(
|
||||
*/
|
||||
const runIngest = useCallback(
|
||||
async (opts?: { note?: string }) => {
|
||||
// 未挂载入库技能(或非深链模式)→ 不执行任何入库操作。
|
||||
if (!ingestAvailableRef.current) return;
|
||||
setPendingIngestClarification(null);
|
||||
setIngestStatus("running");
|
||||
const myRun = ++ingestRunRef.current;
|
||||
|
||||
Reference in new issue
Block a user