File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
report-app/src/app/pages/report-viewer Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ <h4>Debugging Tools</h4>
411
411
(click) ="downloadDebuggingZip(result) ">
412
412
Download ZIP for debugging
413
413
</ button >
414
- @if (result.toolLogs.length > 0) {
414
+ @if (result.toolLogs && result.toolLogs .length > 0) {
415
415
< expansion-panel >
416
416
< expansion-panel-header > Tool Logs</ expansion-panel-header >
417
417
< ul class ="tool-logs-list ">
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ interface BaseLlmGenerateResponse {
148
148
/** Reasoning messages from the LLM. */
149
149
reasoning : string ;
150
150
/** Tool requests and responses. */
151
- toolLogs : ToolLogEntry [ ] ;
151
+ toolLogs ? : ToolLogEntry [ ] ;
152
152
}
153
153
154
154
/** File generation response from the LLM. */
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ async function startEvaluationTask(
350
350
progress
351
351
) ;
352
352
353
- const toolLogs = initialResponse . toolLogs ;
353
+ const toolLogs = initialResponse . toolLogs ?? [ ] ;
354
354
355
355
if ( ! initialResponse ) {
356
356
progress . log (
@@ -688,7 +688,7 @@ async function installChrome(): Promise<void> {
688
688
689
689
try {
690
690
await chromeInstallPromise ;
691
- } catch { }
691
+ } catch { } // Ignore errors here, as it might be already installed.
692
692
}
693
693
694
694
/**
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ export interface LlmResponse {
106
106
/** Reasoning messages from the LLM for generating this response. */
107
107
reasoning : string ;
108
108
/** Tool requests logs (e.g. MCP requests and responses). */
109
- toolLogs : ToolLogEntry [ ] ;
109
+ toolLogs ? : ToolLogEntry [ ] ;
110
110
}
111
111
112
112
/** Error response from an LLM API. */
@@ -409,7 +409,7 @@ export interface AssessmentResult {
409
409
/** The number of repair attempts made after the axe initial failures. */
410
410
axeRepairAttempts : number ;
411
411
/** Tool requests logs (e.g. MCP requests and responses). */
412
- toolLogs : ToolLogEntry [ ] ;
412
+ toolLogs ? : ToolLogEntry [ ] ;
413
413
}
414
414
415
415
/**
You can’t perform that action at this time.
0 commit comments