Repository navigation
Wake paused wire history on CoordinationObserved, fix Qt jump_to_latest MRO, and disable sticky tree selection - #2254
Merged
Conversation
…st MRO, and disable sticky tree selection
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.
Summary
Fixes two live Android/Qt regressions reported by Tristan plus a shadowed MRO defect in
QtHistoryWindow:Channel/DM tabs no longer wedge in
WorkingTranscriptafter an Android background/foreground disconnect (src/toad/client/prepared_pages.py,src/toad/client/history.py,src/toad/client/history_state.py,src/toad/qt/window.py):WaitingSourceWork.observe()previously calledview.thread_scope.observe(...)for every history. On channel/DM wire views,view.thread_scopeisNoTranscript, whoseobserve()returns an emptyResourceRelease()and subscribes to nothing — so any transientCoordinationReadUnavailablelefthistory._source_statestuck inWorkingTranscriptforever, swallowing every subsequentshow_sent/CoordinationObservedrefresh intooperation.owedand leaving sent messages stuck inSubmittinguntil tab close/reopen.PreparedPageSource.observe_availability(view, access, resume)(base delegates toview.thread_scope.observe), overridden byWirePageBuffer.observe_availabilityto subscribe toCoordinationObservedonaccess.events.QtToadApp.application_state_changednow also callscoordination_access.check_route()andworkspace_sessions.selected.reload()onApplicationActiveso returning from Android background recovers immediately.Fixed
QtHistoryWindowMRO shadowingReaderPlacement(src/toad/qt/history.py):ShowsLatestJumpBar/ReaderWindowwere listed ahead ofReaderPlacement, shadowingjump_to_latest(and forcing a one-lineself.anchor(True)override that skipped multi-pagerequest_latest).ReaderPlacementahead ofShowsLatestJumpBar(matching Textual'sWindow) and deleted the redundant override.Cleared sticky green tree-item selection highlight on tap/drag (
src/toad/qt/window.py):ConversationRowsinheritedQTreeWidget's defaultSingleSelectionwith no reader of Qt's selection model, leaving tapped/dragged channel and thread items highlighted solid green until another row was tapped.NoSelection+NoFocusonConversationRows(itemClickedandHeldRowMenulong-press continue to work without selection).Evidence
tools/qt_inherit_ratchet.py,tools/shadow_check.py,tools/guarded_imports.py: all0.tests/guards/test_shared_history_change.py+tests/model/test_qt_channel_activity_sidebar.py: 7 passed in 0.31s.