Skip to content

Commit 46b1984

Browse files
committed
Preserve URI only if message was blank
1 parent f8d7628 commit 46b1984

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)