Skip to content

Commit b4cbdcf

Browse files
35C4n0rCopilot
andauthored
Update lib/msgfmt/message_box.go
Co-authored-by: Copilot <[email protected]>
1 parent 4a4e671 commit b4cbdcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msgfmt/message_box.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func removeMessageBox(msg string) string {
5454
func removeCodexInputBox(msg string) string {
5555
lines := strings.Split(msg, "\n")
5656
// Remove the input box, we need to match the exact pattern, because thinking follows the same pattern of ▌ followed by text
57-
if len(lines)-2 >= 0 && strings.Contains(lines[len(lines)-2], "▌ Ask Codex to do anything") {
57+
if len(lines) >= 2 && strings.Contains(lines[len(lines)-2], "▌ Ask Codex to do anything") {
5858
idx := len(lines) - 2
5959
lines = append(lines[:idx], lines[idx+1:]...)
6060
}

0 commit comments

Comments
 (0)