package mcp

import "strings"

const sendMessageContinuationReminderText = "Before ending this turn, check whether this message accepted review feedback, confirmed a plan, added a checkpoint, or reported progress on unfinished work you own. Those items remain pending: continue substantive work now. The daemon will not wake you merely because you sent this message. End only when complete or genuinely blocked."

// sendMessageContinuationReminder returns the standard reminder text appended to
// message_send tool results, informing the agent to continue working if the task
// is not complete.
func sendMessageContinuationReminder() string {
	return sendMessageContinuationReminderText
}

// formatSendMessageSuccess formats a message_send tool success response, appending
// the continuation reminder to the provided text.
func formatSendMessageSuccess(text string) string {
	message := strings.TrimSpace(text)
	if message == "" {
		message = "Message sent."
	}
	return strings.TrimSpace(message + "\n\n" + sendMessageContinuationReminder())
}
