Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Conversation

@mkondratek
Copy link
Contributor

@mkondratek mkondratek commented Jul 7, 2025

See https://linear.app/sourcegraph/issue/CODY-6178/investigate-inconsistent-behavior-in-auto-edits-feature.

Problem

We have noticed a strange behavior recently: https://sourcegraph.slack.com/archives/C05AGQYD528/p1750845105385289

We've observed that in some cases, the insertText and originalText fields of the autoedit completion result are inconsistent. This can lead to duplicated or malformed suggestions in the editor.

We suspect the issue originates from the LLM response itself, rather than from any post-processing on our end.

Solution Repro Description

This PR introduces a test case designed to help us reproduce the issue more reliably. By running it repeatedly, we hope to capture examples of the faulty behavior and better understand the root cause.

Initially, I've tried to run the test repeatedly. I have never managed to get the incorrect result. Then I played with the params and responses that I caught in a debug session. Based on that it seems to me that the problem is related to the bad response (not to the post-processing) issues.

Test plan

tbd

@mkondratek mkondratek self-assigned this Jul 7, 2025
@mkondratek mkondratek changed the title wip Add a test for autoedit anomalies Jul 7, 2025
@mkondratek mkondratek marked this pull request as draft July 7, 2025 09:05
@mkondratek mkondratek force-pushed the mkondratek/test/point3d branch from fd353c2 to 2683e6a Compare July 7, 2025 11:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants