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:
parent
2fa91489c8
commit
33fe4940e1
@ -34,14 +34,7 @@ export const DEFAULT_MAX_AGE_DAYS =
|
|||||||
* `CLAUDE_CODE_DISABLE_CRON` is a local override that wins over GB.
|
* `CLAUDE_CODE_DISABLE_CRON` is a local override that wins over GB.
|
||||||
*/
|
*/
|
||||||
export function isKairosCronEnabled(): boolean {
|
export function isKairosCronEnabled(): boolean {
|
||||||
return feature('AGENT_TRIGGERS')
|
return !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_CRON)
|
||||||
? !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_CRON) &&
|
|
||||||
getFeatureValue_CACHED_WITH_REFRESH(
|
|
||||||
'tengu_kairos_cron',
|
|
||||||
true,
|
|
||||||
KAIROS_CRON_REFRESH_MS,
|
|
||||||
)
|
|
||||||
: false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user