From 3463f79883ad866fec357ca797f26ee1669ba84d Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Tue, 11 Nov 2025 18:57:25 -0800 Subject: [PATCH] fix: :art: Fix typescript errors --- extensions/cli/src/ui/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/cli/src/ui/index.ts b/extensions/cli/src/ui/index.ts index 93cc6bb6d..45e81e7ab 100644 --- a/extensions/cli/src/ui/index.ts +++ b/extensions/cli/src/ui/index.ts @@ -84,7 +84,7 @@ export async function startTUIChat( (stdinToUse as any).setRawMode(true); (stdinToUse as any).setRawMode(false); logger.debug("Raw mode test passed - TTY is suitable for Ink"); - } catch (error) { + } catch { throw new Error( "Terminal does not support raw mode required for interactive UI.\n" + 'Use -p flag for headless mode: cn -p "your prompt"', @@ -145,7 +145,7 @@ export async function startRemoteTUIChat( (process.stdin as any).setRawMode(true); (process.stdin as any).setRawMode(false); logger.debug("Raw mode test passed for remote TUI"); - } catch (error) { + } catch { throw new Error( "Terminal does not support raw mode required for interactive UI.", );