Skip to content

Commit 95019f1

Browse files
brunobergherroomote[bot]daniel-lxscte
authored andcommitted
ux: add downloadable error diagnostics from chat errors (RooCodeInc#10188)
Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com> Co-authored-by: daniel-lxs <ricciodaniel98@gmail.com> Co-authored-by: Chris Estreich <cestreich@gmail.com>
1 parent 5191c74 commit 95019f1

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

webview-ui/src/components/chat/ErrorRow.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,23 @@ export const ErrorRow = memo(
133133
[version, provider, modelId, errorDetails],
134134
)
135135

136+
const handleDownloadDiagnostics = useCallback(
137+
(e: React.MouseEvent) => {
138+
e.stopPropagation()
139+
vscode.postMessage({
140+
type: "downloadErrorDiagnostics",
141+
values: {
142+
timestamp: new Date().toISOString(),
143+
version,
144+
provider,
145+
model: modelId,
146+
details: errorDetails || "",
147+
},
148+
})
149+
},
150+
[version, provider, modelId, errorDetails],
151+
)
152+
136153
// Default titles for different error types
137154
const getDefaultTitle = () => {
138155
if (title) return title

0 commit comments

Comments
 (0)