fix(autonomy): hand_trigger 从 null 映射改为 handAutoTrigger 字段
根因: autonomy-manager.ts:268 将 hand_trigger 硬编码为 null, 导致任何自主权级别都无法自动触发 Hand。 新增 handAutoTrigger 字段,autonomous 级别默认 true。 UI 增加对应开关。
This commit is contained in:
@@ -381,6 +381,15 @@ export function AutonomyConfig({ className = '', onConfigChange }: AutonomyConfi
|
||||
})
|
||||
}
|
||||
/>
|
||||
<ActionToggle
|
||||
label="自动触发 Hand 能力"
|
||||
enabled={config.allowedActions.handAutoTrigger}
|
||||
onChange={(enabled) =>
|
||||
updateConfig({
|
||||
allowedActions: { ...config.allowedActions, handAutoTrigger: enabled },
|
||||
})
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user