You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(plugin): adopt self-heals malformed sentinel + Windows guard (v0.8.1)
Code-review follow-ups for v0.8.0:
- adopt.js: stripSentinelBlock now self-heals orphan BEGIN (truncated
prior run) and orphan END lines; collapses 3+ blank lines after strip.
adopt rewrites the block when content drifts from canonical (was a
silent no-op when sentinel present but stale).
- adopt.js: platformGuard rejects win32 — claude-mem-lite slug convention
on Windows is unverified, and silent dir-mismatch was the failure mode.
- adopt.js: formatResult distinguishes healed vs fresh-indexed vs no-op.
- main.rs: SAFETY comment on run_node_script — `script` must be a literal,
never user input (concatenated into a path then exec'd via node).
- user-prompt-context.test.js: quiet-mode test now asserts stderr empty
and exit 0, not just stdout (a stderr leak would still surface in
Claude's display).
- adopt.test.js: 7 new tests — strip well-formed/orphan-BEGIN/orphan-END,
adopt heal-on-malformed, true-noop verification (mtime check), unadopt
heal, Windows rejection.
Tests: 76 plugin pass (was 69); 206 Rust unchanged.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments