Repository navigation
Keep channel view and sidebar intact across transient disconnects and wrap error toasts - #2351
Merged
Merged
Conversation
… wrap error toasts
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 the Android/Qt black screen on network disconnect/handoff and vertically clipped error toasts.
Root causes & fixes
OSErrorretiring tabs (src/toad/client/history_state.py): AddedOSErrortoTRANSIENT_SOURCE_ERRORS(matchingObservationFailureReportinconnection.py) so WiFi <-> 5G+ handoffs pause cleanly inWaitingSourceWorkinstead of retiring the tab intoRetiredSourceTranscriptand firing a redHistoryerror toast.app.source()crashes when opening/refreshing a tab while disconnected (src/toad/client/history.py,src/toad/qt/window.py,src/toad/qt/goal.py,src/toad/qt/thread_view.py,src/toad/client/history_notifications.py,src/toad/widgets/comms_chat.py):WireSource.corenow resolvesself.access.observation.observed().coredynamically instead of pinningCoreAccessat construction, andQtGoalBar/OneHistoryNotifications/ConversationView.thread_label_readusecoordination_rootand defersource()into async workers.FailedObservation(src/toad/client/sidebar_state.py,src/toad/qt/window.py): Added polymorphicretained_root()/retained_model()onSidebarModelState;FailedSidebarStatekeeps the last shownSidebarModeland matchesserves(path)against its retained root so reconnecting to the same bus does not tear down the sidebar.ComposerPlaceholder(src/toad/qt/conversation.py): Restores_composer_reservedand the viewport eventFilter ifpool.acquire/buildraises instead of stranding a permanently dark box.src/toad/qt/float_layer.py): EnabledheightForWidthonNoticeLine, sizedQtFloatLayer.place()vialayout.totalHeightForWidth(width)instead ofadjustSize(), and re-activated layout on dismiss/resize.Verification
pytest tests/model/test_android_resync_lazy_load_catchup.py tests/textual/test_sidebar_failure_lifetime.py tests/textual/test_message_file_chips.py tests/textual/test_older_bus.py: 32 passed.tools/qt_inherit_ratchet.py: 0/0/0/0/0.REL_IMPORTS=0.