Repository navigation
fix(mcp): return full checksums from legacy note tools - #1877
remote-controlled-man wants to merge 2 commits into
Conversation
Signed-off-by: Steven Huang <134844631+remote-controlled-man@users.noreply.github.com>
Signed-off-by: Steven Huang <134844631+remote-controlled-man@users.noreply.github.com>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
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. |
|
Thank you, Steven, for identifying this checksum issue, preparing the fix, and doing such thorough regression testing. The bug and your fix are valid. We have decided to remove the legacy write_note and edit_note MCP tools entirely for 1.0, without compatibility aliases; that removal is covered by #1881 as part of #1833. Because this PR specifically fixes the retiring MCP text responses, we are closing it as superseded by that removal. We appreciate the care and time you put into this contribution. |
Fixes #1874.
The legacy
write_noteandedit_notetext results shortened the accepted checksum to eight characters. Reusing the displayed value asexpected_checksumrejected an unchanged note. Return the full checksum for create, overwrite, edit and auto-create results, and synchronize the two existing generated manual pages. The exact revision comparison and stale-write protection are unchanged.Validation on macOS / Python 3.12, at
478c957:Executed through the upstream
scripts/run_tests.pyfile shards (4/2/6/4), with separate PostgreSQL databases. All 16 shards completed with exit 0 and exhaustive, disjoint file selection. The integration markernot semantic and not benchmark, assertions and per-test timeouts were preserved.The new regression uses a real MCP client/server, ASGI API and database: each text checksum permits the next conditional overwrite, then rejects a stale overwrite without changing content. All eight initially failing test files plus the new regression passed in a focused run (333 passed). Full-repository Ruff, formatting,
ty check src tests test-int, sandboxeddoctor --localandgit diff --checkpassed.The initial SQLite unit run exposed local timezone/temp-directory/CLI PATH/
justsetup problems and the stale manual blocks. These were corrected before the focused run and complete four-suite rerun. The test services and their data volume were removed afterward.Prepared with AI assistance (Codex). No external model API was used.
Summary by CodeRabbit