Skip to content

edit_note and write_note revision-conflict payloads differ #1719

Closed

Description

@phernandez

Found during the v0.24.0 acceptance test, after #1712.

The JSON revision-conflict payloads from edit_note and write_note have different shapes:

  • edit_note: {"title": null, "permalink": null, "file_path": null, "checksum": null, "error": "NOTE_REVISION_CONFLICT", "currentChecksum": "..."}
  • write_note: {"title": "...", "permalink": "notes/...", "file_path": "...", "checksum": "<current>", "action": "conflict", "error": "NOTE_REVISION_CONFLICT"}. The permalink here has no project prefix, while every other response includes it.

Both should use one shape: the same key for the current checksum, the note's identity filled in when the note exists, and the permalink formatted as in other responses.

Activity

  1. added this to the v0.24.x milestone on Oct 10, 2026
  2. claude commented on Oct 10, 2026

    @claude
    Contributor

    Claude finished @phernandez's task in 11s —— View job


    Triage

    • Type: bug (API inconsistency in an error payload)
    • Component: MCP tools (edit_note, write_note), not Cloud
    • Priority: Medium. Clients that handle revision conflicts must parse two different shapes. Nothing is lost.
    • Complexity: Simple to Medium. Both tools need to return one conflict payload built from a shared helper. Existing tests that assert either current shape will need updating.
    • Duplicates: A search for NOTE_REVISION_CONFLICT found no other issues.

    Expected shape (from the issue)

    • One key for the current checksum. edit_note uses currentChecksum, while write_note puts the current value in checksum. Pick one and use it in both.
    • title, permalink and file_path filled in whenever the note exists. edit_note currently returns them as null.
    • The permalink in the same project-prefixed form as other responses. write_note currently omits the project prefix.

    Open question for the maintainer: which key should be canonical, checksum or currentChecksum? Should action: "conflict" appear in both payloads? A compatibility note may be needed for callers that read the old key.

    I've applied the bug label and made no code changes, as this run is triage only.

  3. added
    bug
    on Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions