From 61a23c19bf0ebca2235e3336bc1d96f02654325a Mon Sep 17 00:00:00 2001 From: paoloanzn Date: Tue, 31 Mar 2026 17:12:22 +0200 Subject: [PATCH] fix: make ultraplan command available in external builds ultraplan was blocked by two gates that restricted it to ant-only builds: 1. It was in INTERNAL_ONLY_COMMANDS (only included when USER_TYPE=ant) 2. Its own isEnabled checked process.env.USER_TYPE === 'ant' Move it to the main COMMANDS array and remove the ant-only isEnabled gate. The feature('ULTRAPLAN') flag already controls whether the code is loaded. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/commands.ts | 2 +- src/commands/ultraplan.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands.ts b/src/commands.ts index 10f03b2..9e4bf81 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -236,7 +236,6 @@ export const INTERNAL_ONLY_COMMANDS = [ mockLimits, bridgeKick, version, - ...(ultraplan ? [ultraplan] : []), ...(subscribePr ? [subscribePr] : []), resetLimits, resetLimitsNonInteractive, @@ -340,6 +339,7 @@ const COMMANDS = memoize((): Command[] => [ tasks, ...(workflowsCmd ? [workflowsCmd] : []), ...(torch ? [torch] : []), + ...(ultraplan ? [ultraplan] : []), ...(process.env.USER_TYPE === 'ant' && !process.env.IS_DEMO ? INTERNAL_ONLY_COMMANDS : []), diff --git a/src/commands/ultraplan.tsx b/src/commands/ultraplan.tsx index 17710eb..e492c10 100644 --- a/src/commands/ultraplan.tsx +++ b/src/commands/ultraplan.tsx @@ -463,7 +463,7 @@ export default { name: 'ultraplan', description: `~10–30 min · Claude Code on the web drafts an advanced plan you can edit and approve. See ${CCR_TERMS_URL}`, argumentHint: '', - isEnabled: () => "external" === 'ant', + isEnabled: () => true, load: () => Promise.resolve({ call })