Loki Mode v7.37.0
Immutable
release. Only release title and notes can be modified.
Added
- Session-Continuity Phase 2, recovery resume (issue #165), opt-in via
LOKI_RESUME_SESSION=1, default OFF. When a previously interrupted run
(paused, rate-limited, or budget-cutoff) is restarted, the FIRST main-loop
claude call emits--resume <stored-session-uuid>to reattach the prior
Claude session context, then the run reverts to normal stateless
per-iteration behavior (no resume chain, so transcript context cannot
accumulate).LOKI_SESSION_FORK=1optionally adds--fork-sessionon the
resumed call. Gated on CLI support; degrades to a fresh call on an older
claude or a missing/malformed stored session file. Default argv is
byte-identical to v7.36; the resumed call never co-emits--session-idand
--resumetogether.- NAMING:
LOKI_RESUME_SESSIONgoverns the underlying CLAUDE session-resume
layer. It is UNRELATED to the existingloki heal/loki migrate --resume
CHECKPOINT flag, which resumes a Loki run from its own saved checkpoint.
This is a narrow recovery feature, not whole-loop session continuity (a
--resumechain over every iteration was deliberately rejected because it
would compete with Loki's curated injected memory and grow context
unboundedly). - The Bun runner honors a
resumeFirstCallinvocation field for parity, but
the production autonomous loop runs the bash route (autonomy/run.sh), which
is the fully-wired path; the Bun path is staged for when its main loop
becomes the live route.
- NAMING: