Repository navigation
fix(web): attach command palette threads outside the sidebar - #37054
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Command-palette drags now retain the thread title so threads absent from the sidebar can be attached to the composer. Existing reference sanitization and cross-environment handling remain unchanged, keeping the impact limited to the explicit drag-and-drop action. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Problem
Dragging a Cmd+K search result into the composer silently does nothing unless that thread is in the current sidebar cache. The palette drag support added in #33990 reused a drop handler that required a cached thread shell, but search results can exist without one.
Change
Carry the search result title in the drag payload and use it to create the thread reference without a sidebar lookup requirement. Sidebar drags retain their cached-title fallback. Cross-environment transcript imports keep their existing behavior. This fixes web and desktop; mobile has no command-palette drag path.
Scope
Small fix for an obvious, user-reported regression; no separate issue needed.
Verification
vp run check:changedpasses, including formatting, lint, knip, affected typechecks, tests, and React Compiler checks.Model: GPT 6.1 Sol. Harness: Codex in T3 Code.