Claude Mem v12.1.6 delivers an important stability fix for teams using Claude Code 2.1.109 and later. The release addresses a critical regression that caused all observation and summary writes to fail before any data could be saved, restoring normal memory capture behavior for affected workflows.
The issue was traced to how the bundled Agent SDK emitted the --setting-sources flag when settingSources defaulted to an empty array. In that case, the SDK produced ["--setting-sources", ""].
Claude Mem already had a Bun compatibility filter that removed empty-string arguments, but it did not remove the related flag. That left an orphaned --setting-sources argument in the command, causing the following --permission-mode flag to be interpreted incorrectly as its value.
On Claude Code 2.1.109 and newer, that malformed argument sequence triggered a hard failure with an invalid setting source error, and every observation SDK spawn exited with code 1 before writing any data.
Version 12.1.6 fixes this by updating ProcessRegistry.createPidCapturingSpawn to use a pair-aware filter. If an empty-string argument follows a flag, both values are now removed together. That preserves the intended default behavior by omitting unused setting sources entirely.
This is a high-impact reliability fix rather than a minor cleanup. For users on newer Claude Code versions, the regression blocked one of the project’s core functions: saving observations and summaries. That means broken memory persistence, failed background capture flows, and incomplete execution records.
By correcting the command argument handling, Claude Mem v12.1.6 restores compatibility with Claude Code 2.1.109+ and eliminates a failure mode that affected all observation writes. For developers embedding Claude Mem into agent workflows, this release should be treated as a priority update.
The release also stands out for its transparent root-cause explanation, with credit given to @GigiTiti-Kai for the detailed debugging report in issue #2049.
Official Source: https://github.com/thedotmack/claude-mem/releases/tag/v12.1.6