Repository navigation
test(integrations): match bm_write's 1.0 refusal in OpenClaw integration test - #1992
Merged
Merged
Conversation
…ion test The Memory Quest integration test failed on main. It asserted the plugin's fallback text "Note already exists", written on 2026-10-11. Since #1838 (2026-10-23), bm_write sends its own refusal message, and the plugin passes it to the agent: "A note already exists at '<path>'. Nothing was written." The tool behaves correctly; the assertion was stale. CI's OpenClaw job does not run the integration suite, so the drift went unnoticed. Assert the 1.0 text, including the path and "Nothing was written.". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
This fixes the OpenClaw integration test "round-trips Memory Quest fields through the OpenClaw tools", which fails on
main. The assertion was stale. The plugin itself behaves correctly, so this PR changes only the test.Why it failed
4bbc1023) the test began asserting that a refused secondwrite_noteshows"Note already exists". That was the plugin's own fallback text, fromNoteAlreadyExistsErrorinintegrations/openclaw/bm-client.ts.bm_writeits own refusal message:A note already exists at '<path>'. Nothing was written.(src/basic_memory/mcp/tools/write.py:257, documented inman3/bm-write(3).md:77).message ?? fallback), so agents now see the 1.0 text, which is the intended behavior.just package-check-openclawbut not the integration suite (.github/workflows/consolidated-packages.yml, jobopenclaw), so nothing caught the drift.Change
integration/bm-client.integration.test.tsnow asserts the full 1.0 text,A note already exists at 'memory-quest/Memory Master.md'. Nothing was written.Thedetails.error === "note_already_exists"check is unchanged.Verification
bun run test:intagainst a realbm mcpfrom this checkout: 5 pass, 0 fail. Before this change, the Memory Quest test failed onmain(727a4700) withReceived: "A note already exists at 'memory-quest/Memory Master.md'. Nothing was written. ...".just package-check-openclaw: exit 0, 286 pass.Follow-up (not in this PR)
The integration suite can drift again, because CI doesn't run it. Adding it to the
openclawjob would needuvand the Python package in that job. That deserves its own PR if we want it.🤖 Generated with Claude Code