From 60dc38050dfd9c39428ec366d4a40b8fd47674f9 Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Fri, 31 Oct 2025 16:53:08 -0500 Subject: [PATCH] fix: unsupported option --- packages/opencode/src/cli/cmd/tui/app.tsx | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/packages/opencode/src/cli/cmd/tui/app.tsx b/packages/opencode/src/cli/cmd/tui/app.tsx index 1f1f9f63..65f90067 100644 --- a/packages/opencode/src/cli/cmd/tui/app.tsx +++ b/packages/opencode/src/cli/cmd/tui/app.tsx @@ -53,7 +53,11 @@ export function tui(input: { render( () => { return ( - }> + ( + + )} + > @@ -319,7 +323,7 @@ function App() { {local.agent.current().name.toUpperCase()} AGENT @@ -330,7 +334,7 @@ function App() { ) } -function ErrorComponent(props: { error: Error; reset: () => void, onExit: () => Promise }) { +function ErrorComponent(props: { error: Error; reset: () => void; onExit: () => Promise }) { const term = useTerminalDimensions() useKeyboard((evt) => { if (evt.ctrl && evt.name === "c") { @@ -346,11 +350,16 @@ function ErrorComponent(props: { error: Error; reset: () => void, onExit: () => } if (props.error.stack) { - issueURL.searchParams.set("description", "```\n" + props.error.stack.substring(0, 6000 - issueURL.toString().length) + "...\n```") + issueURL.searchParams.set( + "description", + "```\n" + props.error.stack.substring(0, 6000 - issueURL.toString().length) + "...\n```", + ) } const copyIssueURL = () => { - Clipboard.copy(issueURL.toString()).then(() => { setCopied(true) }) + Clipboard.copy(issueURL.toString()).then(() => { + setCopied(true) + }) } return ( @@ -375,6 +384,6 @@ function ErrorComponent(props: { error: Error; reset: () => void, onExit: () => {props.error.stack} {props.error.message} - + ) }