Skip to content

feat(sidebar): bindable shortcut to show or hide child workspaces - #24165

Merged
nwparker merged 9 commits into
stablyai:mainfrom
mmarabel:mmarabel/child-worktrees-shortcut
Oct 4, 2026
Merged

nwparker merged 9 commits into
stablyai:mainfrom
mmarabel:mmarabel/child-worktrees-shortcut

Conversation

@mmarabel

@mmarabel mmarabel commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

The sidebar already lets you click a parent workspace’s child chip to show or hide its children. You can now assign Toggle Child Workspaces in Settings → Shortcuts and perform that same action from the keyboard.

What Changed

Adds one unassigned Global action. It uses the workspace under the pointer, otherwise the active workspace; a card without its own chip uses its valid parent’s rendered chip. With no eligible chip, including folder cards, the shortcut leaves the key available to the focused content. Central and locally controlled dialogs, and floating workspaces, keep their input.

The handler writes the same persisted collapse setting as the chip (toggleCollapsedGroup) and records the sidebar position before changing it. The existing displayed-row list now carries each card’s chip key, so temporary reveal/drag visibility agrees with the shortcut. When the sidebar is closed, it reuses the existing row builder. Workspace identity still includes its host; expanding a family opens the sidebar.

Why

This gives keyboard access to an existing action while keeping the chip as the authority for eligibility and collapse state. Reusing the displayed targets and existing row builder avoids maintaining separate child counts or visibility rules.

Linked Issue

Fixes #24163

Visual Proof

Captured from hidden Electron renderers through Playwright CDP with disposable profiles. The baseline is 0f167ac659744fa78500281532645b8f648adbe5; after captures are from 8e499dc8d81965a53be375b5713eabf77dd52a5a. Media is uploaded, not committed.

Settings before: action absent Settings after: unassigned Global action
Before After
Sidebar before: existing expanded chip Sidebar after: folded by assigned shortcut
Before After
[email protected]
Additional scrolled acceptance

Keyboard and chip preserve the scrolled parent; expanding from a closed sidebar opens it. Recorded from three passing runs.

[email protected]
Dialog input acceptance

A locally controlled Delete Project Group dialog keeps the chord and leaves the child group expanded; the preceding nonmodal menu permits the existing action. Recorded from three passing runs.

[email protected]

Testing

  • Tested locally in hidden macOS Electron through CDP; no windows revealed or native focus tests run.
  • Automated coverage added: 118 focused tests in 12 files pass; 12 rendered acceptance scenarios pass; keyboard, scroll and local-dialog cases each pass three repeated recorded runs.

Reproduce: Settings → Shortcuts → search Toggle Child Workspaces → assign a chord (tested with Cmd+Option+H). With a parent active, move the pointer away from the sidebar and press it twice; then hover another parent or a leaf child and repeat. Compare with clicking the child chip. A hovered/active folder or a family with no rendered chip leaves the chord unclaimed.

Acceptance covers actual Settings recording, active/hovered parent precedence, active/hovered leaf-parent fallback, stale lineage, filtered sleeping children, folder pass-through, pinned duplicates, central/local modal and floating guards, persisted collapse after restart, scrolled anchor position, and sidebar opening on expansion. Renderer-hook regressions reproduced both transient visibility gaps before fixing them.

pnpm tc, real oxlint, 20-file format check, changed-lines code-quality/design gate and E2E-mode build pass. Separate pnpm typecheck:e2e has 169 existing normalized diagnostics: identical baseline and final sets, with zero additions. The earlier Linux run at 8e499dc8 failed the scrolled-parent assertion with a 123-pixel difference against its two-pixel limit. The follow-up stabilizes only the virtual list before capturing the baseline: mounted rows must stay quiet for 500 ms and two animation frames. Both strict post-action limits remain unchanged. An intermediate isolated Linux run at 59760f41 passed all 12 cases.

At current f83edd57e441b2bc96cda55eb60b400cffab6bea, required CI passes. The final-source Linux rendered job selected all three lineage specs and passed 12 tests, zero failures and no retries: strict keyboard/chip scroll preservation, shortcut recording, modal and floating guards, hovered-parent precedence, stale/folder/filter handling, pinned duplicate state, and restart persistence. The app-build job and test job both checked out this exact head, and all three specs explicitly use ORCA_BACKGROUND_LAUNCH=1. No older-head result is substituted for this final-source proof.

AI Disclosure

Original contributor disclosure: written with Claude Opus 5.5 (Anthropic) in the pi coding agent, with human direction on scope and behaviour. This disclosure is retained from mmarabel’s original PR.

Review

Final merge review confirms that Toggle Child Workspaces remains unassigned by default on macOS, Linux and Windows. The effective-binding regression passes at f83edd5: no default chord is claimed, and a user-supplied override works. The final-source rendered Settings/recording/reset and restart checks above also pass. Cross-reference review of issue #24163 found this PR as its only linked implementation; there is no sibling contributor PR to consolidate. Original contributor mmarabel is credited in the squash commit. Existing bot findings are fixed, withdrawn or explicitly addressed in the review below.

Independent read-only review is clean, including the reproduced and fixed local-dialog finding. The reviewer captured clean start/end status, all 31,712 tracked blobs, and unchanged source throughout the review. Exact source head 8e499dc8d81965a53be375b5713eabf77dd52a5a, tree 44f19a82d318031b391b8fce45faa409a0275216.

This continues mmarabel’s original contribution in this same PR. All four original commit authors, dates and messages are preserved; there were no recorded coauthors. The follow-up adds reproduced guard/visibility fixes and focused acceptance coverage.

Old review findings were checked against this head. Hidden-child mutation and temporary mounted visibility are fixed and covered; the mounted-visibility thread is resolved. The outside-diff parent-fallback recommendation would change the documented chip rule: the passing child/grandchild fixture deliberately uses the parent chip when the child has no rendered chip. Raw host matching follows the actual row builder, as CodeRabbit confirmed when withdrawing normalization. Browser-guest forwarding remains the disclosed scope limitation. Old reviews are not fresh-head coverage.

Agent skill upstream boundary

  • Not applicable; this change copies or translates no upstream skill-installer material.

Notes

Merge risk is low after final-source Linux rendered verification, focused source tests and passing required CI. Grouping, filtering, pinning, stale lineage and host identity agree with the mounted-sidebar cases covered by those checks. Keyboard parsing, pinned labels/card layout, remote execution and wire contracts are untouched.

User-facing tradeoffs: the action requires assigning a binding; hover takes precedence over the active workspace; using a leaf child folds its parent’s whole child group. Folder cards have no chip, and focused embedded browser guests retain their existing renderer-shortcut limitation. macOS hidden rendering is validated; Linux/Windows native input, visible-window focus and live SSH execution were not exercised. The final-source Linux rendered job and required repository gate pass. Broader Windows geometry and physical native keyboard input remain untested; old-head bot reviews are not fresh coverage.

Checklist

  • This PR is small and focused on one existing chip action.
  • Explained the user-facing before/after, mechanism and why this approach.
  • Before/after screenshots and repeated-run video attached.
  • Self-reviewed for correctness, security and performance.
  • Cross-platform, SSH/remote and shortcut impact considered, with precise gaps above.
  • Required lint/test/build CI passes on the displayed head; final-source Linux rendered verification passes.

@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Adds keyboard shortcut to toggle child workspace visibility in sidebar.

The PR appears safe to merge; no new actionable issue or outstanding previous finding remains.

Summary

The PR adds an unbound shortcut that toggles the rendered child-workspace chip for a hovered or active worktree, falling back to its parent’s chip when appropriate.

  • It reuses the sidebar row projection so filtered-out children do not trigger a hidden collapse-state change.
  • It adds shortcut, resolver, handler, and end-to-end coverage, plus user documentation.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Assigned shortcut] --> B[Hovered card or active worktree]
  B --> C[Replay rendered sidebar rows]
  C --> D{Target has a children chip?}
  D -- Yes --> E[Toggle target lineage key]
  D -- No --> F{Parent has a rendered chip?}
  F -- Yes --> G[Toggle parent lineage key]
  F -- No --> H[Let shortcut pass through]
  E --> I[Record scroll anchor and update collapse state]
  G --> I
Loading

Reviews (4) · Last reviewed commit: "docs(sidebar): state the chip fallback o..."

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ Minor suggestions only. One rough edge on when the shortcut becomes a no-op.

Reviewed changes

  • New bindable action sidebar.childWorkspaces.toggle — ships unbound on every platform and appears under Global in Settings → Keyboard Shortcuts; dispatched next to workspace.delete in use-global-keybindings.ts.
  • child-workspaces-toggle-target.ts — resolves the hovered card (or the active workspace when nothing is hovered) to its own lineage collapse key, or its immediate parent's key when the target is a leaf child; null falls through.
  • app-command-handlers.ts — records the sidebar scroll anchor, flips collapsedGroups, and opens the sidebar when expanding.
  • Shared getHostScopedWorktreeLineageInputs — extracted from the inline narrowing in pending-reveal-inputs.ts and reused by the resolver, so both share one host-scoped lineage projection.
  • Registry, types, docs, tests — definition plus KeybindingActionId union, settings.mdx / worktrees.mdx, targeted unit tests, and a headless e2e.

