MCPcopy Index your code
hub / github.com/anomalyco/opencode / limitFrames

Function limitFrames

packages/opencode/src/cli/cmd/run/subagent-data.ts:370–376  ·  view source on GitHub ↗
(detail: DetailState)

Source from the content-addressed store, hash-verified

368}
369
370function limitFrames(detail: DetailState) {
371 if (detail.frames.length <= SUBAGENT_COMMIT_LIMIT) {
372 return
373 }
374
375 detail.frames.splice(0, detail.frames.length - SUBAGENT_COMMIT_LIMIT)
376}
377
378function mergeLiveCommit(current: StreamCommit, next: StreamCommit) {
379 if (current.phase !== "progress" || next.phase !== "progress") {

Callers 1

appendCommitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected