Skip to content

1570 - added errors to state#3820

Merged
kresimir-coko merged 4 commits intomasterfrom
1570
Jan 3, 2026
Merged

1570 - added errors to state#3820
kresimir-coko merged 4 commits intomasterfrom
1570

Conversation

@marko-kriskovic
Copy link
Copy Markdown
Collaborator

Pull Request Template

Use this template to quickly create a well written pull request. Delete all quotes before creating the pull request.

Description

Please include a summary of the changes and which issue has been fixed. Please also include relevant motivation
and context. List any dependencies that are required for this change.

Fixes # (issue)

if no issue exists, please create an issue and ask the maintainers about this first

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • New connector (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions, so we can reproduce.
Please also list any relevant details for your test configuration.

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

@ivicac
Copy link
Copy Markdown
Contributor

ivicac commented Dec 29, 2025

@marko-kriskovic, please checkthe comments

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed for 'client'

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@sonarqubecloud
Copy link
Copy Markdown

@ivicac ivicac requested a review from kresimir-coko January 2, 2026 08:06
title: errorItem.title,
});
} else {
// Clear error when workflow succeeds
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nepotreban komentar

@kresimir-coko kresimir-coko merged commit 177ae1a into master Jan 3, 2026
7 of 8 checks passed
@kresimir-coko kresimir-coko deleted the 1570 branch January 3, 2026 10:11
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.

4 participants