fix: handle undefined return from ctx.ui.input in forensics

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson 2026-03-16 14:32:21 -06:00
parent 14f8135972
commit 76f73243eb

View file

@ -98,7 +98,7 @@ export async function handleForensics(
problemDescription = await ctx.ui.input(
"Describe what went wrong:",
"e.g. auto-mode got stuck on task T03",
);
) ?? "";
}
if (!problemDescription?.trim()) {
ctx.ui.notify("Problem description required for forensic analysis.", "warning");