fix: resolve diagnostic paths and recover time injection

This commit is contained in:
Evandro Fonseca Junior committed 2026-09-30 17:10:30 -03:00
1 parent a9364a344a
commit a46fb916a0
9 files changed
+48 -12

No files matched your search

+3 -4
View File
@@ -75,11 +75,10 @@ export function getTelegramDiagnosticsDisplayPaths(profileName?: string): {
state: string;
logs: string;
} {
const suffix = getTelegramProfilePathSuffix(profileName);
const profileSlug = suffix.slice(1);
const agentDir = resolveAgentDir();
return {
state: `~/.pi/agent/tmp/telegram/state${suffix}.json`,
logs: `~/.pi/agent/tmp/telegram/logs${profileSlug ? `.${profileSlug}` : ""}.jsonl`,
state: resolveTelegramProfileTempFilePath("state", "json", agentDir, profileName),
logs: resolveTelegramProfileTempFilePath("logs", "jsonl", agentDir, profileName),
};
}