Skip to content

Commit a6d462f

Browse files
unraidclaude
andcommitted
fix: enable AUTOFIX_PR feature flag by default in build
`docs/jira/AUTOFIX-PR-001.md:134` documents that the AUTOFIX_PR flag "should be added to DEFAULT_BUILD_FEATURES" but the actual addition to scripts/defines.ts was never made. Result: every build/dev produced an /autofix-pr command whose isEnabled() returns false (because src/commands/autofix-pr/index.ts:9 gates on `feature('AUTOFIX_PR')`), so the command never appeared in /help and was effectively dead code. The flag is fork-introduced (0 references in upstream/main) so adding it here doesn't conflict with upstream policy. Other feature() calls the PR added (KAIROS_GITHUB_WEBHOOKS, etc.) are upstream-owned flags where we shouldn't override the upstream default. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7d8d66b commit a6d462f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/defines.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,6 @@ export const DEFAULT_BUILD_FEATURES = [
9292
// 'TEAMMEM', // 已禁用:依赖 COORDINATOR_MODE,邮箱文件无限增长
9393
// SSH Remote
9494
'SSH_REMOTE', // SSH 远程连接,本地 REPL + 远端工具执行
95+
// Autofix PR
96+
'AUTOFIX_PR', // /autofix-pr 命令(fork 引入;docs/jira/AUTOFIX-PR-001.md 承诺默认开启)
9597
] as const

0 commit comments

Comments
 (0)