claude-code - 💡(How to fix) Fix /schedule: 'Run now' fails on both CLI (RemoteTrigger run action) and web UI [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54256Fetched 2026-04-29 06:32:09
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Triggering an on-demand run of an existing routine fails through both the RemoteTrigger tool (action: "run") and the web UI's Run now button. The routine itself is healthy and continues to fire on its cron schedule — only the manual-run path is broken.

Error Message

{"type":"error","error":{"type":"invalid_request_error","message":"trigger_id: Extra inputs are not permitted"}} The validation error message trigger_id: Extra inputs are not permitted suggests the request body is being validated with a strict (extra=forbid) schema and trigger_id — which belongs only in the URL path POST /v1/code/triggers/{trigger_id}/run — is being inserted into the body as well, presumably by a shared serializer also used by get/update. Same root cause likely behind the web UI's silent toast.

Root Cause

The validation error message trigger_id: Extra inputs are not permitted suggests the request body is being validated with a strict (extra=forbid) schema and trigger_id — which belongs only in the URL path POST /v1/code/triggers/{trigger_id}/run — is being inserted into the body as well, presumably by a shared serializer also used by get/update. Same root cause likely behind the web UI's silent toast.

Fix Action

Workaround

Wait for the next cron fire — the cron path is unaffected.

Code Example

{"type":"error","error":{"type":"invalid_request_error","message":"trigger_id: Extra inputs are not permitted"}}
RAW_BUFFERClick to expand / collapse

Summary

Triggering an on-demand run of an existing routine fails through both the RemoteTrigger tool (action: "run") and the web UI's Run now button. The routine itself is healthy and continues to fire on its cron schedule — only the manual-run path is broken.

Reproduction

  1. Create any routine via /schedule (e.g., a recurring agent on cron_expression: "15 */2 * * *")
  2. Either:

Observed

CLI path — HTTP 400:

{"type":"error","error":{"type":"invalid_request_error","message":"trigger_id: Extra inputs are not permitted"}}

Tried with no body, with body: {}, and with various body shapes — all fail identically. get/update/create against the same trigger_id all succeed, so the routine ID is valid.

Web UI path — orange toast: "Failed to start run. You can try again." Retrying produces the same toast.

Expected

Either path should enqueue a one-off run of the routine.

Suspected cause

The validation error message trigger_id: Extra inputs are not permitted suggests the request body is being validated with a strict (extra=forbid) schema and trigger_id — which belongs only in the URL path POST /v1/code/triggers/{trigger_id}/run — is being inserted into the body as well, presumably by a shared serializer also used by get/update. Same root cause likely behind the web UI's silent toast.

Workaround

Wait for the next cron fire — the cron path is unaffected.

extent analysis

TL;DR

Remove the trigger_id from the request body when calling the RemoteTrigger tool or modify the web UI's Run now button to not include it.

Guidance

  • Verify that the trigger_id is being passed correctly in the URL path for the RemoteTrigger tool, and not included in the request body.
  • Check the shared serializer used by get/update and run actions to ensure it's not inserting the trigger_id into the body.
  • Test the RemoteTrigger tool with an empty request body to confirm that the issue is resolved.
  • Consider modifying the web UI's Run now button to use the same corrected request format as the RemoteTrigger tool.

Example

No code snippet is provided as the issue is related to the request format and not a specific code implementation.

Notes

The provided workaround of waiting for the next cron fire is a temporary solution and does not address the root cause of the issue. The suggested fix aims to resolve the problem by correcting the request format.

Recommendation

Apply workaround: Remove the trigger_id from the request body, as it is likely causing the validation error and preventing the manual run from working. This change should allow the RemoteTrigger tool and web UI's Run now button to function correctly.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING