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

@ -110,7 +110,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 }),
// This plugin is already hosted by a running DSH process. Starting a
// second DSH would create a competing server and lifecycle.
autostart: false,