ℹ️ Nitpicks

  • The resolver can count children the sidebar is not rendering, so a press can be a silent no-op. resolveChildWorkspacesToggleGroupKey builds its child set from getAllWorktreesFromState filtered only by archived + host, whereas the chip's lineageChildCount comes from the sidebar's visibleWorktrees, which also hides sleeping, detached-HEAD, CLI-created, automation, other-device, and repo-filtered rows. When every child of the hovered/active workspace is filtered out, no chip renders, yet the shortcut still flips lineage:<target> and (when "expanding") calls setSidebarOpen(true) — the sidebar opens with nothing visibly folded. It is low impact and the persisted collapse state being visibility-independent is defensible, so this is an observation rather than a required change; if you want a press to always have a visible effect, feeding the resolver the same visible set (or documenting the intent) would close the gap.

Pullfrog  | Fix it ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 072c9942-e325-45d1-8c23-3c5a26b1d5ba
📥 Commits

Reviewing files that changed from the base of the PR and between 3fc47cb8fbae1ee045a127c9c50e6bae919e0ced and 59760f4.

📒 Files selected for processing (12)
  • src/renderer/src/app-shell/app-command-handlers-child-workspaces.test.ts
  • src/renderer/src/app-shell/app-command-handlers.ts
  • src/renderer/src/components/sidebar/child-workspaces-toggle-target.test.ts
  • src/renderer/src/components/sidebar/child-workspaces-toggle-target.ts
  • src/renderer/src/components/sidebar/child-workspaces-toggle-visibility.test.ts
  • src/renderer/src/components/sidebar/visible-worktrees.ts
  • src/renderer/src/components/sidebar/worktree-list/navigation/use-selection.ts
  • tests/e2e/worktree-lineage-scroll-readiness.ts
  • tests/e2e/worktree-lineage-state.ts
  • tests/e2e/worktree-lineage-toggle-dialog.spec.ts
  • tests/e2e/worktree-lineage-toggle-scroll.spec.ts
  • tests/e2e/worktree-lineage-toggle-shortcut.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

Adds an unbound, configurable Toggle Child Workspaces shortcut. It targets the hovered worktree, or the active worktree when none is hovered. For a child worktree without children, it targets the parent’s children. The command toggles the matching sidebar group and opens the sidebar when it reveals hidden children.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 59760

No confirmed issue remains from this review. The reported Linux scroll-test failure should still be checked before relying on that test result.

Security Architecture Review

Security architecture risk: ⚪ Minimal · up to 59760

The shortcut changes sidebar visibility through the existing collapse behavior. It checks workspace identity and input ownership, and no additional execution, credential, or data-access authority was found.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The inspected action can affect rendered workspace-family visibility and saved collapse preferences, including families on selected execution hosts. It does not gain authority to execute on those hosts or mutate workspace contents.

Trust Boundaries and Controls

  • observed — Hovered DOM metadata is not accepted as an arbitrary collapse key. It must resolve to a workspace in renderer state with matching host identity, after which the resulting own or parent key must pass rendered-chip eligibility.
  • observed — The browser-guest shortcut forwarding module is unchanged between base and head and forwards only its existing browser-grab actions, not the new sidebar action. This boundary was source-checked but lacks a dedicated test for this shortcut under guest focus.

