[BUG] Routine creation fails with HTTP 400: job_config translate rejects unknown field "allow_unrestricted_git_push"
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Creating a new routine via the web UI (claude.ai/code/routines) fails. Clicking "Create" shows the toast "Failed to create routine. You can try again." The POST to /triggers returns HTTP 400.
The response body shows the create request is rejected during the job_config v1→v2 translation because the payload contains a field the v2 CreateSessionRequest proto does not recognize:
"translate job_config v1→v2: job_config is not a valid CreateSessionRequest: proto: (line 1:2506): unknown field \"allow_unrestricted_git_push\""
The web frontend is serializing "allow_unrestricted_git_push" into job_config, but the backend's v2 CreateSessionRequest schema has no such field, so the strict unmarshaller rejects the entire request. No routine is created.
This is frontend/backend version skew on the git-push permission toggle. Appears related to #58141 (the same setting is mishonored at push time / runtime), but this is a distinct defect: the field the setting produces is not accepted by the create endpoint at all, so creation never succeeds.
request_id: req_011CcaRS6PHNU7f6diyJmRFa
What Should Happen?
The routine should be created successfully and appear in the routines list. The frontend should only send fields recognized by the v2 CreateSessionRequest schema.
Error Messages/Logs
Steps to Reproduce
- Go to claude.ai/code/routines and click "New routine".
- Enter a name and instructions.
- Attach a GitHub repository and environment.
- Add a schedule trigger (weekdays at a set time).
- Click "Create".
- Observe the toast "Failed to create routine. You can try again."
- In DevTools → Network, the POST to /triggers returns 400 with the "unknown field allow_unrestricted_git_push" error above.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
web (claude.ai/code/routines)
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
Non-interactive/CI environment
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