diff options
| author | Aiden Cline <[email protected]> | 2025-10-31 16:53:08 -0500 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-10-31 16:53:08 -0500 |
| commit | 60dc38050dfd9c39428ec366d4a40b8fd47674f9 (patch) | |
| tree | 3e04d980316f58db5d309218bc4f891353e0d10b | |
| parent | 31d0caee38f9f2efa69253a9734cfa4217242bbc (diff) | |
| download | opencode-60dc38050dfd9c39428ec366d4a40b8fd47674f9.tar.gz opencode-60dc38050dfd9c39428ec366d4a40b8fd47674f9.zip | |
fix: unsupported option
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/app.tsx | 21 |
1 files 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 1f1f9f63b..65f900679 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 ( - <ErrorBoundary fallback={(error, reset) => <ErrorComponent error={error} reset={reset} onExit={onExit} />}> + <ErrorBoundary + fallback={(error, reset) => ( + <ErrorComponent error={error} reset={reset} onExit={onExit} /> + )} + > <ExitProvider onExit={onExit}> <KVProvider> <ToastProvider> @@ -319,7 +323,7 @@ function App() { <text bg={local.agent.color(local.agent.current().name)} fg={theme.background} - wrapMode="none" + wrapMode={undefined} > <span style={{ bold: true }}> {local.agent.current().name.toUpperCase()}</span> <span> AGENT </span> @@ -330,7 +334,7 @@ function App() { ) } -function ErrorComponent(props: { error: Error; reset: () => void, onExit: () => Promise<void> }) { +function ErrorComponent(props: { error: Error; reset: () => void; onExit: () => Promise<void> }) { 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: () => <text>{props.error.stack}</text> </scrollbox> <text>{props.error.message}</text> - </box > + </box> ) } |
