Make origin session mirror opt-in per job.

Default mirrorToSession to false so cron summaries stay in run history unless the sidebar checkbox or mirror_to_session is enabled.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-08 21:00:20 +08:00
parent 933bad9201
commit 819feed310
10 changed files with 128 additions and 17 deletions

View file

@ -45,6 +45,7 @@ test('installable bundle declares host apply, client half, unique id, and no @de
assert.match(host, /agentDefaultModel/)
assert.match(host, /deliverRunToIm/)
assert.match(host, /mirrorRunToSession/)
assert.match(host, /mirrorToSession/)
assert.match(host, /getAgents/)
assert.match(host, /PLUGIN_NAME = 'dsh-ops-cron'/)
assert.match(host, /API_PREFIX = '\/dsh-ops-cron'/)
@ -65,6 +66,7 @@ test('installable bundle declares host apply, client half, unique id, and no @de
assert.match(client, /ModelField/)
assert.match(client, /PresetField/)
assert.match(client, /agentPreset/)
assert.match(client, /mirrorToSession/)
assert.match(client, /inject = \['slots', 'locale', 'settingsScope'\]/)
const preset = await readFile(join(root, 'lib/preset.js'), 'utf8')
assert.match(preset, /resolveCreateAgentPreset/)