From 9b4b4387160a66f4b0dbfd4ea38a7d05ef2d4e33 Mon Sep 17 00:00:00 2001 From: Tristan Simas Date: Wed, 18 Nov 2026 10:48:24 -0500 Subject: [PATCH] tools: qt_scroll_profile imports the drive as tools.qt_drive, as every tool imports a sibling `from qt_drive import` made tools/qt_drive.py one file under two module names, `qt_drive` and `tools.qt_drive`; mypy refuses that ("Source file found twice under different module names"), so agent-comms' client type check of toad failed and its debt-src gate crashed without a verdict on every PR. The profile now imports `tools.qt_drive` and runs as `python -m tools.qt_scroll_profile`, as acceptance and capture_live import their siblings. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01RnH6dT7wdh7i4tjJZQdFu3 --- tools/qt_scroll_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/qt_scroll_profile.py b/tools/qt_scroll_profile.py index b6048292d..5f718ddda 100644 --- a/tools/qt_scroll_profile.py +++ b/tools/qt_scroll_profile.py @@ -1,6 +1,6 @@ """Measure scrolling cost in the Qt conversation tab, offscreen, on the live bus. - QT_QPA_PLATFORM=offscreen PYTHONPATH=src:tools python tools/qt_scroll_profile.py \ + QT_QPA_PLATFORM=offscreen PYTHONPATH=src python -m tools.qt_scroll_profile \ PROFILE OUTDIR [--profile] Opens #comms exactly as the client does, loads several older pages, then drives the @@ -43,7 +43,7 @@ from toad.qt.glyph_fonts import install_glyph_fonts from toad.qt.theme import current_scheme -from qt_drive import ConversationRow, until +from tools.qt_drive import ConversationRow, until PROJECT = Path(__file__).resolve().parents[1] WIDTH, HEIGHT = 412, 915 # the Pixel 8a at its device pixel ratio