Skip to content

Context Awareness Feature for Selected Code #10085

@hem951740-max

Description

@hem951740-max

Problem (one or two sentences)

Every time I select code, I need to manually copy it to Roo Code's chat panel. The chat panel displays the full code instead of line numbers, which significantly impacts the visual experience.

Image

Context (who is affected and when)

Users who frequently select code snippets and want to reference them in the chat. Having to manually copy code and seeing the full code displayed (rather than a compact line number reference) clutters the chat interface.

Image

Desired behavior (conceptual, not technical)

Image

Context-aware recognition of selected code with one click. The Roo Code chat panel should compress the context into a compact line number reference instead of displaying the full code.

Constraints / preferences (optional)

No response

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Roo Code Task Links (optional)

No response

Acceptance criteria (optional)

Image

This is the final effect I want - a compact reference to selected code lines rather than the full code block.

Proposed approach (optional)

Can refer to plugins like Lingma, CodeGeeX for similar functionality.

Image

Trade-offs / risks (optional)

No response

Metadata

Metadata

Assignees

Labels

Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.UI/UXUI/UX related or focused

Type

No type

Projects

Status

Issue [In Progress]

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions