Skip to content

[composites] Consistently terminate composites#481

Merged
sea-bass merged 3 commits intodevelfrom
terminate-composites
Nov 13, 2025
Merged

[composites] Consistently terminate composites#481
sea-bass merged 3 commits intodevelfrom
terminate-composites

Conversation

@sea-bass
Copy link
Member

@sea-bass sea-bass commented Nov 13, 2025

This PR ensures that Sequences and Selectors always stop themselves on a terminal state... which was not happening before.

For reference, Parallels already did terminate themselves on terminal states.

I also went through and made some small fixes to reported logic issues.

Partially closes #458
Closes #477
Closes #480

@sea-bass sea-bass force-pushed the terminate-composites branch from fe1e1a1 to 9df1d14 Compare November 13, 2025 10:13
@sea-bass sea-bass changed the title Consistently terminate composites [composites] Consistently terminate composites Nov 13, 2025
Comment on lines -543 to +552
assert self.current_child is not None # should never be true, help mypy out
elif self.memory and self.current_child is not None:
index = self.children.index(self.current_child)
elif not self.memory and common.Status.RUNNING:
elif not self.memory:
Copy link
Member Author

Choose a reason for hiding this comment

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

Addresses #458 (comment)

@sea-bass sea-bass force-pushed the terminate-composites branch 4 times, most recently from 3cef265 to a042d54 Compare November 13, 2025 10:57
@sea-bass sea-bass force-pushed the terminate-composites branch from a042d54 to dcf06d7 Compare November 13, 2025 10:57
@sea-bass sea-bass merged commit 5961531 into devel Nov 13, 2025
6 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

1 participant