Repository navigation
Orion Code v0.3.26 — Structured Diff Integrity & Session Lifecycle
Orion Code v0.3.26 — Structured Diff Integrity & Session Lifecycle
@orion-agents/orion-code@0.3.26 · npm latest · tag v0.3.26 → b810996 (#278)
Closes #274, #275, #276 and #277.
Fixed
- #274 — SQL comment edits disappear from the structured Git diff. The parser's
header-first check ran inside active hunks: deleting a line starting with--
produces the body row--- old comment, which closed the hunk and demoted the
remaining body to document metadata (empty hunk, zero counts,
completeness: limited). Body rows are now classified by their marker first;
header checks apply only to markerless lines, so multi-file pages still split at
diff --gitboundaries. - #275 — Structured diff pagination drops continuation rows inside a large hunk.
Pages were parsed independently and only a@@header opens a hunk, so a page
starting mid-hunk demoted its rows to metadata. The continuation contract now
carries the split hunk's state (pendingHunk: header, index, running line
cursors) in the cursor; the parser resumes it, and all threediffDocument
call sites re-mint the next cursor with it. Row coverage, line numbers and the
stable hunk identity survive page boundaries, andcompletenessis truthful. - #276 — Permanent Session deletion leaves v2 Thread records behind. Deleting a
cutover Session removed only the legacy files. The cutover index entry is now
removed under the same index file lock and atomic-write discipline as the
cutover itself (generation bumped, emptied index keeps its file), and the
thread's durable files (event log, projection, head, compact state and
checkpoints, session-index manifest, transcript pages, import receipt) are
deleted. Projects that never cut over are untouched; unrelated Sessions are
asserted intact. - #277 — Exiting a cutover Session rewrites its summary from the old JSONL.
/exitand the shutdown path summarized from the frozen legacy transcript,
movingmessageCount/historySizeBytesbackwards.updateSessionSummaryis
now v2-aware: a cutover Session's summary comes from the authoritative Thread
view; the legacy path is unchanged.
Changed
- Release hygiene: the CHANGELOG/READMEs state the v0.3.25 published facts
(restoring main's release:check gates) and open the 0.3.26 candidate section.
Quality
| Gate | Result |
|---|---|
Release gate (release:check) |
PASS |
| Web E2E critical journey ×3 (Node 22/24/26) | PASS |
| Web E2E full suite three consecutive runs (3×105 scenarios) | PASS (one pass) |
| Node 22/24/26 verification matrices | PASS |
| Full Jest | 373/373 suites, 4505 passed (12 new regression tests) |
| tarball SHA-256 | f39e2aa29db473341f5d7e5caf7f9c2be7e3cdb8aec74c3a63f78123af53a71a (matches the CI three-consecutive-runs artifact exactly) |
Install:
npm install -g @orion-agents/orion-code@latest
orion --version # 0.3.26