We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a4e671 commit b4cbdcfCopy full SHA for b4cbdcf
lib/msgfmt/message_box.go
@@ -54,7 +54,7 @@ func removeMessageBox(msg string) string {
54
func removeCodexInputBox(msg string) string {
55
lines := strings.Split(msg, "\n")
56
// 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") {
+ if len(lines) >= 2 && strings.Contains(lines[len(lines)-2], "▌ Ask Codex to do anything") {
58
idx := len(lines) - 2
59
lines = append(lines[:idx], lines[idx+1:]...)
60
}
0 commit comments