Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Drop the +1 capacity hint in mergeEndpointHook

Claudeb2e72ec807e5
diff --git a/cli/beacon/internal/endpoint/hooks/cursor.go b/cli/beacon/internal/endpoint/hooks/cursor.go
index f11c13d1..9cefb63e 100644
--- a/cli/beacon/internal/endpoint/hooks/cursor.go
+++ b/cli/beacon/internal/endpoint/hooks/cursor.go
@@ -251,7 +251,7 @@ func isEndpointHookEntry(entry json.RawMessage) bool {
}
func mergeEndpointHook(existing []json.RawMessage, ref json.RawMessage) []json.RawMessage {
- out := make([]json.RawMessage, 0, len(existing)+1)
+ out := make([]json.RawMessage, 0, len(existing))
for _, item := range existing {
if !isEndpointHookEntry(item) {
out = append(out, item)