fix(core): add FORWARD/BACKWARD to Direction enum (matches _row_to_synapse default) - #24
Merged
acidkill merged 1 commit intoJun 22, 2026
Conversation
…napse default) Co-Authored-By: Captain Nemo <noreply@anthropic.com>
acidkill
pushed a commit
that referenced
this pull request
Jun 22, 2026
* fix: resolve issues #19, #20, #21 #19 - OpenClaw plugin execute() signature: All 6 tool execute callbacks used (args) instead of (_id, args). OpenClaw passes (tool_use_id, params) — first arg was the ID string, not actual arguments. Fixed all callbacks in tools.ts. #20 - Auto-consolidation "none" strategy crash: _select_strategies() collected recommended_strategy="none" from the "memories expiring soon" hint, causing ValueError when cast to ConsolidationStrategy enum. Filter "none" from results. #21 - nmem remember --stdin flag: Add --stdin option to read content from stdin, avoiding shell escaping issues with backticks, dollar signs, and quotes in hook scripts. Closes #19, closes #20, closes #21 * style: format memory.py to pass ruff format check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_row_to_synapsedefaultsdirection='forward', but'forward'/'backward'are not members of theDirectionenum (uni/bi). Reading any synapse that hits the default path is a latentValueError.Changes
core/synapse.py: addFORWARD = "forward"andBACKWARD = "backward"toDirection.Type of Change
CHANGELOG (### Fixed)
FORWARD/BACKWARDto theDirectionenum so the existing'forward'default in_row_to_synapseis valid (was a latentValueError).Context: #15