Repository navigation
1.3.0
Minor Changes
-
#1223
e10491dThanks @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
f68be58Thanks @jalehman! - Give every assembled message a numerictimestamp. 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 withInvalid 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
9e1199dThanks @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
150c96fThanks @jalehman! - Bound the forced overflow-recovery raw tail by tokens whenfreshTailMaxTokensis 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 withno_compaction_progress. Routine compaction is unchanged. -
#1288
1d80614Thanks @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
9ddac25Thanks @TheAngryPit! - Skip the unused history projection on generic CLI turns whenhostFallbackModeiscapture-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
be2eb62Thanks @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
51c3c90Thanks @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
5530266Thanks @pcbeingused333! - TreatconversationIdvalues 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
40833c3Thanks @jalehman! - Give the protected fresh tail a default token cap. WhenfreshTailMaxTokensis 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 byfreshTailCount(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 explicitfreshTailMaxTokenskeeps its existing behavior. -
#1332
ed9a0a9Thanks @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
29a42f7Thanks @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
d4aa0b5Thanks @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
f5a9501Thanks @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 withdeferred compaction backoff active. A forced pass that spends summarizer calls without reducing context still opens the backoff. -
#1271
aa63cfeThanks @rabsef-bicrym! - Clarify in the injected recall guidance thatlcm_greprequirespattern, not
query, for both regex and full-text searches. Include a full-text example to
distinguish it fromlcm_expand_query. -
#1286
83bae0cThanks @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
db87e21Thanks @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
3127393Thanks @Marvinthebored! - Treat a host-canceledruntime.llm.completecall 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-levelAbortErrorand a result withstopReason: "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
48d77c8Thanks @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
72f8710Thanks @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 throughbuildTextPromptcan 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
8aa975cThanks @brkastner! - Fixlcm_grepthrowingCannot read properties of undefined (reading 'trim')when a model omits or misnames thepatternargument. 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 thequeryvs
patterndifference againstlcm_expandandlcm_expand_query, so the
agent can correct the call and retry. -
#1350
792fcfdThanks @jalehman! - Treat OpenClaw's manual/compactas a manual request. OpenClaw now sendsreason: "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
cc78a8dThanks @TheAngryPit! - Keep stored OpenAI Responses reasoning as canonicalthinkingblocks during context assembly instead of unwrapping it into rawreasoningitems, so switching a resumed Responses session to another provider no longer crashes the next turn. -
#1276
47e8bc5Thanks @TheAngryPit! - Use the captured registration config for independent log redaction so plugin registration can complete before OpenClaw's global runtime config is prepared. -
#1270
b00ffb9Thanks @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 delegatedlcm_expandchild no longer fails with "Delegated expansion requires a valid grant" after a reload. Runtime-authored user turns, such as OpenClaw's continuation prompt, keep theirinternal_systemprovenance anddisplay: falseflag 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
df6ed94Thanks @jalehman! - Reuse the conversation's latest host-supplied prompt budget (such as the lastassemble()budget) forcommitTurn,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, andmaxAssemblyTokenBudgetremains a ceiling. -
#1279
55fa24cThanks @TheeCoderAhmed! - Report rollover split lanes whose conversations share astable_event_keyas needing manual review, instead of classing them as safe and failing the repair on themessages_stable_event_key_uniqueconstraint. -
#1325
15548bfThanks @jalehman! - Keeplcm_grepsearches and/lossless doctor cleanfrom stalling the Gateway on large databases. Searches run on a worker thread with their own read-only connection, andfull_textresults are ranked from newcreated_atindexes 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 backupand the backups taken before doctor repairs writeVACUUM INTOfrom a worker thread too. Deletes now commit in short batches, and new indexes on the foreign-key columns ofcontext_items,pending_summary_nodesandconversation_transcript_gapsstop 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
5fe09f5Thanks @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
297096bThanks @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
e162be8Thanks @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
43a9a23Thanks @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
cd54db9Thanks @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
- Source: 4a116f4d98a10066de0efd590a687d29450fba41
- Package: @martian-engineering/lossless-claw@1.3.0
- Workflow: 46211489509
- Rollback: install @martian-engineering/lossless-claw@1.2.0.
New Contributors
- @brkastner made their first contribution in #1064
- @latter-bolden made their first contribution in #1317
- @jlapenna made their first contribution in #1233
- @fernandogzp made their first contribution in #1268
- @TheeCoderAhmed made their first contribution in #1279
- @HermanZeng made their first contribution in #1277
Full Changelog: v1.2.0...v1.3.0