Skip to content

fix(cron): suppress feedback for scheduled turns#2777

Open
bogdanovich wants to merge 1 commit intosipeed:mainfrom
bogdanovich:fix/cron-scheduled-feedback
Open

fix(cron): suppress feedback for scheduled turns#2777
bogdanovich wants to merge 1 commit intosipeed:mainfrom
bogdanovich:fix/cron-scheduled-feedback

Conversation

@bogdanovich
Copy link
Copy Markdown
Contributor

@bogdanovich bogdanovich commented May 6, 2026

Summary

Scheduled cron agent jobs currently run through the same foreground message path as user messages. When tool_feedback is enabled, background cron jobs can emit transient progress/tool messages such as Working... into the chat even though there is no active user turn.

This PR adds a scheduled agent execution path for cron jobs that mirrors the existing heartbeat behavior:

  • suppress interactive tool feedback for scheduled turns
  • skip session history loading for scheduled turns
  • keep final cron responses unchanged
  • preserve compatibility with existing JobExecutor implementations by using an optional scheduled executor interface

Tests

  • go test ./pkg/tools -run 'CronTool_ExecuteJob'
  • go test ./pkg/agent -run 'ProcessScheduled|ProcessHeartbeat|ToolFeedback'
  • git diff --check HEAD~1..HEAD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant