Skip to content

Webhook buffer grows unbounded — crashes with V8 string length error #158

@warren-t-c

Description

@warren-t-c

Problem

The webhook buffer file (.data/webhook-buffer/webhook-github.jsonl) grows without bound. After accumulating ~37k events over a few weeks of active use, it reached 560MB and OrgLoop crashed on startup with:

Failed to start: Cannot create a string longer than 0x1fffffe8 characters

The process stays alive (systemd reports active (running)) but the event loop never starts — all incoming events are silently dropped.

Expected Behavior

The buffer should have rotation, truncation, or a size cap so it doesn't grow forever. Processed events should be prunable.

Suggested Fix

Options (any would work):

  1. Auto-rotate — truncate processed events after successful delivery
  2. Size cap — drop or archive oldest events when file exceeds a configurable limit
  3. Stream reading — don't load the entire file into a single string; read line-by-line

Environment

  • OrgLoop CLI (latest as of 2026-03-28)
  • Node.js v22 on Ubuntu 24.04 ARM64
  • ~37k GitHub webhook events over ~3 weeks of use

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions