Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Preserve URI only if message was blank
  • Loading branch information
code-asher committed Jun 12, 2025
commit 2cd3b45995c864b82f9898435ffabf7e9892f4d3
8 changes: 4 additions & 4 deletions cli/exp_mcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,12 +547,12 @@ func (s *mcpServer) startReporter(ctx context.Context, inv *serpent.Invocation)
State: state,
}

// Preserve previous message and URI.
// Preserve previous message and URI if there was no message.
if payload.Message == "" {
payload.Message = lastPayload.Message
}
if payload.URI == "" {
payload.URI = lastPayload.URI
if payload.URI == "" {
payload.URI = lastPayload.URI
}
}

// Avoid sending duplicate updates.
Expand Down