cody icon indicating copy to clipboard operation
cody copied to clipboard

Unexpected behavior after stop output earlier

Open 6ea83e85cfe2749d5e61 opened this issue 10 months ago • 2 comments

Version

1.80.1

Describe the bug

After terminating LLM output via the stop button, attempting to input a new message in the lower input field and clicking send results in lost of new input content, previous partially generated output, and the previous message's prompt appearing in the input field.

Reproduction Steps:

  1. Just greet to Cody
  2. Ask it to generate sufficiently long content allowing you to manually stop the output in time
  3. Click the stop button below to halt output during generation
  4. Assume you regret it, but still need the AI to know what it just said (e.g., it made false assume)
  5. Thus you must input a new message in the bottom input field
  6. Click send
  7. Observe: Partially generated messages output, newly input content gone, and the input field reverts to the prompt of the previously terminated message's prompt

Refer to the attached

https://github.com/user-attachments/assets/68c8b084-06c2-4d3e-9cc8-55058b383011

for demonstration

Expected behavior

The system should retain the LLM output that was previously manually terminated (optionally noting at the end that it was user-terminated) and properly send new messages. This behavior should be consistent with how it functions on other popular AI platforms like ChatGPT.

Additional context

No response

6ea83e85cfe2749d5e61 avatar Mar 30 '25 02:03 6ea83e85cfe2749d5e61