MCPcopy Create free account
hub / github.com/anomalyco/opencode / copy

Function copy

packages/session-ui/src/components/tool-error-card.tsx:85–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 })
84
85 const copy = async () => {
86 const text = cleaned()
87 if (!text) return
88 await navigator.clipboard.writeText(text)
89 setState("copied", true)
90 setTimeout(() => setState("copied", false), 2000)
91 }
92
93 return (
94 <Card {...rest} data-kind="tool-error-card" data-open={open() ? "true" : "false"} variant="error">

Callers 1

ToolErrorCardFunction · 0.70

Calls 1

setStateFunction · 0.85

Tested by

no test coverage detected