claude-code - 💡(How to fix) Fix Remote triggers silently fail to execute — next_run_at never advances [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

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#45136Fetched 2026-04-09 08:12:22
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×1cross-referenced ×1

Remote triggers return HTTP 200 on both scheduled and manual runs but never actually execute. The next_run_at timestamp does not advance after a scheduled fire time passes, and no agent output is produced.

Root Cause

Remote triggers return HTTP 200 on both scheduled and manual runs but never actually execute. The next_run_at timestamp does not advance after a scheduled fire time passes, and no agent output is produced.

RAW_BUFFERClick to expand / collapse

Summary

Remote triggers return HTTP 200 on both scheduled and manual runs but never actually execute. The next_run_at timestamp does not advance after a scheduled fire time passes, and no agent output is produced.

Steps to Reproduce

  1. Create a remote trigger via the API with a daily cron schedule
  2. Wait for the scheduled next_run_at time to pass
  3. Observe that next_run_at remains frozen at the original scheduled time
  4. Call the /run endpoint manually — returns HTTP 200 but produces no output

Expected Behavior

  • Trigger executes at the scheduled time
  • next_run_at advances to the next scheduled time after a run
  • Manual /run call executes the agent and produces output (e.g., emails sent)

Actual Behavior

  • No execution occurs (no emails sent, no agent activity observed)
  • next_run_at remains frozen
  • Manual /run returns HTTP 200 with no effect

Environment Details

  • Trigger ID: trig_01BYVS3VHx6mUJ4dRRiTtcZS
  • Environment ID: env_018nUtbgL7UPYGhU2PQLvGCT
  • Cron expression: 0 10 * * *
  • MCP connector: Gmail (connector_uuid: 5e6343f1-fd13-491f-9e5f-097e168e4cb1)
  • Model: claude-sonnet-4-6
  • Account: alex@taube ([email protected])

Additional Notes

A second trigger (trig_01RHWSEumuWMxDcki7P8663R, now disabled) on the same account exhibits the same behavior — it was created April 3, 2026 and also never executed successfully.

Recreating the trigger via API is not possible without a valid environment_id, which is not obtainable through the trigger API itself.

extent analysis

TL;DR

Investigate the cron scheduling and trigger execution mechanism to identify why scheduled and manual runs are not executing despite returning HTTP 200.

Guidance

  • Verify the cron expression 0 10 * * * is correctly interpreted and scheduled by the system, ensuring it aligns with the expected daily execution time.
  • Check the system's clock and timezone settings to ensure they match the expected timezone for the scheduled trigger, as discrepancies could prevent execution.
  • Examine the MCP connector configuration, specifically the Gmail connector, to ensure it is properly set up and authorized to execute actions (like sending emails) on behalf of the account alex@taube.
  • Review the system logs for any errors or warnings related to trigger execution, focusing on the times when the trigger is scheduled to run or when manual runs are attempted.

Example

No specific code snippet can be provided without more details on the API or system internals, but ensuring the cron expression is correctly formatted and understood by the system is crucial. For example, if the system uses a standard cron parser, the expression 0 10 * * * should execute a command daily at 10:00 AM.

Notes

The issue seems to be related to the scheduling or execution mechanism rather than the trigger creation process itself, as both scheduled and manual runs fail to execute. The fact that two separate triggers exhibit the same behavior suggests a systemic issue rather than a problem with a specific trigger configuration.

Recommendation

Apply a workaround by manually executing the agent or action outside of the scheduling system to verify if the issue is isolated to the scheduling mechanism. This can help determine if the problem lies in the scheduling system or the execution of the agent itself.

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