fix(schedule): reconcile cron stack layer

This commit is contained in:
Tianyi Cui
2026-08-08 23:25:04 +08:00
parent b37877d80b
commit 3fa4c012b1
5 changed files with 6 additions and 16 deletions

View File

@@ -650,17 +650,6 @@ describe('Schedule tool protocol', () => {
expect(test.agent.session.events.filter(event => event.type === 'schedule/change')).toEqual([])
})
it('rejects an empty or padded delete id before persistence', async () => {
const test = await harness()
for (const id of ['', ' schedule-1']) {
expect(value(await execute(test, 'schedule_delete', { id }))).toEqual({
code: 'invalid_rule',
message: 'schedule_delete id must be non-empty without surrounding whitespace.',
})
}
expect(test.flushes.count).toBe(0)
})
it('returns a range error only after the create preflight', async () => {
const test = await harness()
expect(value(await execute(test, 'schedule_create', {