From 3679774aeb3fd421a8c256d6832d1983694136ad Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Mon, 19 Oct 2026 08:03:44 +0000 Subject: [PATCH] fix(app): keep motion tuning out of built apps (#57008) Co-authored-by: Hona <10430890+Hona@users.noreply.github.com> --- packages/gui-extensions/src/debug/renderer.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/gui-extensions/src/debug/renderer.tsx b/packages/gui-extensions/src/debug/renderer.tsx index 75d45781229..3ab43c7e863 100644 --- a/packages/gui-extensions/src/debug/renderer.tsx +++ b/packages/gui-extensions/src/debug/renderer.tsx @@ -19,7 +19,8 @@ const setup: Setup = (ctx) => { setMotion((value) => !value) } - const developer = channel !== "prod" + // Motion tuning is a dev-server tool: no built app (dev, beta or prod channel) ships its button or panel. + const motionTools = import.meta.env.DEV ctx.add( Command, @@ -31,7 +32,7 @@ const setup: Setup = (ctx) => { }), ) - if (developer) + if (motionTools) ctx.add( Command, (): Command => ({ @@ -50,12 +51,12 @@ const setup: Setup = (ctx) => { - + @@ -64,7 +65,7 @@ const setup: Setup = (ctx) => { ), }) - if (!developer) return + if (channel !== "dev" && channel !== "local") return ctx.add( TitlebarItem, (): TitlebarItem => ({