Skip to content

feat: add an option to clear history when a region completes - #738

Open
noooooooookro wants to merge 1 commit into
fgmacedo:mainfrom
noooooooookro:clear-completed-history
Open

noooooooookro wants to merge 1 commit into
fgmacedo:mainfrom
noooooooookro:clear-completed-history

Conversation

@noooooooookro

Copy link
Copy Markdown

Re-entering a completed region through history can restore its final state and trigger the same completion transition again. Set clear_history_on_final = True to follow the history state's default on re-entry. I’d keep this opt-in in future major releases too, so existing SCXML charts can still restore final states.

The PSSM History_002-D case now passes on both engines. The full Linux suite passed with 100% branch coverage (2,986 tests passed). Ruff, mypy and Pyright also passed.

Implemented and tested with Codex.

Fixes #702.

Signed-off-by: noooooooookro <325986997+noooooooookro@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

History after a region reached its final state

1 participant