@mobcode/openclaw-plugin 0.1.11 → 0.1.12
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/package.json
CHANGED
|
@@ -110,7 +110,14 @@ function readTranscriptMessages(filePath) {
|
|
|
110
110
|
|
|
111
111
|
export async function readSessionMessagesFromRuntime({ runtime, config, sessionKey, logger }) {
|
|
112
112
|
const normalizedSessionKey = trim(sessionKey);
|
|
113
|
-
if (!normalizedSessionKey
|
|
113
|
+
if (!normalizedSessionKey) {
|
|
114
|
+
logger?.warn?.("[mobcode-history] runtime reader skipped reason=missing_session_key");
|
|
115
|
+
return [];
|
|
116
|
+
}
|
|
117
|
+
if (!runtime?.agent?.session) {
|
|
118
|
+
logger?.warn?.(
|
|
119
|
+
`[mobcode-history] runtime reader skipped session=${normalizedSessionKey} reason=missing_runtime_agent_session runtimeKeys=${runtime && typeof runtime === "object" ? Object.keys(runtime).join(",") || "-" : "-"}`,
|
|
120
|
+
);
|
|
114
121
|
return [];
|
|
115
122
|
}
|
|
116
123
|
const candidates = resolveStoreCandidates(runtime, config, normalizedSessionKey);
|