fix(httpapi): model optional worktree payload as no content (#29246)

This commit is contained in:
Kit Langton
2026-05-25 15:57:12 -04:00
committed by GitHub
parent a99ebd1d65
commit b46cec2a7d
3 changed files with 26 additions and 4 deletions
@@ -104,9 +104,9 @@ export const experimentalHandlers = HttpApiBuilder.group(InstanceHttpApi, "exper
})
const worktreeCreate = Effect.fn("ExperimentalHttpApi.worktreeCreate")(function* (ctx: {
payload: Worktree.CreateInput | undefined
payload: typeof Worktree.CreateInput.Type | void
}) {
return yield* mapWorktreeError(worktreeSvc.create(ctx.payload))
return yield* mapWorktreeError(worktreeSvc.create(ctx.payload ?? undefined))
})
const worktreeRemove = Effect.fn("ExperimentalHttpApi.worktreeRemove")(function* (input: {