Skip to content

Harness: keep the line range when quoting a workspace selection #275

Open

Description

@GoDiao

Part of #270. Finding: T-INJ-05.

When the user selects a few lines in the workspace or comments on a line and sends it to the model, the server passes only the file's absolute path and drops the line range, so the CLI reads the whole file (up to 25,000 tokens) next to the quoted lines. Pass the line range through so only those lines (with a little context) are attached.

Done when: a server test shows the attachment for a quoted selection carries the range, and a CLI test shows only that range is read.

Activity

  1. added
    bug
    help wanted
    area:desktop
    difficulty:2
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:desktopbugdifficulty:2help wanted

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions