MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / showError

Function showError

lib/tui/modals.tsx:21–24  ·  view source on GitHub ↗
(api: TuiApi, title: string, error: unknown)

Source from the content-addressed store, hash-verified

19}
20
21export function showError(api: TuiApi, title: string, error: unknown) {
22 const message = error instanceof Error ? error.message : String(error)
23 showStatusDialog(api, title, "DCP Error", message || "Command failed.")
24}
25
26export function openContextModal(api: TuiApi, config: PluginConfig) {
27 runModal(api, "Context", async () => {

Callers 1

runModalFunction · 0.85

Calls 1

showStatusDialogFunction · 0.85

Tested by

no test coverage detected