fix(studio): sidebar shortcut hint, wizard cache invalidate, collapsed +#40
Merged
Merged
Conversation
Three latent bugs introduced by the multi-remote workspace PR (#13, 2026-06-07) that only surfaced once someone tried to use the wizard or G-chord shortcuts post-merge: 1. Sidebar.tsx: G-chord shortcut hint (G C / G P / G H / ...) was hidden by the pending-count badge because the two shared one render slot under a `count === 0` guard. Render both side by side instead; pending counts and shortcut affordance are independent signals. 2. CreateWorkspaceWizard.tsx: `onSuccess` only invalidated the legacy `['workspaces']` query key. The sidebar moved to per-remote `['workspaces-at', remoteId]` keys when remotes shipped but the wizard mutation wasn't updated, so newly-scaffolded workspaces didn't appear until a hard reload. Add the second invalidate. 3. Sidebar.tsx: when collapsed and a remote already had workspaces, the `+ Open workspace` button rendered nowhere — only the non-collapsed header and the collapsed-empty paths had it. Append an icon-only `+` at the end of each remote's collapsed workspace list (matches the Discord rail pattern where the add-server `+` is always visible in icon-only mode). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Three latent regressions from the multi-remote workspace PR (#13, 2026-06-07) that surfaced together today when someone tried to use the wizard and G-chord shortcuts after the merge.
Bugs
G-chord shortcut hint hidden by pending count (
Sidebar.tsx)Clarify/Proposals/Historyrows lost theirG C/G P/G Hkbd hint as soon as pending count went above zero, because both badges shared one slot under acount === 0guard.Wizard mutation doesn't invalidate per-remote workspace list (
CreateWorkspaceWizard.tsx)onSuccessonly invalidated the legacy['workspaces']key. Sidebar moved to per-remote['workspaces-at', remoteId]when remotes shipped, so newly-scaffolded workspaces stayed invisible until hard reload.No `+` button when sidebar collapsed and remote already has workspaces (
Sidebar.tsx)The Plus icon rendered only in two paths: expanded header, and collapsed-with-zero-workspaces. The third (collapsed-with-workspaces) was empty — the most common state of all. Discord's rail keeps an always-visible `+` per server group; matches that pattern.
Fixes
Test plan