Skip to content

Conversation

@lifeizhou-ap
Copy link
Collaborator

@lifeizhou-ap lifeizhou-ap commented Aug 6, 2025

Fix issue #3882

What

  • Used chat mode for foreground job and auto for background job
  • Set the extensions for schedule job in legacy mode
  • UI
    • enabled the recipe progress/messages in the conversation panel when auto executing foreground schedule job
    • do not show the prompt in the chat input for auto executed foreground schedule job

@lifeizhou-ap lifeizhou-ap marked this pull request as ready for review August 6, 2025 09:42
match mode {
Some("foreground") => "auto".to_string(),
Some("background") => "chat".to_string(),
Some("foreground") => "chat".to_string(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never understood this code, how would chat help in either foreground or background mode?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good question. My understanding is:

  • This is only used in the default scheduler mode (not the temporal scheduler mode)

  • For temporal mode, it opens a new window with the foreground job.

  • I tested default mode with foreground job, it seems working as the same as background job except different mode. Just wondering do we still need foreground for default schedule job? @Kvadratni

onStop={onStopGoose}
commandHistory={commandHistory}
initialValue={_input || ''}
initialValue={recipeConfig?.isScheduledExecution ? '' : _input || ''}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's drop the _ for input here while we are at it

@lifeizhou-ap lifeizhou-ap merged commit 67e6362 into main Aug 7, 2025
11 checks passed
@lifeizhou-ap lifeizhou-ap deleted the lifei/fix-schedule-recipe branch August 7, 2025 01:18
michaelneale added a commit that referenced this pull request Aug 7, 2025
* main:
  chore: use a Conversation type (#3735)
  docs: cli command history search (#3905)
  fixed recipe schedule jobs (#3880)
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.

3 participants