Skip to content

comments: raise a conflict when a reply loses a create race - #351

Open
bjornars wants to merge 1 commit into
novem-code:mainfrom
bjornars:comments-reply-conflict
Open

bjornars wants to merge 1 commit into
novem-code:mainfrom
bjornars:comments-reply-conflict

Conversation

@bjornars

@bjornars bjornars commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

The reply helper treated any 409 on create as "exists, update it" and
POSTed its own text, so the loser of two concurrent creates overwrote
the winner. Gaia now answers that loser with 409 (novem-code/gaia#8065).

On 409 the helper now reads the existing message. Same text is a no-op,
an empty message (an earlier attempt that never wrote it) is filled in,
and different text raises Novem409. The MCP reply tool already reports
exceptions, so a racing handler is told its reply failed.

Closes #346

The reply helper treated any 409 on create as "exists, update it" and
POSTed its own text, so the loser of two concurrent creates overwrote
the winner. Gaia now answers that loser with 409 (novem-code/gaia#8065).

On 409 the helper now reads the existing message. Same text is a no-op,
an empty message (an earlier attempt that never wrote it) is filled in,
and different text raises Novem409. The MCP reply tool already reports
exceptions, so a racing handler is told its reply failed.

Closes novem-code#346

This branch has not been deployed

No deployments
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.

comments: surface a conflict when a reply loses a create race with different text

1 participant