diff --git a/src/toad/acp/comms_updates.py b/src/toad/acp/comms_updates.py index 1406ccb49..d403dbe88 100644 --- a/src/toad/acp/comms_updates.py +++ b/src/toad/acp/comms_updates.py @@ -294,12 +294,12 @@ def thread_presentation(self, presentation: ThreadPresentation) -> None: return # An unavailable source supplies no turn settlement. identity.publish_turn(self.publish_thread_turn) - def publish_thread_turn(self, root, thread): + def publish_thread_turn(self, root, thread, turn_state): """Only the live transcript member can supply actual owner settlement.""" self.owner.require() if not self.agent.matches_source(root, thread.incarnation): raise ValueError("Turn snapshot belongs to another original thread source") - self.turn_changed(TurnChangedUpdate(thread.turn_state)) + self.turn_changed(TurnChangedUpdate(turn_state)) class ThreadReadOutcome: diff --git a/tools/android/bundle_check.py b/tools/android/bundle_check.py index 510437f83..e84b24b84 100644 --- a/tools/android/bundle_check.py +++ b/tools/android/bundle_check.py @@ -226,6 +226,8 @@ def lazy_findings(self, loaded: set[str]) -> dict[str, list[ImportSite]]: "from toad.client.application_actions import ApplicationAction; " "blank = [action.__name__ for action in ApplicationAction.declarations() if not action.summary()]; " "blank and sys.exit(f'error: application actions with an empty summary at -O{sys.flags.optimize}: {blank}'); " + "from agent_comms.installer.harness_install import HarnessSession; " + "'claude_bridge' in HarnessSession.__registry__ or sys.exit('error: HarnessSession discovery missed claude_bridge'); " "print('shipped app imports toad.qt.main; every application action has a summary'); print(json.dumps(sorted(sys.modules)))")], capture_output=True, text=True, timeout=120, cwd=recipes, check=False, env=os.environ | {"PYTHONOPTIMIZE": str(optimize)})