Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cody bug: disappearing error in Chat #51759

Closed
Tracked by #51773
abeatrix opened this issue May 11, 2023 · 0 comments
Closed
Tracked by #51773

Cody bug: disappearing error in Chat #51759

abeatrix opened this issue May 11, 2023 · 0 comments
Assignees
Labels
bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. cody/vscode cody

Comments

@abeatrix
Copy link
Contributor

abeatrix commented May 11, 2023

RE: https://sourcegraph.slack.com/archives/C052G9Y5Y8H/p1683740735455709

report by Erik:

after taking this screenshot the last error message is now gone without me doing anything.
it is there for like 10s or so but then disappears silently which feels odd, since it then looks like cody just never replied

Image

@abeatrix abeatrix added bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. cody cody/vscode labels May 11, 2023
@abeatrix abeatrix self-assigned this May 11, 2023
philipp-spiess pushed a commit that referenced this issue May 11, 2023
RE: #51759

Issue: error displaying as chat message will disappear all of a sudden
without user action

I noticed in the current implementation, errors resulted from failed
streaming will replace the current assistant message, which would
include the previous error message, or things that Cody has already
response. This PR includes a fix where we will add the error message ON
TOP of the current assistant message instead of overriding it.

For example, instead of removing what Cody has replied and replace it
with an error message, we now add the error message after what Cody has
already answered `Hello! How can I help you?`:
<img width="769" alt="image"
src="https://github.com/sourcegraph/sourcegraph/assets/68532117/01862761-1aa3-4f33-94f7-6c2849eb78a3">

Other changes include:
- Added a new `<ErrorBanner>` component that would show 5 of the last
system error messages as a banner in chat UI (instead of 1, which
override the previous one).
- Now log all system error messages to debug logs (`"cody.debug": true`)
view in UI

<img width="1683" alt="Screenshot 2023-05-10 at 7 00 43 PM"
src="https://github.com/sourcegraph/sourcegraph/assets/68532117/b09f0a27-bf70-4319-9c29-df2b4f5b6bf7">

<img width="622" alt="image"
src="https://github.com/sourcegraph/sourcegraph/assets/68532117/ccdfaf57-8a13-49ab-8d85-5611b52f4a8e">
<img width="609" alt="image"
src="https://github.com/sourcegraph/sourcegraph/assets/68532117/8a3800ce-c275-4d4d-845e-6306eecc2c91">

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

See screenshots above
VolhaBakanouskaya pushed a commit to VolhaBakanouskaya/sourcegraph-public that referenced this issue Jun 30, 2023
RE: sourcegraph/sourcegraph#51759

Issue: error displaying as chat message will disappear all of a sudden
without user action

I noticed in the current implementation, errors resulted from failed
streaming will replace the current assistant message, which would
include the previous error message, or things that Cody has already
response. This PR includes a fix where we will add the error message ON
TOP of the current assistant message instead of overriding it.

For example, instead of removing what Cody has replied and replace it
with an error message, we now add the error message after what Cody has
already answered `Hello! How can I help you?`:
<img width="769" alt="image"
src="https://github.com/sourcegraph/sourcegraph/assets/68532117/01862761-1aa3-4f33-94f7-6c2849eb78a3">

Other changes include:
- Added a new `<ErrorBanner>` component that would show 5 of the last
system error messages as a banner in chat UI (instead of 1, which
override the previous one).
- Now log all system error messages to debug logs (`"cody.debug": true`)
view in UI

<img width="1683" alt="Screenshot 2023-05-10 at 7 00 43 PM"
src="https://github.com/sourcegraph/sourcegraph/assets/68532117/b09f0a27-bf70-4319-9c29-df2b4f5b6bf7">

<img width="622" alt="image"
src="https://github.com/sourcegraph/sourcegraph/assets/68532117/ccdfaf57-8a13-49ab-8d85-5611b52f4a8e">
<img width="609" alt="image"
src="https://github.com/sourcegraph/sourcegraph/assets/68532117/8a3800ce-c275-4d4d-845e-6306eecc2c91">

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

See screenshots above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. cody/vscode cody
Projects
None yet
Development

No branches or pull requests

2 participants