feat: add Troubleshooting submenu under Help (Show Logs + Open Developer Tools)#257
feat: add Troubleshooting submenu under Help (Show Logs + Open Developer Tools)#257rtibblesbot wants to merge 5 commits into
Conversation
rtibbles
left a comment
There was a problem hiding this comment.
Delete the test theater it adds nothing. We should be keeping consistent with the permission checks we already added for opening Kolibri Home - it's not clear to me if this has been branched from those changes or not.
rtibbles
left a comment
There was a problem hiding this comment.
Needs more cleanup - and now we have 3 commits for what should be a single commit. Finish the cleanup and squash to one commit to remove the churn.
…Developer Tools Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
49fd5f4 to
214f540
Compare
|
Hi @rtibbles, On Windows, selecting the Help → Troubleshooting → Open Developer Tools option results in seeing the previously viewed page, like a Back button: Windows.app.dev.tools.mp4Windows app logs: Windows logs.zip On Mac, selecting the Help → Troubleshooting → Open Developer Tools option results in the app crashing: Mac.app.mp4Mac app logs: Logs and crash report.zip |
WKWebView preferences live on the configuration object, not the view itself, and _setDeveloperExtrasEnabled: is the private selector that actually takes effect. The WebView2 OpenDevToolsWindow vtable index was also off; corrected via the extraction script. Consolidates the per-platform devtools opener into a single try/except. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
main switched tool.uv.exclude-newer to a relative "7 days" span while this branch's lockfile still recorded the old fixed-date value, which the uv-lock pre-commit hook flags as inconsistent now that this branch has main's pyproject.toml change. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The tuple-based (opener, exc_types, platform) dispatch obscured control flow for a simple 3-branch function; explicit try/except per platform is clearer and keeps the exception handling colocated with each call. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Plan: Add a Troubleshooting submenu under Help containing Show Logs and Open Developer Tools.
Summary
Adds a Troubleshooting submenu under Help containing two items that reduce support burden by giving users one-click access to debugging information:
KOLIBRI_HOME/logsin the platform's default file manager. Extracted from the existingon_open_kolibri_homeinto a shared_open_in_file_managerhelper.ICoreWebView2::OpenDevToolsWindow) on Windows (same pattern asshow_print_ui), ObjC runtime via ctypes on macOS (WKWebView_inspector), WebKitGTK ctypes on Linux. All failure paths log a warning rather than raising a user-visible dialog.References
Closes #240
Reviewer guidance
Verification steps on Mac and Windows:
$KOLIBRI_HOME/logsAI usage
Implemented with Claude Code following a pre-approved plan (see issue #240). Scope and acceptance criteria were written by the maintainer before implementation.
@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly
How was this generated?
🟡 Waiting for feedback
Last updated: 2026-07-04 12:43 UTC