mirror of
https://github.com/hansjone/dsh-ops-cron.git
synced 2026-10-11 06:40:45 +08:00
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:
parent
933bad9201
commit
819feed310
10 changed files with 128 additions and 17 deletions
|
|
@ -100,6 +100,8 @@ export function createJobRecord(input, state, now) {
|
|||
const delivery = normalizeDelivery(input.delivery)
|
||||
const origin = normalizeOrigin(input.origin)
|
||||
const agentPreset = normalizeAgentPresetId(input.agentPreset ?? input.agent_preset)
|
||||
const mirrorToSession = input.mirrorToSession === true
|
||||
|| input.mirror_to_session === true
|
||||
const ownerEmpNo = normalizeOwnerEmpNo(input.ownerEmpNo)
|
||||
const ownerDisplayName = typeof input.ownerDisplayName === 'string'
|
||||
? input.ownerDisplayName.trim().slice(0, 80)
|
||||
|
|
@ -118,6 +120,7 @@ export function createJobRecord(input, state, now) {
|
|||
reasoningEffort: model.reasoningEffort,
|
||||
agentPreset,
|
||||
delivery,
|
||||
mirrorToSession,
|
||||
ownerEmpNo,
|
||||
ownerDisplayName,
|
||||
...origin ? { origin } : {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue