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

Function finalize

packages/app/src/components/terminal.tsx:640–643  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

638 if (ws && ws.readyState !== WebSocket.CLOSED && ws.readyState !== WebSocket.CLOSING) ws.close(1000)
639
640 const finalize = () => {
641 persistTerminal({ term, addon: serializeAddon, cursor, id, onCleanup: props.onCleanup })
642 cleanup()
643 }
644
645 if (!output) {
646 finalize()

Callers 1

TerminalFunction · 0.85

Calls 2

persistTerminalFunction · 0.85
cleanupFunction · 0.70

Tested by

no test coverage detected