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

@ -630,6 +630,9 @@ export function createHostService(options = {}) {
model: patch.model !== undefined ? patch.model : job.model,
reasoningEffort: patch.reasoningEffort !== undefined ? patch.reasoningEffort : job.reasoningEffort,
agentPreset: patch.agentPreset !== undefined ? patch.agentPreset : job.agentPreset,
agentAccess: patch.agentAccess !== undefined
? patch.agentAccess
: (patch.agent_access !== undefined ? patch.agent_access : job.agentAccess),
delivery: patch.delivery !== undefined
? mergeDeliveryMention(job.delivery, patch.delivery)
: job.delivery,