Skip to content

v1.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 01:32
4a116f4

1.3.0

Minor Changes

  • #1223 e10491d Thanks @TheAngryPit! - Add explicit Codex rollout input to the existing session migration CLI, preserving available source history and provenance without model-backed re-extraction.

    Keep imported tool arguments and outputs searchable, and retain mirrored events and lifecycle payloads as archival provenance without adding conversation turns.

Patch Changes

  • #1335 f68be58 Thanks @jalehman! - Give every assembled message a numeric timestamp. Summaries, focus briefs, prompt-recall cues, stored raw messages and synthetic tool results were returned without one, which made OpenClaw's settled-turn finalization fail with Invalid time value. Each timestamp comes from stored data, never the wall clock, so it stays the same across turns. When OpenClaw prefixes user messages with their time, summaries and historical user turns now show a stable date prefix; the first request after upgrading writes the prompt cache once.

  • #1277 9e1199d Thanks @HermanZeng! - Hydrate messages and their parts in batches during context assembly instead of issuing two SQLite queries per raw context item, reducing main-thread database work on large conversations.

  • #1264 150c96f Thanks @jalehman! - Bound the forced overflow-recovery raw tail by tokens when freshTailMaxTokens is unset. Recovery now caps the protected suffix at 25% of its target, so a default 64-message tail full of large tool results no longer blocks recovery with no_compaction_progress. Routine compaction is unchanged.

  • #1288 1d80614 Thanks @rabsef-bicrym! - Preserve canonical user metadata and attached runtime context when OpenClaw's recent-history window advances. On hosts exposing the bounded transcript replay reader, LCM restores retained raw users by transcript entry ID while preserving summaries, externalized content, and assembly budgets. Supported hosts without the reader retain the existing replay path and minimum version; operational read failures still use the existing logged assembly-error behavior.

    Assembly budgets count rendered recorded user projections without double-counting private metadata, while retaining native media estimates. A large projection can therefore evict its parent and owned runtime context instead of bypassing the final budget clamp.

  • #1338 9ddac25 Thanks @TheAngryPit! - Skip the unused history projection on generic CLI turns when hostFallbackMode is capture-only. Those hosts only use Lossless Claw's memory instructions and send their own history, so assembly now returns early instead of querying and serializing the conversation. Capture, after-turn handling, and compaction are unchanged, and native embedded and Codex app-server hosts still receive full assembly.

  • #1319 be2eb62 Thanks @sitanwen! - Collapse a leaf chunk whose messages carry no extractable text into one deterministic placeholder summary, so compaction sweeps keep making progress instead of stalling until the transcript-wedge verdict.

  • #1284 51c3c90 Thanks @jalehman! - Report compaction progress to OpenClaw and honor its abort signal. Each committed summary pass now refreshes the host's compaction idle timeout, so multi-round overflow recovery no longer fails with "Compaction timed out" while it is still making progress. When the host aborts, the sweep stops before starting another pass and keeps the summaries it already committed.

  • #1290 5530266 Thanks @pcbeingused333! - Treat conversationId values of 0 or below as "not provided" in the LCM recall tools, so models on OpenAI strict tool schemas (which fill every optional property) search the current conversation instead of getting empty results.

  • #1333 40833c3 Thanks @jalehman! - Give the protected fresh tail a default token cap. When freshTailMaxTokens is unset, routine compaction, pending summary preparation and assembly now cap the fresh tail at 25% of the token budget while always keeping the newest 8 messages and the newest user turn. Previously the tail was bounded only by freshTailCount (64 messages), which in tool-heavy sessions could cover most of the history and leave compaction with nothing to summarize ("no pending summary nodes planned"). An explicit freshTailMaxTokens keeps its existing behavior.

  • #1332 ed9a0a9 Thanks @jalehman! - Keep the provider prompt cache warm when assembly falls back to the bounded live transcript. Pressure estimates no longer count host-only message fields or opaque replay signatures such as encrypted reasoning, which made tool-heavy sessions look up to twice their real size and triggered the degraded fallback early. When the live window must be bounded, its first message now stays fixed across tool-loop requests until the window no longer fits, and a moved window is trimmed to 60% of the budget, instead of dropping the oldest messages on almost every request.

  • #1233 29a42f7 Thanks @jlapenna! - Preserve host-delivered assistant replies during transcript delta resync and forced context recovery. Require the same provider response, consumed URL sequence, and unchanged remaining structured content before restamping an offered in-order suffix row. Retain the original stored reply and refuse unrelated or ambiguous changes.

  • #1263 d4aa0b5 Thanks @jalehman! - Forced overflow recovery now honors the host-observed prompt size when the host owns prompt framing. Lossless scales the host's observed overflow into a stored-token target, so it no longer reports a successful no-op while the host is still over its budget.

  • #1265 f5a9501 Thanks @jalehman! - Stop opening the summary spend backoff when forced overflow recovery makes real progress but cannot reach its target because of the protected tail. Partial recovery no longer blocks foreground compaction on later assembles with deferred compaction backoff active. A forced pass that spends summarizer calls without reducing context still opens the backoff.

  • #1271 aa63cfe Thanks @rabsef-bicrym! - Clarify in the injected recall guidance that lcm_grep requires pattern, not
    query, for both regex and full-text searches. Include a full-text example to
    distinguish it from lcm_expand_query.

  • #1286 83bae0c Thanks @TheAngryPit! - Keep default recall on the requested session key when a reused runtime session ID resolves to a conversation with a different explicit key. If the requested key has no active conversation, leave recall unresolved instead of falling back to a differently keyed conversation. Matching-key and unkeyed legacy runtime lookups, explicit conversation selection, and all-conversation recall remain available.

  • #1346 db87e21 Thanks @jalehman! - Keep context ordinals consecutive after heartbeat pruning (pruneHeartbeatOk) so pending compaction can keep publishing. Pruning now runs in one transaction and marks pending plans that reference the old positions as stale.

  • #1328 3127393 Thanks @Marvinthebored! - Treat a host-canceled runtime.llm.complete call as a retryable lifecycle refusal instead of a provider failure. OpenClaw cancels context-engine model calls when it stops the surrounding operation, for example when background maintenance yields to a foreground turn or a user stops a compaction. Lossless never passes its own signal to that call, so a thrown top-level AbortError and a result with stopReason: "aborted" are now classified like the other host lifecycle refusals: pending summary work is kept for a later pass instead of being replaced by a deterministic truncation fallback summary, and partial text from a canceled request is never used as a summary.

  • #1342 48d77c8 Thanks @jalehman! - Find messages that still need an identity hash through a small partial index instead of scanning the whole messages table on every startup. On large databases this removes a full-table scan (tens of seconds on multi-gigabyte databases) that ran under the startup migration's exclusive lock and blocked other writers. The index is built once, on the first startup after upgrading.

  • #1268 72f8710 Thanks @fernandogzp! - Mark the large-file exploration prompt's document sample as untrusted data, matching the leaf and condensed summary prompts. Fetched pages, documents and tool payloads summarized through buildTextPrompt can no longer carry instructions into the summary model unguarded, and the "action items or constraints" bullet now asks the model to report them, never act on them.

  • #1064 8aa975c Thanks @brkastner! - Fix lcm_grep throwing Cannot read properties of undefined (reading 'trim') when a model omits or misnames the pattern argument. Hosts pass
    model-supplied tool arguments through without schema validation, so the
    call died with an uncatchable TypeError before any query ran. The tool now
    returns a tool error naming the expected field, including the query vs
    pattern difference against lcm_expand and lcm_expand_query, so the
    agent can correct the call and retry.

  • #1350 792fcfd Thanks @jalehman! - Treat OpenClaw's manual /compact as a manual request. OpenClaw now sends reason: "manual" with /compact, and LCM applies the same manual semantics as /lcm compact. When a manual sweep finds nothing to compact, the reason now says why, for example that every raw message is in the protected fresh tail. Older OpenClaw hosts that send no reason keep the existing behavior.

  • #1339 cc78a8d Thanks @TheAngryPit! - Keep stored OpenAI Responses reasoning as canonical thinking blocks during context assembly instead of unwrapping it into raw reasoning items, so switching a resumed Responses session to another provider no longer crashes the next turn.

  • #1276 47e8bc5 Thanks @TheAngryPit! - Use the captured registration config for independent log redaction so plugin registration can complete before OpenClaw's global runtime config is prepared.

  • #1270 b00ffb9 Thanks @jalehman! - Keep lossless-claw consistent when OpenClaw reloads the plugin during a running turn. Delegated expansion grants are now stored in the LCM database, so a delegated lcm_expand child no longer fails with "Delegated expansion requires a valid grant" after a reload. Runtime-authored user turns, such as OpenClaw's continuation prompt, keep their internal_system provenance and display: false flag instead of being stored as messages the user typed. On OpenClaw 2026.9.5 or later, disposing the plugin instance also closes its database, so the next plugin generation does not reuse the retired engine.

  • #1353 df6ed94 Thanks @jalehman! - Reuse the conversation's latest host-supplied prompt budget (such as the last assemble() budget) for commitTurn, afterTurn, and deferred maintenance when the host omits one, instead of falling back to the hardcoded 128,000-token budget. Current host budgets still win, and maxAssemblyTokenBudget remains a ceiling.

  • #1279 55fa24c Thanks @TheeCoderAhmed! - Report rollover split lanes whose conversations share a stable_event_key as needing manual review, instead of classing them as safe and failing the repair on the messages_stable_event_key_unique constraint.

  • #1325 15548bf Thanks @jalehman! - Keep lcm_grep searches and /lossless doctor clean from stalling the Gateway on large databases. Searches run on a worker thread with their own read-only connection, and full_text results are ranked from new created_at indexes rather than by reading every matching row. Regex and substring searches scan newest-first within a fixed row and time budget, and report when they hit it. The doctor cleaner scan, backup, deletes and integrity check also run on a worker thread, and /lossless backup and the backups taken before doctor repairs write VACUUM INTO from a worker thread too. Deletes now commit in short batches, and new indexes on the foreign-key columns of context_items, pending_summary_nodes and conversation_transcript_gaps stop each deleted message from scanning those tables. On large databases, the first start after upgrading builds the new indexes once, which can take about a minute.

  • #1344 5fe09f5 Thanks @jalehman! - Serialize delegated expansion grant writes with the database's other transactions. Grants share the plugin's SQLite connection, and a grant created, revoked or metered while another operation held a transaction open across file I/O joined that transaction: if it rolled back, a revoked grant became active again or a new grant disappeared. Grant writes now wait for open transactions to finish and commit on their own.

  • #1345 297096b Thanks @jalehman! - Keep a busy or locked database during sub-agent spawn or cleanup from getting Lossless Claw quarantined by the OpenClaw host. A busy grant write at spawn now starts the sub-agent without a delegated expansion grant, so its LCM retrieval tools refuse rather than gaining access, and any earlier grant bound to that child is no longer honored. A busy revocation or unbinding when a sub-agent ends or a spawn rolls back stops the child's grant from resolving right away, is logged, and is retried on the next sub-agent hook; the stored grant still expires at its TTL.

  • #1256 e162be8 Thanks @igs-rogenlo! - Log metadata when reasoning-shaped content is stripped from an otherwise nonempty summary, including retry responses. Report the response source and before/after character counts without logging reasoning or summary text.

  • #1323 43a9a23 Thanks @pcbeingused333! - Forward summary thinking effort to the host runtime so initial summarization requests use the configured low reasoning effort instead of the provider default.

  • #1317 cd54db9 Thanks @latter-bolden! - Keep context ordinals consecutive after session pruning so pending compaction can continue. Repair existing gaps once at startup, preserving context order and stored history while invalidating pending plans that reference the old positions.

Release Verification

New Contributors

Full Changelog: v1.2.0...v1.3.0