-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autocomplete: reproduce buggy prompt where line suffix is missing
Observe how the prompt does not include the `= b + a` suffix. The LLM generates the completion `finalResult = a + b`, which doesn't match the existing code so we return an empty completion.
- Loading branch information
Showing
3 changed files
with
240 additions
and
3 deletions.
There are no files selected for viewing
230 changes: 230 additions & 0 deletions
230
agent/recordings/defaultClient_631904893/recording.har.yaml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export function sum(a: number, b: number): number { | ||
/* CURSOR */ | ||
const /* CURSOR */ = b + a | ||
return finalResult | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters