Files
PaperClipAI/server
b635938f9e fix(issues): return 422 for invalid existingBranch workspace settings
Issue create, child create, and update now reject invalid
executionWorkspaceSettings.workspaceStrategy.existingBranch semantics
(bad branch syntax, placement outside isolated_workspace + git_worktree,
combination with branchTemplate) with HTTP 422 instead of the generic
Zod 400, keeping the identical field-specific details payload. The
carve-out fires only when every validation issue targets that exact
field path, so all other validation failures keep the long-standing
400 contract. Rejection happens in route middleware before any handler
or service code, so a rejected request persists no settings and creates
no execution workspace. OpenAPI registrations for the three routes now
document 422.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 10:04:57 +00:00
..