Skip to content

Commit 2cd3b45

Browse files
committed
Preserve URI only if message was blank
1 parent 56c41c8 commit 2cd3b45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cli/exp_mcp.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -547,12 +547,12 @@ func (s *mcpServer) startReporter(ctx context.Context, inv *serpent.Invocation)
547547
State: state,
548548
}
549549

550-
// Preserve previous message and URI.
550+
// Preserve previous message and URI if there was no message.
551551
if payload.Message == "" {
552552
payload.Message = lastPayload.Message
553-
}
554-
if payload.URI == "" {
555-
payload.URI = lastPayload.URI
553+
if payload.URI == "" {
554+
payload.URI = lastPayload.URI
555+
}
556556
}
557557

558558
// Avoid sending duplicate updates.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy