You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Concurrent edit_note append reported as refused can still land in the note #1684
#1662 (reverted in #1682) made a refused edit_note an MCP tool error. Its new test, test_concurrent_edit_append_reports_every_refusal, ran two clients appending to one note concurrently and checked that no append reported as refused appears in the note. On main (run for 5e742e3):
Windows SQLite: AssertionError: refused appends present in the note: {'A-18', 'B-5'}
Postgres: the test timed out.
So under concurrency, the edit path can report an append as refused ("modified concurrently") even though the append was written. Today the refusal comes back as a non-error result, so most clients ignore it. Reporting it as isError (which we want, as for write/delete/move) would make a retrying client append twice.
To find out
Where the refusal is decided relative to the accepted write: is the CAS refusal raised after a retry already committed the append, or does a retry path re-apply an append that the first attempt already landed?
Why the test hangs on Postgres.
Done when
A refused append is never present in the note, and #1662's test (reinstated) passes on SQLite, Windows and Postgres. Then edit_note refusals can be reported as tool errors again.
The issue is already well specified: it has a failing test (test_concurrent_edit_append_reports_every_refusal), the failing platforms, and the two open questions. Those are where the refusal is decided relative to the accepted write, and why the Postgres run hangs. No more reproduction details are needed.
Per the triage scope, I haven't started any implementation work.
Activity
claude commentedon Oct 8, 2026
Claude finished @phernandez's task in 16s —— View job
Triage
bug)edit_note) plus the write/CAS path. It isn't Cloud-specific, so nocloudlabel.edit_notecan report an append as refused ("modified concurrently") when the append was written. A client that retries on that report appends twice, which corrupts canonical note content. Because the refusal is currently a non-error result, most clients ignore it, so the impact is limited today. It blocks making edit refusals tool errors again (fix(mcp): edit_note reports a refused write as an error #1662, reverted in fix(mcp): revert edit_note refused-write error reporting (#1662) #1682).The issue is already well specified: it has a failing test (
test_concurrent_edit_append_reports_every_refusal), the failing platforms, and the two open questions. Those are where the refusal is decided relative to the accepted write, and why the Postgres run hangs. No more reproduction details are needed.Per the triage scope, I haven't started any implementation work.