From 4a07bb561ff8a652751a18528f3fb5661c093ac7 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Wed, 31 Dec 2025 19:12:36 -0500 Subject: [PATCH] tui: remove unused permission dialog component --- packages/opencode/src/cli/cmd/tui/app.tsx | 2 - .../cmd/tui/component/dialog-permission.tsx | 53 ------------------- 2 files changed, 55 deletions(-) delete mode 100644 packages/opencode/src/cli/cmd/tui/component/dialog-permission.tsx diff --git a/packages/opencode/src/cli/cmd/tui/app.tsx b/packages/opencode/src/cli/cmd/tui/app.tsx index f71bab1255..35b33b4a09 100644 --- a/packages/opencode/src/cli/cmd/tui/app.tsx +++ b/packages/opencode/src/cli/cmd/tui/app.tsx @@ -34,7 +34,6 @@ import { Provider } from "@/provider/provider" import { ArgsProvider, useArgs, type Args } from "./context/args" import open from "open" import { PromptRefProvider, usePromptRef } from "./context/prompt" -import { Permission } from "./component/dialog-permission" async function getTerminalBackgroundColor(): Promise<"dark" | "light"> { // can't set raw mode if not a TTY @@ -608,7 +607,6 @@ function App() { } }} > - diff --git a/packages/opencode/src/cli/cmd/tui/component/dialog-permission.tsx b/packages/opencode/src/cli/cmd/tui/component/dialog-permission.tsx deleted file mode 100644 index 51ce27b77f..0000000000 --- a/packages/opencode/src/cli/cmd/tui/component/dialog-permission.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import { onMount } from "solid-js" -import { useDialog } from "../ui/dialog" -import { TextAttributes } from "@opentui/core" -import { useTheme } from "../context/theme" - -export function Permission() { - const dialog = useDialog() - onMount(() => {}) - return null -} - -function DialogPermission() { - const dialog = useDialog() - const { theme } = useTheme() - - onMount(() => { - dialog.setSize("medium") - }) - - return ( - { - console.log(e) - }} - ref={(r) => { - setTimeout(() => { - r?.focus() - }, 1) - }} - > - - Permission Request - esc - - Change to foo directory and create bar file - $ cd foo && touch bar - - - Allow - - - Always allow the touch command - - - Reject - - - - ) -}