feat(tui): add debug info dialog with copy to clipboard (#35004)

This commit is contained in:
Dustin Deus
2026-07-02 23:00:53 +02:00
committed by GitHub
parent 5ecd19db9f
commit 3adfb970bf
6 changed files with 127 additions and 20 deletions
+11
View File
@@ -42,6 +42,7 @@ import { DialogModel } from "./component/dialog-model"
import { useConnected } from "./component/use-connected"
import { DialogMcp } from "./component/dialog-mcp"
import { DialogStatus } from "./component/dialog-status"
import { DialogDebug } from "./component/dialog-debug"
import { DialogThemeList } from "./component/dialog-theme-list"
import { DialogHelp } from "./ui/dialog-help"
import { DialogAgent } from "./component/dialog-agent"
@@ -115,6 +116,7 @@ const appBindingCommands = [
"provider.connect",
"console.org.switch",
"opencode.status",
"opencode.debug",
"theme.switch",
"theme.switch_mode",
"theme.mode.lock",
@@ -764,6 +766,15 @@ function App(props: { onSnapshot?: () => Promise<string[]>; pluginHost: TuiPlugi
},
category: "System",
},
{
name: "opencode.debug",
title: "View debug info",
slashName: "debug",
run: () => {
dialog.replace(() => <DialogDebug />)
},
category: "System",
},
{
name: "theme.switch",
title: "Switch theme",