Repository navigation
Fix send picker reveal under collapsed hosts and parents - #25950
Conversation
737817c to
9ed4a61
Compare
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
📥 CommitsReviewing files that changed from the base of the PR and between 9ed4a61cbd8ef9ebc16709194563a6393c58e8d0 and 207abb0. You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📥 CommitsReviewing files that changed from the base of the PR and between ac8ea9f and 9ed4a61cbd8ef9ebc16709194563a6393c58e8d0. 📒 Files selected for processing (6)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughWorktree reveal logic now uses a shared helper to identify collapsed groups that hide a target. The effective collapsed-group hook receives all worktrees, and pending reveals use the same key-selection helper. Tests cover agent-send targets hidden by collapsed host or lineage groups and verify that collapse state is restored when the target is cleared. Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to No actionable issue remains from this review; the PR is mergeable after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
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. Comment |
9ed4a61 to
207abb0
Compare
ELI5
Opening Send notes should make the receiving agent visible, even when its workspace is inside a collapsed host or parent. Closing the picker should put the sidebar back as it was.
What Changed
The picker previously opened section headings but left host headings closed, and it removed parent keys without the host prefix used by the rendered rows. Normal Reveal and the picker now share the existing ancestor-resolution logic: execution host, every parent, and the owning section. The picker applies that result to a temporary copy of the saved collapse set. Parent lookup uses the full host-scoped catalog, while pinned membership still follows the visible catalog.
Why
Fixing only the missing host key would leave nested workspaces hidden. Sharing the resolver fixes both causes and keeps normal Reveal and picker disclosure consistent, without changing saved preferences to compensate for the picker.
Linked Issue
Internal follow-up to #25836. Follow-up to #25944, which supplies the host-owned section keys on main.
Visual Proof
Both builds start with the same collapsed ancestor and use the actual Send notes to an agent button. These screenshots show the sidebar after opening the picker. Before: the receiving workspace remains hidden. After: its host or parent opens and the eligible Claude row is outlined. The unrelated host stays visible.
Testing
pnpm tc, full oxlint, changed-code quality gate, and Electron e2e build pass on the repaired main base.Review
The shared resolver retains folder-workspace handling, combined grouping, pinned policy, and qualified parent identities. The picker only changes presentation while open. No status producer, process control, wire format, paths, shortcuts, or styling changed.
Agent skill upstream boundary
Checklist