fix: 绑定工具触发的报告撰写对话

This commit is contained in:
ji ruo committed 2026-10-30 12:27:50 +08:00
1 parent aac79d72e9
commit f48f4ec8e2
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ export function FindingAutoChat({
setConversation({ id: initialConversationId, agent_key: agentKey, title: `漏洞 #${findingId} · ${safeTitle}`, created_at: "", updated_at: "" });
return;
}
const storedID = Number(window.localStorage.getItem(storageKey));
const storedID = agentKey === "auto" ? Number(window.localStorage.getItem(storageKey)) : 0;
if (Number.isSafeInteger(storedID) && storedID > 0) {
setConversation({
id: storedID,