Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 7 additions & 1 deletion lib/msgfmt/agent_readiness.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func IsAgentReadyForInitialPrompt(agentType AgentType, message string) bool {
case AgentTypeCopilot:
return isGenericAgentReadyForInitialPrompt(message)
case AgentTypeAmp:
return isGenericAgentReadyForInitialPrompt(message)
return isAmpAgentReadyForInitialPrompt(message)
case AgentTypeCursor:
return isGenericAgentReadyForInitialPrompt(message)
case AgentTypeAuggie:
Expand Down Expand Up @@ -48,3 +48,9 @@ func isCodexAgentReadyForInitialPrompt(message string) bool {
messageWithoutInputBox := removeCodexInputBox(message)
return len(messageWithoutInputBox) != len(message)
}

func isAmpAgentReadyForInitialPrompt(message string) bool {
message = trimEmptyLines(message)
messageWithoutInputBox := removeAmpMessageBox(message)
return len(messageWithoutInputBox) != len(message)
}
51 changes: 28 additions & 23 deletions lib/msgfmt/testdata/initialization/amp/ready/msg.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@


............
..:::-------::::...
..::--=========---:::... Welcome to Amp
.::-===++++++++===---:::..
..:--==+++******+++===--:::...
.:--=+++**********++===--:::... Type / to use slash commands
.::-==++***#####****++==---:::.. Type @ to mention files
.:--=++****#####****++===---::... Ctrl+C to exit
.:--=+++****###****+++===---:::..
.:--==+++*********++++===---:::..
..:--==++++*****++++====----:::.. /help for more
.::--===+++++++++====-----:::...
.::---===========------::::...
..:::-------------:::::::... amp -x "Run the linter and fix the errors"
...::::::::::::::::.....
..................




───────────────
>
───────────────


..............
.....:::::.......... Welcome to Amp
....:::::::::::..........
....::::----::::::::.......
...::::---------:::::::::..... Ctrl+O to execute commands
...::::------------:::::::::... Type @ to mention files
....::----=======-----::::::::... Ctrl+C to exit
...:::---==========-----::::::...
...::---====++++====-----:::::...
...::--====++++++====----:::::.. Use the amp: help command for more information
..::---===++++++====----::::...
..:::--====+++++====----:::...
..:::---==========---::::.. Smart mode now uses Gemini 3 Pro.
..:::----===-----::::...
...::::----:::::...
............





╭─smart (click or Ctrl+S to switch)─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────~/Documents/work/agentapi (fix-amp-formatting)─╯