Add sidebar run permission preset for scheduled jobs.

Default inherits Host new-session access mode; humans can raise to workspace-write or full access. Agents never see or set the field.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-10 22:08:39 +08:00
parent ad6e90f197
commit 8cf624ce7f
8 changed files with 140 additions and 4 deletions

View file

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