Repository navigation
Commit 1f82e2d
committed
fix(server): map schedule approval errors in the experimental create route
#59457 added the experimental schedule.create route, and Schedule.create can
now fail with Permission.BlockedError or Permission.CorrectedError when a
code condition's allowlisted tools are denied or rejected at creation. Map
both to ForbiddenError so the route's error type stays within the API
contract.
Verified: bun typecheck (server, core), server test/schedule.test.ts.1 parent d98a7a3 commit 1f82e2d
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
0 commit comments