feat(web-console): unify spatial UI and chat reset

This commit is contained in:
Miayui
2026-09-14 18:48:11 +08:00
parent 58f1a2da42
commit 84a3cd73bb
16 changed files with 333 additions and 86 deletions
+3 -4
View File
@@ -8854,10 +8854,9 @@ function downloadArtifact(type) {
URL.revokeObjectURL(link.href);
}
function startNewConversation() {
state.conversationId = createConversationId();
function startNewConversation(event) {
state.conversationId = String(event?.detail?.conversationId || createConversationId());
sessionStorage.setItem("cognitive-agent.conversation-id", state.conversationId);
window.location.reload();
}
window.CognitiveAgentConsole = {
@@ -9024,7 +9023,7 @@ document.addEventListener("DOMContentLoaded", async () => {
$("#requestForm").requestSubmit();
}
});
$("#newConversation").addEventListener("click", startNewConversation);
window.addEventListener("cognitive-agent:new-conversation", startNewConversation);
$("#vehicleSelect").addEventListener("change", (event) => {
selectVehicle(event.target.value);
});