Skip to content

refactor: polish NotePing response handling#245

Merged
zfields merged 2 commits into
blues:ray/autobaudfrom
zakoverflow:zak/pr239-noteping-polish
Jun 4, 2026
Merged

refactor: polish NotePing response handling#245
zfields merged 2 commits into
blues:ray/autobaudfrom
zakoverflow:zak/pr239-noteping-polish

Conversation

@zakoverflow

Copy link
Copy Markdown
Contributor

Summary

  • restore the JSON buffer's NUL terminator after the length-delimited transaction
  • use JIsExactString for nonce response validation

Stack note

This branch includes #244 as its first commit so CI can run cleanly while both PRs target ray/autobaud. After #244 merges, this PR should reduce to the n_request.c polish commit only.

Verification

  • docker run --rm -v /home/ubuntu/.openclaw/workspace/note-c:/note-c -w /note-c ghcr.io/blues/note_c_ci:latest bash -lc 'rm -rf build && cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug && cmake --build build --target NotePing_test -j2 && cd build && valgrind --track-origins=yes --leak-check=full ./test/NotePing_test "Scenario: NotePing"'\n\nValgrind result: ERROR SUMMARY: 0 errors from 0 contexts.\n\n## Architecture docs\n\nConsidered; no update needed because this is an implementation-level cleanup of behavior already introduced by feat: NotePing() allows for testing to see if a notecard is responding sans delays/retry #239.

@zfields zfields merged commit 67f6087 into blues:ray/autobaud Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants