update
This commit is contained in:
@@ -19,7 +19,12 @@ function createConversationId() {
|
||||
|
||||
function loadConversationId() {
|
||||
const stored = sessionStorage.getItem("cognitive-agent.conversation-id");
|
||||
if (stored?.startsWith("conv-")) return stored;
|
||||
// A browser runtime restart is a new virtual run. Do not reuse the old
|
||||
// conversation actuator state; hardware mode will repopulate this fresh
|
||||
// context from authoritative CAN feedback when it is selected.
|
||||
if (stored?.startsWith("conv-")) {
|
||||
sessionStorage.removeItem("cognitive-agent.conversation-id");
|
||||
}
|
||||
const conversationId = createConversationId();
|
||||
sessionStorage.setItem("cognitive-agent.conversation-id", conversationId);
|
||||
return conversationId;
|
||||
|
||||
Reference in New Issue
Block a user