feat: enable /ultraplan and harden GrowthBook fallback chain#156
Merged
claude-code-best merged 2 commits intoclaude-code-best:mainfrom Apr 6, 2026
Merged
Conversation
added 2 commits
April 6, 2026 17:16
Ultraplan: - Add ULTRAPLAN to default build and dev feature flags - Move ultraplan from INTERNAL_ONLY_COMMANDS to public COMMANDS list - Remove USER_TYPE === 'ant' gate on ultraplan.isEnabled - Decompile UltraplanChoiceDialog and UltraplanLaunchDialog from official CLI 2.1.92 into src/components/ultraplan/ - Add missing imports in REPL.tsx GrowthBook: - Harden fallback chain so LOCAL_GATE_DEFAULTS are consulted even when global config is not yet initialized (early startup) Also: - Add idle-based away summary for terminals without focus events - Register cron list/delete skills - Gate fullscreen to ant-only
Collaborator
Author
Contributor
|
hello claude-code/src/components/ultraplan/UltraplanChoiceDialog.tsx Lines 46 to 58 in f17b7c7 我看了下源码,此处代码的实现是这样的: import { stat, writeFile } from 'fs/promises'
import { getTranscriptPath } from 'src/utils/sessionStorage.js'
...
const transcriptSaved = await stat(getTranscriptPath()).then(() => true, () => false)这里的逻辑可以完善下 另外 import { createCommandInputMessage } from '../../utils/messages.js';这个 if (transcriptSaved) {
setMessages(prev => [
...prev,
createSystemMessage(`Previous session saved · resume with: claude --resume ${previousSessionId}`, 'suggestion'),
])
} |
Collaborator
Author
你可以提交PR,按照你的需求来,我这边是逆向的2.1.92出来的,有更完善的建议都是可以自己提PR的(目前我这边在研究cli的群控,所以之前的暂时没有事件优化测试),还得麻烦大佬自己提PR了 同时Ultraplan内部依赖了bridge,同时bridge也影响了remoteControl,和remoteControlServer,在加上后面肯定会继续优化,支持微信,企业微信,等等来远程,目前还没有解决的思路,怎么在远程中也能利用,并且返回Ultraplan最后的选择项. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
/ultraplan: AddULTRAPLANbuild flag, move command out ofINTERNAL_ONLY_COMMANDS, removeant-onlygate, decompileUltraplanChoiceDialogandUltraplanLaunchDialogfrom official CLI 2.1.92LOCAL_GATE_DEFAULTSare consulted even when global config is not yet initialized (early startup)/cron-listand/cron-deletebundled skillsisFullscreenEnvEnabled()to ant-onlyChanged files (13)
build.tsULTRAPLANbuild flagscripts/dev.tsULTRAPLANdev flagsrc/commands.tssrc/commands/ultraplan.tsxisEnabled→() => truesrc/components/ultraplan/UltraplanChoiceDialog.tsxsrc/components/ultraplan/UltraplanLaunchDialog.tsxsrc/hooks/useAwaySummary.tssrc/screens/REPL.tsxsrc/services/analytics/growthbook.tssrc/skills/bundled/cronManage.tssrc/skills/bundled/index.tssrc/utils/fullscreen.tsDEV-LOG.mdTest plan
bun run buildpasses (480 files)bun run lintpasses (only pre-existing biome-ignore warnings)/ultraplancommand visible and launchable/cron-listand/cron-deletewith active KAIROS cron jobs