Skip to content

Refactor: NRA codemod batch 37 (4 findings unlocked by NRA#637 + NRA#638) - #2335

Merged
trissim merged 1 commit into
mainfrom
refactor/nra-batch-37-sibling-steps
Nov 27, 2026
Merged

trissim merged 1 commit into
mainfrom
refactor/nra-batch-37-sibling-steps

Conversation

@trissim

@trissim trissim commented Nov 27, 2026

Copy link
Copy Markdown

Numbers

  • Mechanical NRA finding removals: 4 across 5 files (path_search.py, session_thread_sidebar.py, side_bar.py, client/line_blocks.py, rich_preparation.py)
  • Guards: REL_IMPORTS=0, qt_inherit_ratchet 0/0/0/0/0, shadow_check 0, guarded_imports 0
  • Focused tests: 57/57 passing (test_shared_frontend_members.py, test_android_perf_ux_arrivals.py, test_project_panel_intent.py) + direct Python runtime checks passing

What changed

  1. PickerPane.toggled & PickerPane.cursor_owner (5b2d3de6af, 153131fe1f): hoisted shared self.search.query_one(...) / self.query_one(...) onto PickerPane in src/toad/widgets/path_search.py with _toggled_step / _cursor_owner_step hooks on FuzzyPane and TreePane (unlocked by NRA#638).
  2. LazyThreadSidebar.make_panels (78b1dafe63): hoisted shared screen = self._owner() onto LazyThreadSidebar in src/toad/widgets/side_bar.py with _make_panels_step(self, screen) on ConversationThreadSidebar and SessionThreadSidebar (unlocked by NRA#638).
  3. TextSelectionSource (2536c2c6c8): extracted shared selection_text mixin in src/toad/client/line_blocks.py inherited by TextLineBlock and PreparedRichContent (applied via NRA#637 --codemod-owner-picks).

…638)

- Hoist PickerPane.toggled and PickerPane.cursor_owner (5b2d3de6af, 153131fe1f) and LazyThreadSidebar.make_panels (78b1dafe63) via NRA#638 OrderPreservingReads + Textual _MessagePumpMeta / AbstractHooksMeta / DeclaredWidgetActions proofs
- Extract TextSelectionSource mixin in toad.client.line_blocks (2536c2c6c8) shared by TextLineBlock and PreparedRichContent via NRA#637 --codemod-owner-picks
@trissim
trissim merged commit 41a1ae8 into main Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant