Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
Gate embedded commit hash lookup to packaged desktop builds
Julius Marminge8a2f2a5c2b05
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.tsindex 67bfd39c0..a85fba321 100644--- a/apps/desktop/src/main.ts+++ b/apps/desktop/src/main.ts@@ -115,8 +115,19 @@ function resolveAboutCommitHash(): string | null {return aboutCommitHashCache;}- aboutCommitHashCache =- normalizeCommitHash(process.env.T3CODE_COMMIT_HASH) ?? resolveEmbeddedCommitHash();+ const envCommitHash = normalizeCommitHash(process.env.T3CODE_COMMIT_HASH);+ if (envCommitHash) {+ aboutCommitHashCache = envCommitHash;+ return aboutCommitHashCache;+ }++ // Only packaged builds are required to expose commit metadata.+ if (!app.isPackaged) {+ aboutCommitHashCache = null;+ return aboutCommitHashCache;+ }++ aboutCommitHashCache = resolveEmbeddedCommitHash();return aboutCommitHashCache;}