@@ -192,7 +192,7 @@ func RemoveUserInput(msgRaw string, userInputRaw string, agentType AgentType) st
192
192
if idx , found := skipTrailingInputBoxLine (msgLines , lastUserInputLineIdx , "╯" , "╰" ); found {
193
193
lastUserInputLineIdx = idx
194
194
}
195
- } else if agentType == AgentTypeCursor {
195
+ } else if agentType == AgentTypeCursorAgent || agentType == AgentTypeCursor {
196
196
if idx , found := skipTrailingInputBoxLine (msgLines , lastUserInputLineIdx , "┘" , "└" ); found {
197
197
lastUserInputLineIdx = idx
198
198
}
@@ -225,14 +225,15 @@ func trimEmptyLines(message string) string {
225
225
type AgentType string
226
226
227
227
const (
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"
236
237
)
237
238
238
239
func formatGenericMessage (message string , userInput string , agentType AgentType ) string {
@@ -263,6 +264,8 @@ func FormatAgentMessage(agentType AgentType, message string, userInput string) s
263
264
return formatGenericMessage (message , userInput , agentType )
264
265
case AgentTypeAmp :
265
266
return formatGenericMessage (message , userInput , agentType )
267
+ case AgentTypeCursorAgent :
268
+ return formatGenericMessage (message , userInput , agentType )
266
269
case AgentTypeCursor :
267
270
return formatGenericMessage (message , userInput , agentType )
268
271
case AgentTypeCustom :
0 commit comments