File tree Expand file tree Collapse file tree
commands/remoteControlServer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export const DEFAULT_BUILD_FEATURES = [
4646 'KAIROS_BRIEF' , // Kairos 定时摘要(定时汇报当前状态)
4747 'AWAY_SUMMARY' , // 离线摘要(用户离开后生成总结)
4848 'ULTRAPLAN' , // 超级规划模式,深度分析后生成实施计划
49- 'DAEMON' , // 守护进程模式,长驻 supervisor 管理后台 worker
49+ // 'DAEMON', // 守护进程模式,长驻 supervisor 管理后台 worker(已禁用:内存占用过高)
5050 'ACP' , // ACP 代理协议,支持外部 agent 接入
5151 'WORKFLOW_SCRIPTS' , // 工作流脚本(.claude/workflows/ 中的 YAML/MD)
5252 'HISTORY_SNIP' , // 历史消息裁剪,压缩上下文窗口
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ const bridge = feature('BRIDGE_MODE')
7575 ? require ( './commands/bridge/index.js' ) . default
7676 : null
7777const remoteControlServerCommand =
78- feature ( 'DAEMON' ) && feature ( ' BRIDGE_MODE')
78+ feature ( 'BRIDGE_MODE' )
7979 ? require ( './commands/remoteControlServer/index.js' ) . default
8080 : null
8181const voiceCommand = feature ( 'VOICE_MODE' )
Original file line number Diff line number Diff line change @@ -3,9 +3,14 @@ import { isBridgeEnabled } from '../../bridge/bridgeEnabled.js'
33import type { Command } from '../../commands.js'
44
55function isEnabled ( ) : boolean {
6- if ( ! feature ( 'DAEMON' ) || ! feature ( ' BRIDGE_MODE') ) {
6+ if ( ! feature ( 'BRIDGE_MODE' ) ) {
77 return false
88 }
9+ if ( feature ( 'DAEMON' ) ) {
10+ return isBridgeEnabled ( )
11+ }
12+ // DAEMON feature disabled — still allow the command but warn at runtime
13+ // that headless/daemon worker mode is unavailable.
914 return isBridgeEnabled ( )
1015}
1116
Original file line number Diff line number Diff line change @@ -170,7 +170,12 @@ async function main(): Promise<void> {
170170 // perf-sensitive. No enableConfigs(), no analytics sinks at this layer —
171171 // workers are lean. If a worker kind needs configs/auth (assistant will),
172172 // it calls them inside its run() fn.
173- if ( feature ( 'DAEMON' ) && ( args [ 0 ] === '--daemon-worker' || args [ 0 ] ?. startsWith ( '--daemon-worker=' ) ) ) {
173+ if ( args [ 0 ] === '--daemon-worker' || args [ 0 ] ?. startsWith ( '--daemon-worker=' ) ) {
174+ if ( ! feature ( 'DAEMON' ) ) {
175+ console . error ( 'Error: --daemon-worker requires DAEMON feature to be enabled. Set FEATURE_DAEMON=1 or add DAEMON to DEFAULT_BUILD_FEATURES.' )
176+ process . exitCode = 1
177+ return
178+ }
174179 const kind = args [ 0 ] === '--daemon-worker' ? args [ 1 ] : args [ 0 ] . split ( '=' ) [ 1 ]
175180 const { runDaemonWorker } = await import ( '../daemon/workerRegistry.js' )
176181 await runDaemonWorker ( kind )
You can’t perform that action at this time.
0 commit comments