Add sidebar-only agentAccess lock for scheduled jobs.

Default remains allow; humans can deny agent pause/resume/retrigger/delete in the panel while tools never expose or set the field.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-10 21:54:31 +08:00
parent 4472a9c74b
commit ad6e90f197
7 changed files with 130 additions and 11 deletions

View file

@ -108,6 +108,7 @@ export function publicJob(job, runs = null) {
model: job.model || '',
reasoningEffort: job.reasoningEffort || '',
agentPreset: job.agentPreset || '',
agentAccess: job.agentAccess === 'deny' ? 'deny' : 'allow',
ownerEmpNo: job.ownerEmpNo || '',
ownerDisplayName: job.ownerDisplayName || '',
delivery: job.delivery && job.delivery.kind === 'im'