Skip to content

Commit ff26f8c

Browse files
committed
feat: minor fixes
1 parent 46fe9a6 commit ff26f8c

File tree

3 files changed

+13
-605
lines changed

3 files changed

+13
-605
lines changed

lib/msgfmt/agent_readiness.go

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,17 @@ func IsAgentReadyForInitialPrompt(agentType AgentType, message string) bool {
3434
func isGenericAgentReadyForInitialPrompt(message string) bool {
3535
message = trimEmptyLines(message)
3636
messageWithoutInputBox := removeMessageBox(message)
37-
if len(messageWithoutInputBox) == len(message) {
38-
return false
39-
}
40-
return true
37+
return len(messageWithoutInputBox) != len(message)
4138
}
4239

4340
func isOpencodeAgentReadyForInitialPrompt(message string) bool {
4441
message = trimEmptyLines(message)
4542
messageWithoutInputBox := removeOpencodeMessageBox(message)
46-
if len(messageWithoutInputBox) == len(message) {
47-
return false
48-
}
49-
return true
43+
return len(messageWithoutInputBox) != len(message)
5044
}
5145

5246
func isCodexAgentReadyForInitialPrompt(message string) bool {
5347
message = trimEmptyLines(message)
5448
messageWithoutInputBox := removeCodexInputBox(message)
55-
if len(messageWithoutInputBox) == len(message) {
56-
return false
57-
}
58-
return true
49+
return len(messageWithoutInputBox) != len(message)
5950
}

0 commit comments

Comments
 (0)