fix: honor Harness default agent preset for IM sessions

This commit is contained in:
xmanrui 2026-08-19 03:26:02 +08:00
parent 26558e5e71
commit 8a64f2bc8c
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,