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:
co-authored by
Claude Opus 4.6
parent
9d82e2329d
commit
d39ebad09f
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user