opencode/packages/tui/test/fixture/plugin/dialog-throw/tui.tsx

11 lines
286 B
TypeScript

import { Plugin } from "@opencode/plugin/tui"
// A dialog that throws while rendering (anomalyco/opencode#61101).
export default Plugin.define({
id: "fixture.dialog-throw",
setup(context) {
context.ui.dialog.show(() => {
throw new Error("dialog exploded")
})
},
})