Refresh session files panel on open
This commit is contained in:
@@ -34,6 +34,14 @@ export const Assistant = () => {
|
||||
const lastSessionId = getLastSessionId(messages);
|
||||
const selectedResumeSessionId =
|
||||
messages.length > 1 ? selectedSessionId : null;
|
||||
const outgoingSessionId =
|
||||
lastSessionId ?? selectedResumeSessionId ?? options.id;
|
||||
if (typeof window !== "undefined" && outgoingSessionId) {
|
||||
window.localStorage.setItem(
|
||||
"claw.activeSessionId",
|
||||
outgoingSessionId,
|
||||
);
|
||||
}
|
||||
|
||||
return {
|
||||
body: {
|
||||
|
||||
Reference in New Issue
Block a user