feat: include recent chunks in error telemetry (#1134)

This commit is contained in:
jnjpng
2026-02-25 10:56:24 -08:00
committed by GitHub
parent 423215fd56
commit 9f91b1ab28
2 changed files with 6 additions and 0 deletions

View File

@@ -2910,6 +2910,7 @@ export default function App({
if (!skipTelemetry) {
telemetry.trackError("ui_error", text, "error_display", {
modelId: currentModelId || undefined,
recentChunks: chunkLog.getEntries(),
});
}
},
@@ -4764,6 +4765,7 @@ export default function App({
{
modelId: currentModelId || undefined,
runId: lastRunId ?? undefined,
recentChunks: chunkLog.getEntries(),
},
);
@@ -4934,6 +4936,7 @@ export default function App({
httpStatus,
modelId: currentModelId || undefined,
runId: currentRunId,
recentChunks: chunkLog.getEntries(),
});
// Use comprehensive error formatting