Conversation
There was a problem hiding this comment.
Pull request overview
This PR implements error state management for the copilot feature by capturing workflow execution errors and passing them to the AI agent to provide contextual help. The changes enable the copilot to detect when a workflow execution fails and guide users on how to fix the issue.
- Added error tracking to copilot store to capture workflow execution errors
- Updated the AI agent prompt to instruct on error handling when errors are present
- Modified context handling to preserve error state across copilot operations
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| WorkflowEditorSpringAIAgent.java | Added AI prompt instruction to handle workflow execution errors |
| WorkflowExecutionsUtils.ts | Added utility function to extract error information from workflow executions |
| useCopilotStore.ts | Added error state management with setter function to track workflow execution errors |
| CopilotRuntimeProvider.tsx | Updated to pass workflow execution error to AI agent state |
| CopilotButton.tsx | Modified to preserve existing context (including errors) when opening copilot |
| useWorkflowLayout.ts | Modified to preserve existing context (including errors) when opening copilot |
| WorkflowExecutionsTestOutput.tsx | Added logic to detect errors and update copilot store with error details |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...ilot-service/src/main/java/com/bytechef/ee/ai/copilot/agent/WorkflowEditorSpringAIAgent.java
Outdated
Show resolved
Hide resolved
client/src/shared/components/workflow-executions/WorkflowExecutionsUtils.ts
Outdated
Show resolved
Hide resolved
client/src/shared/components/workflow-executions/WorkflowExecutionsUtils.ts
Outdated
Show resolved
Hide resolved
client/src/shared/components/copilot/runtime-providers/CopilotRuntimeProvider.tsx
Outdated
Show resolved
Hide resolved
|
@marko-kriskovic, please checkthe comments |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
client/src/shared/components/workflow-executions/WorkflowExecutionsUtils.ts
Show resolved
Hide resolved
f861bbc to
dce69bb
Compare
|
|
| title: errorItem.title, | ||
| }); | ||
| } else { | ||
| // Clear error when workflow succeeds |





Description
Fixes # (issue)
Type of change
How Has This Been Tested?
Checklist: