Skip to content

Commit ea575d5

Browse files
authored
chore(lib/msgfmt/agent_readiness): update amp agent-readiness (#151)
1 parent e81a744 commit ea575d5

File tree

2 files changed

+35
-24
lines changed

2 files changed

+35
-24
lines changed

lib/msgfmt/agent_readiness.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func IsAgentReadyForInitialPrompt(agentType AgentType, message string) bool {
1515
case AgentTypeCopilot:
1616
return isGenericAgentReadyForInitialPrompt(message)
1717
case AgentTypeAmp:
18-
return isGenericAgentReadyForInitialPrompt(message)
18+
return isAmpAgentReadyForInitialPrompt(message)
1919
case AgentTypeCursor:
2020
return isGenericAgentReadyForInitialPrompt(message)
2121
case AgentTypeAuggie:
@@ -48,3 +48,9 @@ func isCodexAgentReadyForInitialPrompt(message string) bool {
4848
messageWithoutInputBox := removeCodexInputBox(message)
4949
return len(messageWithoutInputBox) != len(message)
5050
}
51+
52+
func isAmpAgentReadyForInitialPrompt(message string) bool {
53+
message = trimEmptyLines(message)
54+
messageWithoutInputBox := removeAmpMessageBox(message)
55+
return len(messageWithoutInputBox) != len(message)
56+
}
Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11

22

3-
............
4-
..:::-------::::...
5-
..::--=========---:::... Welcome to Amp
6-
.::-===++++++++===---:::..
7-
..:--==+++******+++===--:::...
8-
.:--=+++**********++===--:::... Type / to use slash commands
9-
.::-==++***#####****++==---:::.. Type @ to mention files
10-
.:--=++****#####****++===---::... Ctrl+C to exit
11-
.:--=+++****###****+++===---:::..
12-
.:--==+++*********++++===---:::..
13-
..:--==++++*****++++====----:::.. /help for more
14-
.::--===+++++++++====-----:::...
15-
.::---===========------::::...
16-
..:::-------------:::::::... amp -x "Run the linter and fix the errors"
17-
...::::::::::::::::.....
18-
..................
19-
20-
21-
22-
23-
───────────────
24-
>
25-
───────────────
3+
4+
5+
..............
6+
.....:::::.......... Welcome to Amp
7+
....:::::::::::..........
8+
....::::----::::::::.......
9+
...::::---------:::::::::..... Ctrl+O to execute commands
10+
...::::------------:::::::::... Type @ to mention files
11+
....::----=======-----::::::::... Ctrl+C to exit
12+
...:::---==========-----::::::...
13+
...::---====++++====-----:::::...
14+
...::--====++++++====----:::::.. Use the amp: help command for more information
15+
..::---===++++++====----::::...
16+
..:::--====+++++====----:::...
17+
..:::---==========---::::.. Smart mode now uses Gemini 3 Pro.
18+
..:::----===-----::::...
19+
...::::----:::::...
20+
............
21+
22+
23+
24+
25+
26+
╭─smart (click or Ctrl+S to switch)─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
27+
│ │
28+
│ │
29+
│ │
30+
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────~/Documents/work/agentapi (fix-amp-formatting)─╯

0 commit comments

Comments
 (0)