Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(desktop-app): normalize teamless session scope (R12-M5)
Josuée4d25ab47abe
diff --git a/desktop-app/src/appService.ts b/desktop-app/src/appService.tsindex d9f18999c..cee0e1456 100644--- a/desktop-app/src/appService.ts+++ b/desktop-app/src/appService.ts@@ -1284,7 +1284,8 @@ export class AppService {const assertContextIsCurrent = () => {this.assertSessionGeneration(context.sessionGeneration)- if (this.sessionToken !== context.sessionToken || this.me?.teamId !== context.teamId) {+ const currentTeamId = String(this.me?.teamId || '').trim()+ if (this.sessionToken !== context.sessionToken || currentTeamId !== context.teamId) {throw new Error('stale_auth_epoch: authenticated team scope changed during operation')}this.assertAuthEnvironmentBinding(context.environmentBinding)