feat(agent-manager): drag sessions, worktrees, terminals, and documents into the prompt - #14102
Merged
marius-kilocode merged 3 commits intoSep 14, 2026
Merged
Conversation
…ts into the prompt
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Incremental review Files Reviewed (3 files)
Previous Review Summaries (2 snapshots, latest commit ff5aeba)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit ff5aeba)Status: No Issues Found | Recommendation: Merge Files Reviewed (9 files)
Previous review (commit 81ecad2)Status: 6 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)CRITICAL
WARNING
SUGGESTION
Files Reviewed (19 files)
Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0 Review guidance: REVIEW.md from base branch |
- Track dropped mentions so typing after a drop keeps the dropdown closed - Detect leaving the side panel via strip bounds so leftward reordering works - Tear down the drop listener and drag state when the prompt unmounts - Restore sidebar worktree order on prompt and outside drops - Derive the disabled flag for drag-dropped worktree references
marius-kilocode
enabled auto-merge
September 14, 2026 07:55
eshurakov
approved these changes
Sep 14, 2026
marius-kilocode
deleted the
allow-drag-drop-session-worktree-cards-to-prompt
branch
September 14, 2026 08:10
This was referenced Sep 14, 2026
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.
What Problem This Solves
Session tabs and worktree cards could only be referenced in the prompt through the
@mention picker. Users could not drag the item they were looking at into the composer, and dragging a worktree out of the sidebar kept reordering the list under the pointer.Why This Change Was Made
draggableto the same element conflicts with reordering. The change reuses the existing drag lifecycle and resolves the drop by hit-testing the pointer against a registered prompt rectangle.User Impact
@mention.Evidence
bun run typecheck,bun run lint,bun run bundle,bun run knip, andbun run check-kilocode-changepass.bun run test:unit: 5535 pass, 2 skip, 0 fail.insideRecthit testing, andinsertDropfor worktree, session, terminal, and file mentions.How to Test
@mention with a trailing space.@file path is inserted.Checklist
minor).