fix: 启用 /loop 命令,移除 feature('AGENT_TRIGGERS') gate

isKairosCronEnabled() 依赖 feature('AGENT_TRIGGERS'),在反编译版本中
feature() 始终返回 false,导致 /loop skill 被禁用。简化为仅检查
CLAUDE_CODE_DISABLE_CRON 环境变量。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
claude-code-best 2026-04-01 11:53:32 +08:00
parent 2fa91489c8
commit 33fe4940e1

View File

@ -34,14 +34,7 @@ export const DEFAULT_MAX_AGE_DAYS =
* `CLAUDE_CODE_DISABLE_CRON` is a local override that wins over GB.
*/
export function isKairosCronEnabled(): boolean {
return feature('AGENT_TRIGGERS')
? !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_CRON) &&
getFeatureValue_CACHED_WITH_REFRESH(
'tengu_kairos_cron',
true,
KAIROS_CRON_REFRESH_MS,
)
: false
return !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_CRON)
}
/**