fix(openclaw): persistent anonymous telemetry ID, flush fix, and email resolution (#4790)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Saket Aryan
2026-04-11 20:57:14 +05:30
committed by GitHub
co-authored by Claude Opus 4.6
parent 9d82e2329d
commit d39ebad09f
10 changed files with 215 additions and 11 deletions
+1 -2
View File
@@ -621,7 +621,6 @@ export function registerCliCommands(
runId?: string,
): SearchOptions => {
const base = buildSearchOptions(userIdOverride, lim, runId);
delete (base as any).source;
base.threshold = 0.3;
return base;
};
@@ -718,7 +717,7 @@ export function registerCliCommands(
: effectiveUserId(getCurrentSessionId());
const result = await provider.add(
[{ role: "user", content: text }],
{ user_id: uid },
{ user_id: uid, source: "OPENCLAW" },
);
const count = result.results?.length ?? 0;
if (count > 0) {
+2
View File
@@ -34,6 +34,7 @@ export interface PluginAuthConfig {
autoRecall?: boolean;
autoCapture?: boolean;
topK?: number;
anonymousTelemetryId?: string;
}
// ============================================================================
@@ -78,6 +79,7 @@ export function readPluginAuth(): PluginAuthConfig {
autoRecall: cfg.autoRecall as boolean | undefined,
autoCapture: cfg.autoCapture as boolean | undefined,
topK: cfg.topK as number | undefined,
anonymousTelemetryId: cfg.anonymousTelemetryId as string | undefined,
};
}