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

Function active

packages/opencode/src/cli/cmd/run/session-replay.ts:60–62  ·  view source on GitHub ↗
(data: SessionData)

Source from the content-addressed store, hash-verified

58}
59
60function active(data: SessionData) {
61 return data.part.size > 0 || data.tools.size > 0
62}
63
64function replayPatch(data: SessionData, patch: FooterPatch | undefined) {
65 if (active(data)) {

Callers 1

replayPatchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected