Merge branch 'develop' into feature/newarch

This commit is contained in:
Fredrik Burmester
2025-09-29 15:07:23 +02:00
38 changed files with 2092 additions and 448 deletions

View File

@@ -77,6 +77,17 @@ export const clearLogs = () => {
storage.remove("logs");
};
export const dumpDownloadDiagnostics = (extra: any = {}) => {
const diagnostics = {
timestamp: new Date().toISOString(),
processes: extra?.processes || [],
nativeTasks: extra?.nativeTasks || [],
focusedProcess: extra?.focusedProcess || null,
};
writeDebugLog("Download diagnostics", diagnostics);
return diagnostics;
};
export function useLog() {
const context = useContext(LogContext);
if (context === null) {