Resilience and Maintainability Implications

  • inferred — The unresolved asynchronous save behavior can affect which collapse preference survives restart, but the inspected preference is presentation state rather than an authorization control. Both chip and shortcut share that existing behavior.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 29.41% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 34 functions across 19 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The PR meets the coding requirements in [#24163]. It adds the unassigned global sidebar.childWorkspaces.toggle action. The resolver selects the hovered workspace or, when none is hovered, the active…
Out of Scope Changes check ✅ Passed The changes stay within [#24163]. The shortcut definition, target resolution, rendered-row chip keys, handler, host-scoped lineage projection, documentation, and tests support the requested action and…
Title check ✅ Passed The title clearly and concisely describes the main change: a bindable shortcut to show or hide child workspaces.
Description check ✅ Passed The description covers the required sections, explains the change and rationale, links the issue, provides visual proof, and reports testing results and limitations.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: d3c36485-df28-46fa-99f7-f2da8d30e348

📥 Commits

Reviewing files that changed from the base of the PR and between d74388f and 12e8e20090f1198ba6e55fd60bcfdd2fdbe1584c.

📒 Files selected for processing (13)
  • docs/site/content/docs/model/worktrees.mdx
  • docs/site/content/docs/settings.mdx
  • src/renderer/src/app-shell/app-command-handlers-child-workspaces.test.ts
  • src/renderer/src/app-shell/app-command-handlers.ts
  • src/renderer/src/app-shell/use-global-keybindings.ts
  • src/renderer/src/components/sidebar/child-workspaces-toggle-target.test.ts
  • src/renderer/src/components/sidebar/child-workspaces-toggle-target.ts
  • src/renderer/src/components/sidebar/worktree-lineage-projection.ts
  • src/renderer/src/components/sidebar/worktree-list/navigation/pending-reveal-inputs.ts
  • src/shared/keybindings-unassigned-actions.test.ts
  • src/shared/keybindings/definitions-core-4.ts
  • src/shared/keybindings/types.ts
  • tests/e2e/worktree-lineage-toggle-shortcut.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — the flagged no-op is fixed; one narrow render-parity rough edge inline.

Reviewed changes

Since the prior pullfrog review, commit 0de11fd closed the gap the previous review raised.

  • Chip-render gate — resolveChildWorkspacesToggleGroupKey now takes the set of lineage keys whose chip the sidebar currently renders (renderedChipKeys) and flips only those, so a target whose children are all filtered out falls through instead of flipping an inert key and opening the sidebar.
  • getRenderedLineageChipKeys — new function that recovers that key set by replaying computeVisibleWorktrees + the sidebar's row pipeline and collecting item rows with a chip.
  • computeRenderedSidebarRows — split out of computeRenderedSidebarWorktrees so the Cmd+1–9 order path and the new chip-key set share one buildRows call; also exports the HostSectionRow type.
  • getHostScopedWorktreeLineageInputs — the inline same-host lineage narrowing from pending-reveal-inputs.ts became a shared helper, now reused by the resolver's parent lookup.
  • Tests — resolver cases for hidden-chip, archived-parent, stale-instance and cross-host paths, plus an e2e filter case asserting collapsedGroups is left untouched when the child (and its chip) is filtered out.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

🟡 Minor · Guard parent fallback with valid lineage children, not… · child-workspaces-toggle-target.ts:77-83

src/renderer/src/components/sidebar/child-workspaces-toggle-target.ts:77-83
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Guard parent fallback with valid lineage children, not rendered chips.

When a target has valid children but filtering removes their chips, renderedChipKeys does not contain the target key. The current branch then falls back to the parent and toggles the parent group. Check the host-scoped lineage projection before using the parent fallback.

Do not use raw hostId equality. Legacy hostless rows and explicit local rows use different representations, and effective host identity can come from repository metadata. Use getHostScopedWorktreeLineageInputs with getWorktreeExecutionHostId, then inspect getProjectedWorktreeLineageChildrenByParentId.

Suggested fix
 import {
   getAllWorktreesFromState,
   getRepoMapFromState,
   getWorktreeOnHostFromState
 } from '@/store/selectors'
 import type { AppState } from '@/store/types'
+import { getWorktreeExecutionHostId } from '../../../../shared/execution-host'
 import { getWorktreeHostIdentity } from '../../../../shared/worktree/host-qualified-identity'
 import type { Worktree } from '../../../../shared/worktree/types'
 ...
 import {
   getHostScopedWorktreeLineageInputs,
+  getProjectedWorktreeLineageChildrenByParentId,
   getWorktreeLineageAncestors
 } from './worktree-lineage-projection'

 type ChildWorkspacesToggleState = Pick<
   AppState,
-  'activeWorkspaceExecutionHostId' | 'activeWorktreeId' | 'worktreeLineageById' | 'worktreesByRepo'
+  | 'activeWorkspaceExecutionHostId'
+  | 'activeWorktreeId'
+  | 'repos'
+  | 'worktreeLineageById'
+  | 'worktreesByRepo'
 >
 ...
-function getParentWorktree(
+function resolveParentLineage(
   state: ChildWorkspacesToggleState,
   target: Worktree
-): Worktree | undefined {
+): { parent: Worktree | undefined; hasValidChildren: boolean } {
   // Why: the sidebar nests a child only under a parent on the same host, and archived rows never render.
-  const worktrees = getAllWorktreesFromState(state).filter(
-    (worktree) => worktree.hostId === target.hostId && !worktree.isArchived
-  )
-  const { worktreeMap, lineageById } = getHostScopedWorktreeLineageInputs(
+  const repoMap = getRepoMapFromState(state)
+  const executionHostId = getWorktreeExecutionHostId(target, repoMap.get(target.repoId))
+  const inputs = getHostScopedWorktreeLineageInputs(
+    getAllWorktreesFromState(state).filter((worktree) => !worktree.isArchived),
+    state.worktreeLineageById,
+    executionHostId
+  )
+  const childrenByParentId = getProjectedWorktreeLineageChildrenByParentId(
+    inputs.lineageById,
+    inputs.worktreeMap
+  )
+  return {
+    parent: getWorktreeLineageAncestors(target, inputs.lineageById, inputs.worktreeMap)[0],
+    hasValidChildren: (childrenByParentId.get(target.id)?.length ?? 0) > 0
+  }
-    worktrees,
-    state.worktreeLineageById,
-    target.hostId
-  )
-  return getWorktreeLineageAncestors(target, lineageById, worktreeMap)[0]
 }
 ...
-  const parent = getParentWorktree(state, target)
+  const { parent, hasValidChildren } = resolveParentLineage(state, target)
+  if (hasValidChildren) {
+    return null
+  }
   const parentKey = parent ? getWorktreeLineageGroupKey(parent) : null

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 56ba15fa-6e06-4bfb-b15d-bd99738ba8e9

📥 Commits

Reviewing files that changed from the base of the PR and between 0de11fd9b092743ef65bb15af8833494f2e6c948 and f8702ec14ffd0720bb059b3abddc2ee5c69f4d7a.

📒 Files selected for processing (1)
  • docs/site/content/docs/model/worktrees.mdx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

mmarabel and others added 6 commits October 2, 2026 05:26
Adds an unbound 'Toggle Child Workspaces' action. It flips the same
lineage collapse key as the children chip, for the hovered card or the
active workspace, or the parent's key when the target is a leaf child.

Fixes stablyai#24163
…ders

Resolve the shortcut against the sidebar's own row pipeline, so a filter
or grouping that hides every child (and with it the chip) leaves the
chord untouched instead of flipping hidden collapse state.
@nwparker
nwparker force-pushed the mmarabel/child-worktrees-shortcut branch from 3fc47cb to 8e499dc Compare October 2, 2026 14:10

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Since the prior pullfrog review, the newest commits close the render-parity gap it flagged and add the shortcut's dialog guard.

  • Mounted chip-key publishing — useSidebarWorktreeSelection now publishes each rendered row's lineageGroupKey on VisibleWorktreeShortcutTarget, so the resolver's chip set tracks the mounted list's forced-reveal, effective-collapse, and host-drag policy instead of only the canonical replay.
  • Authoritative mounted set — getRenderedLineageChipKeys trusts the published list whenever it is non-null (including empty) and replays canonical rows only while the sidebar list is unmounted.
  • Dialog guard — the handler now returns the chord to focused content when activeModal is set, a floating workspace is focused, or a visible [role="dialog"]/[role="alertdialog"] is on screen, while listboxes and menus still pass through; a scroll-anchor ordering assertion was added.
  • Coverage — a new visibility unit test plus e2e cases for locally controlled dialogs, hover/active precedence, folder pass-through, stale instances, pinned duplicates, restart persistence, and scrolled-anchor behavior.

The prior child-workspaces-toggle-target.ts:93 thread is resolved: chip keys now come from the mounted rows, and the chip predicate (lineageGroupKey && lineageChildCount > 0) matches the card's own chip condition.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

Wait for observed scroll and row geometry to stay unchanged for 500ms, then complete two animation frames before measuring. Keep the original shortcut sequence and both strict two-pixel assertions. This changes fixture preparation only.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Since the prior pullfrog review, the newest commits harden the lineage acceptance fixtures and pin them to background launch.

  • Scroll fixture readiness helper — new waitForLineageScrollFixtureReady waits for the parent row and mounted virtual rows to hold a stable geometry signature for 500ms (and for scrolling to stop), then completes two animation frames before the scroll spec freezes its before geometry.
  • Background launch on CI — the dialog, scroll, and shortcut lineage specs now declare test.use({ launchEnv: { ORCA_BACKGROUND_LAUNCH: '1' } }) so fixtures stay off screen, matching the repo's automated-run policy.

The strict two-pixel assertions and the original shortcut sequence are unchanged, so the adjustment pre-settles the measurement fixture rather than relaxing the check.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@nwparker
nwparker merged commit 9207aef into stablyai:main Oct 4, 2026
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Bindable shortcut to show or hide child workspaces

2 participants