Debug panel fixes (#297804)

This commit is contained in:
Vijay Upadya
2026-02-25 14:28:47 -08:00
committed by GitHub
parent f3f0d3179d
commit 62cd38b3e0
3 changed files with 26 additions and 13 deletions

View File

@@ -197,13 +197,14 @@ export class ExtHostChatDebug extends Disposable implements ExtHostChatDebugShap
};
}
default: {
// Final fallback: treat as generic
const generic = event as vscode.ChatDebugGenericEvent;
const rawName = generic.name;
const rawDetails = generic.details;
return {
...base,
kind: 'generic',
name: generic.name ?? '',
details: generic.details,
name: typeof rawName === 'string' ? rawName : '',
details: typeof rawDetails === 'string' ? rawDetails : undefined,
level: generic.level ?? 1,
category: generic.category,
};