merge: honor Harness default agent preset

This commit is contained in:
xmanrui 2026-08-19 11:29:44 +08:00
commit 7e96c9ce55
15 changed files with 109 additions and 34 deletions

View file

@ -81,7 +81,7 @@ export async function createProductionController(ctx, config = {}, internals = {
const harness = new Harness({
baseUrl: harnessOrigin(ctx.webServer, config.harnessBaseUrl),
workspace: defaultWorkspace,
agentPreset: config.agentPreset ?? 'standard',
...(config.agentPreset == null ? {} : { agentPreset: config.agentPreset }),
autostart: false,
dshBin: config.dshBin ?? 'dsh',
...(commandExecutor ? { commandExecutor } : {}),