fix: honor targeted session files in session sync
This commit is contained in:
parent
cb82b2b7e1
commit
1c4fbc0023
@ -649,7 +649,7 @@ export abstract class MemoryManagerSyncOps {
|
||||
}
|
||||
|
||||
private shouldSyncSessions(
|
||||
params?: { reason?: string; force?: boolean },
|
||||
params?: { reason?: string; force?: boolean; sessionFiles?: string[] },
|
||||
needsFullReindex = false,
|
||||
) {
|
||||
if (!this.sources.has("sessions")) {
|
||||
@ -658,6 +658,9 @@ export abstract class MemoryManagerSyncOps {
|
||||
if (params?.force) {
|
||||
return true;
|
||||
}
|
||||
if (params?.sessionFiles?.some((sessionFile) => sessionFile.trim().length > 0)) {
|
||||
return true;
|
||||
}
|
||||
const reason = params?.reason;
|
||||
if (reason === "session-start" || reason === "watch") {
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user