feat(web-console): unify spatial UI and chat reset
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user