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

@ -219,7 +219,7 @@ function jobLine(job) {
/** Strip human-only fields so agents cannot see or game panel-only controls. */
function forAgentView(job) {
if (!job || typeof job !== 'object') return job
const { agentAccess: _hidden, ...rest } = job
const { agentAccess: _a, permissionPreset: _p, ...rest } = job
return rest
}