Skip to content

[Intel] Pre-Compaction Capture Hook — Palaia als Safety-Net für OpenClaw Context-Loss #185

Description

@iret77

Quelle

  • VelvetShark: OpenClaw Memory Masterclass (März 2026) — meistgeteilter Community-Guide zu Memory-Loss durch Compaction
  • Medium: I Fixed OpenClaw's Biggest Problem (Memory) (März 2026)
  • openclaw/openclaw Issue #41216: Feature request — memory flush before /new and /restart
  • PR fix: ownsCompaction flag — prevent parallel compaction conflict #177 (iret77/palaia): ownsCompaction flag — parallele Compaction-Konflikte (OPEN)
  • Multiple Community-Repos (April 2026): openclaw-cc-contrib (extract-memories, dream-rem), openclaw-memory-kit — alle lösen das gleiche Grundproblem manuell

Insight

Compaction ist das #1 User-Pain-Point im OpenClaw-Ökosystem. Wenn der Context-Window voll läuft und OpenClaw kompaktiert, gehen Informationen verloren — weil Auto-Capture (agent_end Hook) nach der Session feuert, nicht vor der Kompaktierung.

Das Gleiche gilt für /new und /restart: User müssen manuell daran denken, vor dem Session-Reset zu speichern.

Community-Workarounds proliferieren (CC-Skills, manuelles extract-memories), aber keine davon ist tief in eine Memory-Infrastruktur integriert. Palaia ist die einzige lokale Memory-Lösung mit echtem Hook-System — das ist der Hebel.

Vorschlag für Palaia

Pre-Compaction Capture Hook als neuer Hook-Typ im OpenClaw-Plugin:

Technisch:

  • OpenClaw feuert Event bevor es kompaktiert (laut compaction.md bereits dokumentiert als "reminds agent to save important notes")
  • Palaia-Plugin registriert diesen Hook und triggert Force-Capture aller aktuellen Konversationsinhalte
  • Bestehender Auto-Capture Code (agent_end) kann wiederverwendet werden mit force-Flag

Optionaler Config-Key: (default: true)

Warum das Palaia besser macht

Aufwand-Schätzung

M — Hook-Registrierung + Force-Capture Logik. OpenClaw-seitig: prüfen ob compaction_imminent Event bereits im Plugin-API verfügbar ist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions