@joshuaswarren/openclaw-engram 9.1.0 → 9.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13835,7 +13835,7 @@ Use this context naturally when relevant. Never quote or expose this memory cont
|
|
|
13835
13835
|
api.on(
|
|
13836
13836
|
"before_compaction",
|
|
13837
13837
|
async (event, ctx) => {
|
|
13838
|
-
const sessionKey = ctx?.sessionKey ?? "default";
|
|
13838
|
+
const sessionKey = ctx?.sessionKey ?? event?.sessionKey ?? "default";
|
|
13839
13839
|
try {
|
|
13840
13840
|
if (orchestrator.lcmEngine?.enabled) {
|
|
13841
13841
|
try {
|
|
@@ -13916,7 +13916,7 @@ Use this context naturally when relevant. Never quote or expose this memory cont
|
|
|
13916
13916
|
log.info(
|
|
13917
13917
|
`compaction completed for ${sessionKey}, triggering session reset`
|
|
13918
13918
|
);
|
|
13919
|
-
const workspaceDir = ctx?.workspaceDir || orchestrator.config.workspaceDir || defaultWorkspaceDir();
|
|
13919
|
+
const workspaceDir = ctx?.workspaceDir || event?.workspaceDir || orchestrator.config.workspaceDir || defaultWorkspaceDir();
|
|
13920
13920
|
const apiAny = api;
|
|
13921
13921
|
if (typeof apiAny.resetSession === "function") {
|
|
13922
13922
|
const result = await apiAny.resetSession(sessionKey, "new");
|