Skip to content

Conversation

@github-actions
Copy link
Contributor

This PR prepares the release for version 0.4.1-alpha with version update and code style fixes:

  • Updated version in Solution.props
  • Updated changelog with closed-solved issues
  • Updated README badges

marc-romu and others added 17 commits July 22, 2025 18:42
…change bugs with Boolean toggle (#268)

## Description

This PR addresses several critical issues in
`StatefulAsyncComponentBase`:

- **Stuck Components with Boolean Toggle (#260):**
Fixes a bug where components using a Boolean toggle for the Run
parameter would not retrigger processing when other inputs changed while
Run remained true. The logic now ensures that input changes with
persistent `Run=true` correctly transition the component to the
Processing state, matching expected toggle behavior.

- **Metrics Not Output:**  
Resolves a problem where output metrics were cleared prematurely in
toggle scenarios, resulting in missing metrics output. The fix ensures
metrics are only cleared when starting a truly new processing run, not
on every state transition.

- **Prevent False Positives on Input Change Calculation:**  
Fixes an issue where the component would incorrectly detect input
changes due to object instance comparisons rather than value
comparisons. Now, changed inputs are calculated based on actual values,
preventing unnecessary recomputation.

- **Prevent Unnecessary Transitions to NeedsRun (#113):** 
Fixes a bug where components would transition to the "NeedsRun" state
unnecessarily when reading a component with existing results. Now,
components correctly transition to the "Done" state in these scenarios.

These changes improve reliability, correctness, and user experience when
using toggles and input changes for component execution.

## Breaking Changes

None.

## Testing Done

- Verified both button and Boolean toggle Run inputs trigger correct
processing and metrics output.
- Regression tested with various input change scenarios.
- Confirmed components transition to correct states when reading files
with existing results.

## Checklist

- [x] This PR is focused on a single feature or bug fix
- [x] Version in Solution.props was updated, if necessary, and follows
semantic versioning
- [x] CHANGELOG.md has been updated
- [x] PR title follows [Conventional
Commits](https://www.conventionalcommits.org/en/v1.1.0/) format
- [x] PR description follows [Pull Request Description
Template]([https://github.com/architect](https://github.com/architect)
This PR updates the version badge in the README.md to match the current
version in Solution.props.

This is an automated PR created by the Update Version Badge workflow.
## Description

Fixes #208.

## Breaking Changes

None

## Testing Done

gh_toggle_preview call on chat.

## Checklist

- [x] This PR is focused on a single feature or bug fix
- [x] Version in Solution.props was updated, if necessary, and follows
semantic versioning
- [x] CHANGELOG.md has been updated
- [x] PR title follows [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) format
- [x] PR description follows [Pull Request Description
Template](#pull-request-description-template)
… fixes (#271)

This PR prepares the release for version 0.4.1-alpha with version update
and code style fixes:

- Updated version in Solution.props
- Updated changelog with closed-solved issues
- Updated README badges
@github-actions github-actions bot requested a review from marc-romu as a code owner July 23, 2025 10:20
@marc-romu marc-romu added this to the 0.4.1-alpha milestone Jul 23, 2025
@marc-romu marc-romu enabled auto-merge July 23, 2025 10:21
@marc-romu marc-romu merged commit b5ebc8b into main Jul 23, 2025
10 checks passed
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.

2 participants