MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / Snapshot

Function Snapshot

internal/debug/debug.go:221–227  ·  view source on GitHub ↗

Snapshot returns a copy of the current ring, oldest first.

()

Source from the content-addressed store, hash-verified

219
220// Snapshot returns a copy of the current ring, oldest first.
221func Snapshot() []Event {
222 mu.Lock()
223 defer mu.Unlock()
224 out := make([]Event, len(events))
225 copy(out, events)
226 return out
227}
228
229// Clear empties the ring. Called from /debug clear.
230func Clear() {

Callers 9

cmdDebugListFunction · 0.92
TestSnapshotReturnsCopyFunction · 0.92
renderDebugListMethod · 0.92
toggleDebugFocusMethod · 0.92
updateDebugFocusMethod · 0.92
moveSelectionMethod · 0.92
mouseSelectMethod · 0.92

Calls

no outgoing calls

Tested by 3

TestSnapshotReturnsCopyFunction · 0.74