Fix stale error poisoning unrelated wait_command calls#26
Merged
Conversation
A guard rejection's state.error kept broadcasting across streaming-only activity (jog accepts never cleared it), and wait_command honored any standing error at or below its index — including frames that predate its own command's acceptance. The next wait=True command then raised a minutes-old rejection while the robot executed fine (seen live as a home->home move "failing" with a stale self-collision error). Streaming accepts now clear the standing error like every other accept path, and STATUS carries accepted_index (the last accepted command index, len-guarded for old producers) so wait_command only honors an error once the frame proves it postdates the waiter's acceptance. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XbP8n8tzaJXKMjkRxGnoa1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A guard rejection's
state.errorkept broadcasting across streaming-only activity (jog accepts never cleared it), andwait_commandhonored any standing error at or below its index — including status frames predating its own command's acceptance. The nextwait=Truecommand then raised a minutes-old rejection while the robot executed fine (seen live as a home→home move "failing" with a stale self-collision error).Streaming accepts now clear the standing error like every other accept path, and STATUS carries
accepted_index(len-guarded; old producers default-1→ legacy behavior) sowait_commandonly honors an error once the frame proves it postdates the waiter's acceptance.Both regression tests fail pre-fix; full suite 267 passed.
— opened by Claude on behalf of @Jepson2k
🤖 Generated with Claude Code
https://claude.ai/code/session_01XbP8n8tzaJXKMjkRxGnoa1