Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.13.2] - 2026-04-08

### Fixed
- Republish of 0.13.1 malformed-message hardening through CI with provenance

## [0.13.1] - 2026-04-07

### Fixed
- Archive transform now removes malformed messages from the outbound message array before returning control to OpenCode, preventing follow-on backend `Bad Request` failures
- Archive, resume, describe, search indexing, and capture paths now skip malformed `message.info` metadata defensively instead of throwing when required fields are missing

### Added
- Opt-in `perf:archive` harness for large-archive regression coverage across transform, grep, snapshot, reopen, resume, and retention paths
- Separate advisory `Archive Performance` workflow for scheduled/manual perf runs with JSON artifact upload
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opencode-lcm",
"version": "0.13.0",
"version": "0.13.2",
"description": "Long-memory plugin for OpenCode with context-mode interop",
"type": "module",
"main": "./dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/store-artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
inferFileExtension,
inferUrlScheme,
parseJson,
parseJsonSafe,
sanitizeAutomaticRetrievalSourceText,
truncate,
} from './utils.js';
Expand Down Expand Up @@ -661,6 +662,6 @@ export function materializeArtifactRow(
contentHash: row.content_hash ?? hashContent(contentText),
charCount: blob?.char_count ?? row.char_count,
createdAt: row.created_at,
metadata: parseJson<Record<string, unknown>>(row.metadata_json || '{}'),
metadata: parseJsonSafe<Record<string, unknown>>(row.metadata_json || '{}') ?? {},
};
}
Loading