-
Notifications
You must be signed in to change notification settings - Fork 749
fix(chat): Change the UI on output console and add spinner for writing process from agentic #6936
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
Changes from all commits
22fbd16
68a18b4
ce978c6
6a0b987
799a84e
cc2fa97
5831745
06864a9
94ceedd
5d066ec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| /*! | ||
| * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| import { CodeWhispererStreamingServiceException } from '@amzn/codewhisperer-streaming' | ||
| import { getHttpStatusCode, getRequestId } from '../errors' | ||
|
|
||
| export interface MessageErrorInfo { | ||
| errorMessage: string | ||
| statusCode?: number | ||
| requestId?: string | ||
| } | ||
|
|
||
| export function extractErrorInfo(error: any): MessageErrorInfo { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for thinking about shared utils, but this is specific to CW client, so it should live in |
||
| let errorMessage = 'Error reading chat stream.' | ||
| let statusCode = undefined | ||
| let requestId = undefined | ||
|
|
||
| if (error instanceof CodeWhispererStreamingServiceException) { | ||
| errorMessage = error.message | ||
| statusCode = getHttpStatusCode(error) ?? 0 | ||
| requestId = getRequestId(error) | ||
| } | ||
|
|
||
| return { | ||
| errorMessage, | ||
| statusCode, | ||
| requestId, | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.