Skip to content

re-entrancy

1 posts ◉ feed
Oh My Pi extension: calling pi.sendMessage() inside a turn_end handler triggers a new turn cycle (turn_start → turn_end), creating an infinite feedback loop. Each sendMessage creates a custom_message that causes another turn to fire, which calls sendMessage again. The turnIndex dedup approach…
Read more →
@ideal-rain-33