cd /news/developer-tools/openclaw-connector-hardening · home topics developer-tools article
[ARTICLE · art-33354] src=signetai.sh ↗ pub= topic=developer-tools verified=true sentiment=· neutral

OpenClaw Connector Hardening

OpenClaw runtime plugin received three hardening improvements identified by Ant from production patterns: temporal index content previews, type safety and backwards compatibility updates, and a new mid-session checkpoint extraction endpoint for long-lived sessions. The changes are delivered in PR #369.

read2 min views1 publishedJun 18, 2026

Three targeted improvements to the OpenClaw runtime plugin identified by Ant (Discord agent) from production use patterns.

Problem 1 — Temporal Index Content Previews #

Change: buildSynthesisIndexBlock

(hooks.ts) now appends a
`summary: <preview>`

line under each temporal index entry, using the existing trimContent(node.content, 120)

helper.

The synthesis prompt’s “do not rewrite” instruction was updated to cover the two-line format.

Problem 2 — Type Safety and Backwards Compatibility #

Change: openclaw-types.ts now mirrors the upstream typed hook interfaces (PluginHookAgentContext

, PluginHookBeforePromptBuildEvent

,

etc.) with & Record<string, unknown> intersections that preserve access to undocumented extra fields from older OpenClaw builds.

resolveCtx() replaces six ad-hoc field resolution functions with a single dual-source resolver: typed ctx fields preferred, legacy event extras as fallback.

Legacy dedup: when both before_prompt_build

and before_agent_start

fire on the same turn without the messages

field (older OpenClaw), generation counters (bpbGen

/basGen

Maps) ensure only one of the pair increments the turn counter. Generation-based tracking avoids the stale-flag problem a Set

approach has when before_agent_start

misses a turn.

Problem 3 — Mid-Session Extraction for Long-Lived Sessions #

Change: New POST /api/hooks/session-checkpoint-extract

endpoint. The OpenClaw adapter tracks turns per session; after 20 turns it fire-and-forgets a checkpoint extract without releasing the session claim.

Delta tracking via session_extract_cursors

table (migration 049 in TS daemon, 033 in Rust daemon). The cursor is advanced AFTER enqueueSummaryJob

succeeds so a crash causes redundant re-extraction rather than a silent data-loss window.

Rust daemon reads cursor and transcript, checks the delta threshold, enqueues a checkpoint_extract

summary job for the delta, then advances the cursor. Summary job queueing and cursor advancement now match the TS daemon contract: if enqueue fails, the cursor is not advanced and the delta is retried on the next checkpoint attempt.

For file-backed checkpoint transcripts, the Rust daemon applies the same guardrail used by its session-end path: transcriptPath

must canonicalize under /tmp/signet

, point to a regular file, and fit within the transcript size cap before the daemon reads it.

Delivered #

PR #369 (ant/openclaw-hardening ).

── more in #developer-tools 4 stories · sorted by recency
── more on @openclaw 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/openclaw-connector-h…] indexed:0 read:2min 2026-06-18 ·