Execution: reclaim the directories of Ended Tickets after a retention

This commit is contained in:
2026-11-02 01:46:33 +08:00
parent b348d69beb
commit 3bee231da6
18 changed files with 326 additions and 18 deletions
+2 -2
View File
@@ -54,8 +54,8 @@ it('saves the Eval block on the Policy settings and the Executor with its execut
expect([...document.querySelectorAll('#dt-worker-model-efforts option')].map(option => option.getAttribute('value'))).toEqual(['high'])
await click(zh.save)
expect(server.settings.executor).toEqual({ maxWorkers: 5, directory: '/srv/work',
prepare: 'git worktree add "$DSH_SUPERAGENT_DIR"', blockedCommands: ['gh-personal', 'gh.other'], model: { provider: 'worker-provider',
model: 'worker-model', reasoningEffort: 'high' } })
prepare: 'git worktree add "$DSH_SUPERAGENT_DIR"', blockedCommands: ['gh-personal', 'gh.other'], reclaimAfterDays: 14,
model: { provider: 'worker-provider', model: 'worker-model', reasoningEffort: 'high' } })
expect(server.requests.filter(request => request.method === 'PUT').map(request => request.path)).toEqual(['settings/eval',
'settings/executor'])
})