Skip to content

fix #2460 - #2468

Open
slingamn wants to merge 1 commit into
masterfrom
issue2460.2
Open

slingamn wants to merge 1 commit into
masterfrom
issue2460.2

Conversation

@slingamn

@slingamn slingamn commented Oct 8, 2026

Copy link
Copy Markdown
Member

Putting this up for reference/discussion. This fixes #2460 according to my understanding of the issue, e.g.

# server-time is ACK'ed with no tag
>>> CAP REQ :server-time
:ergo.test CAP * ACK server-time
# subsequent ACKs are tagged
>>> CAP REQ :userhost-in-names
@time=2026-10-08T18:43:34.876Z :ergo.test CAP * ACK userhost-in-names

# requesting message-tags on the same line allows a tagged response
>>> CAP REQ :server-time message-tags
@time=2026-10-08T18:43:42.925Z :ergo.test CAP * ACK :server-time message-tags

but I'm not sure if I want to merge it; it makes the code more complex to the benefit of (AFAICT) no real clients.

For legacy clients that only support server-time, the spec says:

"Servers MAY include the timestamp in messages when they see fit
 but MUST NOT do so before acknowledging the client capability
 using CAP ACK."

This is legacy behavior from before the ratification of message-tags,
but if the client didn't request message-tags or another dependent spec,
we should respect it.
@slingamn

slingamn commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

Sonnet 5.5 reviewed this and found no functional issues (but it did flag a mistaken comment).

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.

CAP ACK is sent with server-time

1 participant