@@ -192,7 +192,7 @@ func RemoveUserInput(msgRaw string, userInputRaw string, agentType AgentType) st
192192 if idx , found := skipTrailingInputBoxLine (msgLines , lastUserInputLineIdx , "╯" , "╰" ); found {
193193 lastUserInputLineIdx = idx
194194 }
195- } else if agentType == AgentTypeCursor {
195+ } else if agentType == AgentTypeCursorAgent || agentType == AgentTypeCursor {
196196 if idx , found := skipTrailingInputBoxLine (msgLines , lastUserInputLineIdx , "┘" , "└" ); found {
197197 lastUserInputLineIdx = idx
198198 }
@@ -225,14 +225,15 @@ func trimEmptyLines(message string) string {
225225type AgentType string
226226
227227const (
228- AgentTypeClaude AgentType = "claude"
229- AgentTypeGoose AgentType = "goose"
230- AgentTypeAider AgentType = "aider"
231- AgentTypeCodex AgentType = "codex"
232- AgentTypeGemini AgentType = "gemini"
233- AgentTypeAmp AgentType = "amp"
234- AgentTypeCursor AgentType = "cursor"
235- AgentTypeCustom AgentType = "custom"
228+ AgentTypeClaude AgentType = "claude"
229+ AgentTypeGoose AgentType = "goose"
230+ AgentTypeAider AgentType = "aider"
231+ AgentTypeCodex AgentType = "codex"
232+ AgentTypeGemini AgentType = "gemini"
233+ AgentTypeAmp AgentType = "amp"
234+ AgentTypeCursorAgent AgentType = "cursor-agent"
235+ AgentTypeCursor AgentType = "cursor"
236+ AgentTypeCustom AgentType = "custom"
236237)
237238
238239func formatGenericMessage (message string , userInput string , agentType AgentType ) string {
@@ -263,6 +264,8 @@ func FormatAgentMessage(agentType AgentType, message string, userInput string) s
263264 return formatGenericMessage (message , userInput , agentType )
264265 case AgentTypeAmp :
265266 return formatGenericMessage (message , userInput , agentType )
267+ case AgentTypeCursorAgent :
268+ return formatGenericMessage (message , userInput , agentType )
266269 case AgentTypeCursor :
267270 return formatGenericMessage (message , userInput , agentType )
268271 case AgentTypeCustom :
0 commit comments