Skip to content

The agent that grows with you

feat(desktop): show local models on Linux x64

emozilla9c951a9f113a
diff --git a/apps/desktop/electron/feature-flags.test.ts b/apps/desktop/electron/feature-flags.test.ts
index aaa362ca6a6..6e9144051dd 100644
--- a/apps/desktop/electron/feature-flags.test.ts
+++ b/apps/desktop/electron/feature-flags.test.ts
@@ -1,14 +1,17 @@
// feature-flags.ts is the single resolver for which gated surfaces are on in
-// this artifact. These tests pin the flag table: local models ship on the
-// packaged desktop platforms (Windows, macOS) on every channel; elsewhere the
-// launch argv opts in with --local.
+// this artifact. These tests pin the flag table: local models ship on Windows,
+// macOS and Linux x64 on every channel; elsewhere the launch argv opts in with
+// --local.
import assert from 'node:assert/strict'
import { test } from 'vitest'
import { isCanaryTag, resolveFeatureFlags } from './feature-flags'
-const shipsLocalModels: boolean = process.platform === 'win32' || process.platform === 'darwin'
+const shipsLocalModels: boolean =
+ process.platform === 'win32' ||
+ process.platform === 'darwin' ||
+ (process.platform === 'linux' && process.arch === 'x64')
test('without --local, local models follow the platform on every channel', () => {
for (const canary of [false, true]) {
diff --git a/apps/desktop/electron/feature-flags.ts b/apps/desktop/electron/feature-flags.ts
index e481411473a..a3b80923b25 100644
--- a/apps/desktop/electron/feature-flags.ts
+++ b/apps/desktop/electron/feature-flags.ts
@@ -1,6 +1,10 @@
const featureFlags = {
/** Local-models GUI surfaces (settings pane, pickers, statusbar, tips). */
- localModels: ({ argv }) => process.platform === 'win32' || process.platform === 'darwin' || argv.includes('--local')
+ localModels: ({ argv }) =>
+ process.platform === 'win32' ||
+ process.platform === 'darwin' ||
+ (process.platform === 'linux' && process.arch === 'x64') ||
+ argv.includes('--local')
} satisfies Record<string, (args: FeatureFlagInput) => boolean>
export type FeatureFlags = { [K in keyof typeof featureFlags]: boolean }