Skip to content

fix: correct continueOnError logic in chain execution, fixes #10#43

Merged
Dancode-188 merged 1 commit intomainfrom
fix/issue-10-continue-on-error-logic
Dec 27, 2025
Merged

fix: correct continueOnError logic in chain execution, fixes #10#43
Dancode-188 merged 1 commit intomainfrom
fix/issue-10-continue-on-error-logic

Conversation

@Dancode-188
Copy link
Copy Markdown
Owner

Fixes #10

Problem

The continueOnError flag was inverted. When set to true, chains would mark remaining steps as skipped and stop instead of continuing to the next step.

Root cause: the skip-and-break logic at lines 236-240 was running outside the conditional block, so it executed when continueOnError was true.

Changes

Moved the skip-and-break logic inside the !step.continueOnError block so it only runs when we should stop on error.

Also cleaned up several TypeScript errors that were blocking builds:

  • Added missing time/size properties to HttpClientResponse
  • Fixed return types and null checks in e2e models
  • Corrected Dexie update() calls to use UpdateSpec
  • Fixed Collection import path
  • Added @types/dotenv

Build verified passing.

The continueOnError flag was inverted - chains would stop when they should
continue and vice versa. The skip-and-break logic was executing outside the
conditional block, causing it to run when continueOnError was true.

Moved the skip-and-break logic inside the !step.continueOnError block so
remaining steps are only skipped when we should stop on error.

Also fixed several TypeScript errors that were preventing builds:
- Added missing time/size properties to HttpClientResponse
- Fixed method return types and null checks in e2e object models
- Corrected Dexie update() calls to use proper UpdateSpec format
- Fixed import paths for Collection type
- Added @types/dotenv dependency
@Dancode-188
Copy link
Copy Markdown
Owner Author

Fix looks correct - skip/break logic now only runs when continueOnError is false, as intended. Build passes clean. The TypeScript fixes were necessary to get the build working, should have been caught earlier. Will need manual testing with actual chain executions before we can fully close #10.

@Dancode-188 Dancode-188 merged commit d2f3250 into main Dec 27, 2025
2 checks passed
@Dancode-188 Dancode-188 deleted the fix/issue-10-continue-on-error-logic branch December 28, 2025 06:14
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.

[Bug]: ChainService stops execution even when continueOnError = true

1 participant