The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): avoid deprecated ASAR stat when resolving renderer
Daniel Hinnerkopf1ad2e8b066f5
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.tsindex 02d93d3d7fc..412a0550037 100644--- a/apps/desktop/electron/main.ts+++ b/apps/desktop/electron/main.ts@@ -5039,7 +5039,14 @@ function resolveRendererIndexWithMissing(): { index: string; missing: string[] }// unpackedPathFor is a no-op outside an asar, so both candidates collapse// to APP_ROOT/dist and the original order is preserved.const candidates = IS_PACKAGED ? [webDistIndex, asarIndex] : [asarIndex, webDistIndex]- const present = [...new Set(candidates)].filter(fileExists)+ const present = [...new Set(candidates)].filter(candidate => {+ try {+ fs.readFileSync(candidate, 'utf8')+ return true+ } catch {+ return false+ }+ })// index.html and the hashed chunks it names are one generation. An update// that replaces only one of the two shipped copies (app.asar vs