fix(cli): guard experimental skills config lookup

This commit is contained in:
tanzhenxin 2026-01-08 15:54:43 +08:00
parent 0e769e100b
commit a47bdc0b06

View file

@ -79,7 +79,7 @@ export class BuiltinCommandLoader implements ICommandLoader {
quitCommand,
restoreCommand(this.config),
resumeCommand,
...(this.config?.getExperimentalSkills() ? [skillsCommand] : []),
...(this.config?.getExperimentalSkills?.() ? [skillsCommand] : []),
statsCommand,
summaryCommand,
themeCommand,