Mirror scheduled-run summaries into the origin effective session.

Pin origin at create time, keep isolated fire sessions for audit, and after IM/DSH delivery resume or open the origin chat to append the same summary for follow-ups.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-06 12:45:37 +08:00
parent 2e690c30c8
commit 29d946f3dd
12 changed files with 527 additions and 26 deletions

View file

@ -44,6 +44,8 @@ test('installable bundle declares host apply, client half, unique id, and no @de
const host = await readFile(join(root, 'lib/host.js'), 'utf8')
assert.match(host, /agentDefaultModel/)
assert.match(host, /deliverRunToIm/)
assert.match(host, /mirrorRunToSession/)
assert.match(host, /getAgents/)
assert.match(host, /PLUGIN_NAME = 'dsh-ops-cron'/)
assert.match(host, /API_PREFIX = '\/dsh-ops-cron'/)
assert.match(host, /resolveSessionPlacement/)
@ -68,7 +70,10 @@ test('installable bundle declares host apply, client half, unique id, and no @de
assert.match(preset, /resolveCreateAgentPreset/)
const delivery = await readFile(join(root, 'lib/delivery.js'), 'utf8')
assert.match(delivery, /resolveCreateDelivery/)
assert.match(delivery, /resolveCreateOrigin/)
assert.match(delivery, /mirrorRunToSession/)
assert.match(delivery, /deliverRunToIm/)
assert.match(client, /origin/)
const prd = await readFile(join(root, 'docs/PRD.md'), 'utf8')
assert.match(prd, /定时任务/)
assert.match(prd, /dsh-schedule/)