Repository navigation
studio: fix show in folder over settings and open the logs directory - #11667
Merged
Etherll merged 4 commits intoSep 23, 2026
Merged
Conversation
Contributor
Author
Collaborator
UI evidence for PR #11667Base With the same intercepted password-change response (401,
The toast stayed visible and one change request was sent in each run. Tested in Windows Headless Chrome 131 at 1200×800. This scene covers the toast/dialog interaction; it did not exercise the native Open logs folder destination.
|
Etherll
approved these changes
Sep 23, 2026
shaojun
pushed a commit
to shaojun/unsloth
that referenced
this pull request
Sep 29, 2026
…nslothai#11667) * studio: keep toast actions clickable over modal dialogs * studio: open the logs directory from the logs tab * Fix Studio logs folder fallback and sheet toast interaction * Fix logs folder reveal before log directory exists --------- Co-authored-by: mahiatlinux <[email protected]> Co-authored-by: Etherll <[email protected]>
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.


Two fixes for Settings > Logs on desktop.
Show in folder over Settings
The "Show in folder" action on the Download all logs toast could not be clicked. A modal Radix dialog sets
pointer-events: noneonbody, and sonner never re-enables pointer events on its toasts. The click fell through to the dialog overlay, the action never ran, and Settings closed. The same applies to any toast action or close button shown over a dialog.components/ui/sonner.tsx: toasts getpointer-events-auto. Sonner's unlayered[data-visible=false]rule still wins, so hidden toasts stay inert.components/ui/dialog.tsx:DialogContentcomposesonInteractOutsideand prevents dismissal when the target is inside[data-sonner-toaster]. A caller's own handler still runs first.Open logs folder target
The button opened the selected log's parent. With a server log selected it landed in
~/.unsloth/studio/logs/serverinstead of~/.unsloth/studio/logs.routes/settings.py:GET /api/settings/debug/logs/sourcesreportslog_rootas<studio home>/logsinstead of the studio home.features/settings/api/debug-logs.ts:openLogsFolder(logRoot)opens that directory and no longer derives one from the selected log's realpath.src-tauri/src/commands.rs: theopen_logs_dirfallback opensdiagnostics::logs_dir()instead of~/.unsloth/studio.Checks
DialogContentandToaster, dialog open, toast with an action. Before: the click hitdialog-overlay, the action did not fire, the dialog closed. After: the click hit the action button, it fired once, the dialog stayed open. With only the sonner change the action fired but the dialog still closed.node --testondebug-log-export,dialog-toast-outside,cache-rows-model-folder,titlebar-modal-layering,account-settings-ui: 37 passed. The new dialog test and the updatedopenLogsFoldertest fail on the old code.pytest tests/test_debug_log_routes.py tests/test_debug_log_sources.py: 52 passed. The newlog_rootassertion fails on the old code.tsc -b,tsc -p tsconfig.test.json,ruff check: clean.