Skip to content

feat(app): add selection add-to-chat flow with quick edit#14805

Closed
wufei-png wants to merge 2 commits intoanomalyco:devfrom
wufei-png:feat/app-selection-actions-14679
Closed

feat(app): add selection add-to-chat flow with quick edit#14805
wufei-png wants to merge 2 commits intoanomalyco:devfrom
wufei-png:feat/app-selection-actions-14679

Conversation

@wufei-png
Copy link
Copy Markdown

Issue for this PR

Closes #14679

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This PR adds explicit file-selection actions in the session file view so selecting lines no longer forces the comment flow.

Changes included:

  • adds a selection action bar with Add to chat and Quick edit
  • inserts selected file ranges at the current prompt cursor position for message-scoped context
  • adds quick-edit handoff into a new session
  • localizes the new selection/quick-edit labels across supported app locales

This works by wiring selection action handlers in the file tab UI to prompt insertion + handoff state, and consuming handoff when opening a new session composer.

How did you verify your code works?

  • manually selected lines in file view and confirmed action bar appears
  • verified Add to chat inserts @file:start-end attachment at current cursor position
  • verified Quick edit opens a new session with selected file context + instruction prefilled
  • verified keybinds: mod+l (add to chat), mod+k (quick edit)

Screenshots / recordings

UI change. I can attach screenshots/recording if needed.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Made with Cursor

Introduce explicit file-selection actions for add-to-chat and quick edit, wire prompt cursor insertion and quick-edit handoff behavior, and include locale updates for the new selection action strings.

Co-authored-by: Cursor <cursoragent@cursor.com>
@wufei-png
Copy link
Copy Markdown
Author

wufei-png commented Feb 23, 2026

here is an example:

2026-02-24.00-57-45.mov

it can have this effect:
explain this code@script/duplicate-pr.ts:7-13 and compare it with @script/duplicate-pr.ts:22-31

and the current is:
image
I don't think this is the best practice.

@github-actions
Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Apr 25, 2026
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]: opencode web ui: Cursor-style "Add to chat" and "Quick edit" for file selection

1 participant