Skip to content

Assistant: Inline chat corrupts selected text #10914

@samclark2015

Description

@samclark2015

System details:

Positron and OS details:

Positron Dev Version: 2026.01.0 build 0
Code - OSS Version: 1.106.0
Commit: Unknown
Date: Unknown
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.1.0

Session details:

Claude Sonnet 4 (but affects any model)

Describe the issue:

When using Inline Chat in an editor with selected text, new text that spans multiple lines will interpose with existing text, leading to corrupted output.

Image

Steps to reproduce the issue:

  1. Open a file in an Editor
  2. Select some text within the document
  3. Invoke an inline chat (Cmd+I)
  4. Instruct Assistant to edit, with some notion of outputting multiple lines (/doc seems reliable)

Expected or desired behavior:

Text after edits is legible, not bungled with existing text and new output from Assistant.

Were there any error messages in the UI, Output panel, or Developer Tools console?

None

Metadata

Metadata

Assignees

Labels

area: assistantIssues related to Positron AssistantbugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions