macOS: fix blank access window and add Finder launch wrappers - #1
Merged
Conversation
Double-clicking run.command or install.command in Finder opens Terminal and runs the matching shell script, mirroring what run.bat provides on Windows.
Apple's bundled Python 3.9 ships Tk 8.5, which opens the access window but renders no widgets on modern macOS, leaving users with a silent blank window. - app.py: check tkinter and Tk >= 8.6 in-process before spawning the access window; print an actionable skip notice instead of launching a broken window. Helper interpreters (WSL python.exe) are not probed since they ship a modern Tk. - scripts/access_window.py: refuse to build the window below Tk 8.6 and exit with a hint to use the console Access URL/Token. - run.sh: recreate an existing venv whose Python is older than 3.10 (venvs created before the version requirement were silently kept), and extend the macOS install guidance with Homebrew python-tk and MacPorts alternatives.
askac
force-pushed
the
fix/macos-tk-access-window
branch
from
July 8, 2026 18:23
58da548 to
3f610c0
Compare
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.
Problem
On macOS with only the Command Line Tools Python (3.9, Apple Tk 8.5), the launcher access window opens but renders no widgets — a silent blank window. Two gaps allowed this:
run.shonly enforces Python >= 3.10 when creating a new venv; an existing older venv is reused without a version check.Verified on Darwin 25 (arm64): Apple Tk 8.5 draws an empty window; redraw workarounds (resize/update/withdraw) do not help. Tk 8.6.17 (+quartz) renders correctly.
Changes
python-tk/ MacPorts commands) and skip instead of launching a broken window. WSL helper interpreters are not probed.python3 python-tk, MacPortspython313 py313-tkinter tk +quartz).run.batconvenience on Windows.Testing
bash -n run.sh,py_compileon both Python files.access_windowtests intests/agent_backend_smoke.pypass.test_wsl_uart_scan_lists_windows_and_wsl_devicesfails on this machine on a clean tree too (pre-existing, unrelated).