Repository navigation
Only refresh QtContextExplorer when visible and preserve in-flight state on same-thread ticks - #2275
Merged
Merged
Conversation
…ate on same-thread ticks
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.
Bug
ThreadSettingsPane.bind(view)callsself._context_panel.bind(view)on every coordination revision tick. PreviouslyQtContextExplorer.bind(view)unconditionally called_cancel_background(), overwrote_search.setText(intent.query), and calledpresent(force=True)— so every bus message on any channel:comms_context_inspection+native()fetches even when the Context panel was closed/hidden._search, even when staying on the same thread.Fix
QtContextExplorer.bind(view)only cancels background tasks, resets search/tree/detail, and passesforce=Truewhenview.thread_identityactually changed.present(...)whenself.isVisible().showEventcallingself.present(force=False)so opening the Context panel loads immediately on demand.Verification
bind,showEvent, same-thread revision tick (preserves in-flight task & typed search text), and thread switch.qt_inherit_ratchet.py,shadow_check.py,guarded_imports.pyall0,rel_imports=0,test_shared_frontend_members.pypassed.