Skip to content

Fix misleading UpdateMessage doc comment#2570

Merged
dgageot merged 1 commit intodocker:mainfrom
rumpl:fix/update-message-comment
Apr 28, 2026
Merged

Fix misleading UpdateMessage doc comment#2570
dgageot merged 1 commit intodocker:mainfrom
rumpl:fix/update-message-comment

Conversation

@rumpl
Copy link
Copy Markdown
Member

@rumpl rumpl commented Apr 28, 2026

The doc comment on SessionStore.UpdateMessage claimed the method is used to finalize streaming messages, but PersistenceObserver.persistStreamingContent calls it on every streaming delta to keep the persisted row in sync, and MessageAddedEvent then calls it once more with the final payload.

Update the comment to reflect actual usage.

Testing notes: comment-only change, no behaviour impact.

UpdateMessage is invoked on every streaming delta (and once more to finalize), not only to finalize completed messages.

Assisted-By: docker-agent
@rumpl rumpl requested a review from a team as a code owner April 28, 2026 09:35
@dgageot dgageot merged commit 0b9a5dd into docker:main Apr 28, 2026
9 checks passed
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.

3 participants