Add devtools sidebar toggle#5788
Merged
Merged
Conversation
✅ Deploy Preview for old-char canceled.
|
3f3f6f5 to
61bde41
Compare
6831155 to
ea0a1b1
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ea0a1b1. Configure here.
Show a dev-only devtools panel button beside the new note action and toggle the native panel show/hide command from the sidebar chrome.
ea0a1b1 to
3d8b6ae
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.

Summary
Note
Low Risk
Changes are gated to dev builds and devtools UX, with coordinated events and tests; no production auth or data paths.
Overview
Adds a dev-only wrench control in the expanded sidebar timeline chrome that calls
devtoolsPanelShowto open the native macOS devtools panel. The button stays visible until apanel:openedevent arrives, then hides so you do not get duplicate “open” affordances while the panel is up; it returns onpanel:closed, including when the panel was opened outside the sidebar (e.g. from the existing devtools host).The native layer now broadcasts
panel:opened/panel:closedfromDevtoolsPanelManageron show and hide. The floating SwiftUI panel drops collapse/resize: it is always full height, and the header close (×) dismisses the panel instead of collapsing it. The web devtools action handler ignores those panel lifecycle actions so they do not trigger other devtools behaviors.Tests mock
@hypr/plugin-windowsevents/commands and assert button order, show invocation, and visibility tied to panel events;test-setupextends Tauri event/callback mocks so listeners work in Vitest.Reviewed by Cursor Bugbot for commit 3d8b6ae. Bugbot is set up for automated code reviews on this repo. Configure here.