Repository navigation
Fix disconnect black screen and stop WireView RPC storm on activity/read ticks - #2362
Merged
Merged
Conversation
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.
Fixes two live Pixel 8a bugs caught back-to-back (#comms 11398 battery drain + #comms 11842
Screenshot_20261128-014159.pngblank black channel view):Disconnect black screen / blank channel view (IDEN-1) (
src/toad/client/connection.py:274,492,892,src/toad/client/prepared_pages.py:625,src/toad/client/history.py:226,756):ReadMarkedHistory._mark_readcalledself.withdraw_view()(QtConversationHistory.withdraw_view->self.view.hide(),WireHistory.withdraw_view->self.view.display = False) wheneversource_is_current()returnedFalse. On a network drop,FailedObservation.observes(root)isFalse, which permanently hid the openConversationViewinsideQStackedWidgetabove the tabs and sidebar bars even after reconnecting.Observation.replaces(root) -> bool(defaultFalseforNotObserving/FailedObservation;not self.observes(root)on liveObserving), exposed viaCoreConnection.route_replaced/ReplaceablePageSource.route_replaced._mark_readnow withdraws a view only whenroute_replaced()isTrue(switched to a different live bus).Battery-melting 15.6 RPC/s storm (11,134
POST /mcpcalls in 12 minutes, 3m 34s CPU inRemoteReadProcess+ 4m 23s inqtMainLoopThread) (src/toad/client/history.py:345-380,458,src/toad/qt/page.py:36,src/toad/qt/window.py:1557,2100,src/toad/widgets/comms_chat.py:144):WireView._refresh_sourcewatchedRosterView()(which inheritsActivityView) instead ofRegistrationsView(), firingread_thread_config()(4 HTTP RPCs:comms_reference_names× 2,comms_channel,comms_thread_configuration) on every agent heartbeat/tool tick across the fleet.QtToadApp.stores_changedandCommsChatView._coordination_observedunconditionally reloaded wire views on everyCoordinationObservedevent, firingcomms_conversation_revision,comms_latest_sequence, andcomms_wire_revisionwhenever any field ofWireRevisionchanged (includingactivity,reads,notifications,goal_execution,expiry_tick), even whenbus_seq,bus_changes,history,bus_identity,registry, andcatalogwere unchanged.read_thread_configonRegistrationsView()(matchingconnection.py:787andsession_navigation.py:605) and added sharedWireView.needs_wire_refresh(announced)+Page.stores_observed(revision)so pure activity/read/notification/expiry ticks fire zero wire RPCs.