fix(autonomy): hand_trigger 从 null 映射改为 handAutoTrigger 字段

根因: autonomy-manager.ts:268 将 hand_trigger 硬编码为 null,
导致任何自主权级别都无法自动触发 Hand。
新增 handAutoTrigger 字段,autonomous 级别默认 true。
UI 增加对应开关。
This commit is contained in:
iven
2026-04-11 12:32:19 +08:00
parent 33c1bd3866
commit be01127098
2 changed files with 14 additions and 1 deletions

View File

@@ -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>