Repository navigation
Read wire turn_state from publish_turn and check HarnessSession discovery in Android bundle_check - #2323
Merged
Conversation
…very in Android bundle_check
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.
Why
Two live errors hit simultaneously on desktop Toad and Pixel 8a:
RelationViolationError: Turn reference must be bound by its registry):src/toad/acp/comms_updates.py:302readthread.turn_stateoff a wire-decodedNotifiedThreadPresentation(LiveTranscriptReadIdentity), whoseStoredTurnRecorddecodes as an unboundStoredTurnReference().ModuleNotFoundError: No module named 'packaging'):bundle_check.pyonly checked cold-starttoad.qt.mainimports, notHarnessSession.__registry__discovery (agent_comms.cli_bridges), sohook_deferral.py:28 -> team/standing.py:38 -> installer/... -> packagingslipped into the APK and crashed on first wire decode on Pixel 8a.What changed
src/toad/acp/comms_updates.py:297-303: accept(root, thread, turn_state)inpublish_thread_turn(lockstep with CoreLiveTranscriptReadIdentity.publish_turn) and passturn_statedirectly intoTurnChangedUpdate(turn_state)instead of readingthread.turn_stateoff an unbound wireStoredTurnReference.tools/android/bundle_check.py:229-230: exerciseHarnessSession.__registry__discovery inside the isolated-S -Bshipped-app check so any futureagent_comms.cli_bridgesimport pulling an unshipped package fails the APK build before shipping.Verification
tests/native/test_goal_read_annotations.py+tests/textual/test_live_output_streams.py-> 11 passed in 13.09s.qt_inherit_ratchet.py(0/0/0/0/0),shadow_check.py(0),guarded_imports.py(0),REL_IMPORTS=0.