Skip to content

Commit a0c464e

Browse files
committed
wip
1 parent 55a9ea0 commit a0c464e

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

lib/msgfmt/msgfmt.go

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package msgfmt
22

33
import (
4-
"fmt"
54
"strings"
65
)
76

@@ -256,17 +255,7 @@ func formatCodexMessage(message string, userInput string) string {
256255
}
257256

258257
func formatOpencodeMessage(message string, userInput string) string {
259-
fmt.Println("\n\n\n\n\n")
260-
fmt.Println("===================================")
261-
lines := strings.Split(message, "\n")
262-
if len(lines) > 10 {
263-
for _, data := range lines[len(lines)-7:] {
264-
fmt.Println(data)
265-
}
266-
fmt.Println(lines[len(lines)-7:])
267-
}
268-
fmt.Println("===================================")
269-
fmt.Println("\n\n\n\n\n")
258+
270259
message = RemoveUserInput(message, userInput, AgentTypeOpencode)
271260
//message = removeOpencodeMessageBox(message)
272261
//message = trimEmptyLines(message)

lib/screentracker/conversation.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,18 @@ func (c *Conversation) StartSnapshotLoop(ctx context.Context) {
143143
func FindNewMessage(oldScreen, newScreen string, agentType msgfmt.AgentType) string {
144144
oldLines := strings.Split(oldScreen, "\n")
145145
newLines := strings.Split(newScreen, "\n")
146+
147+
fmt.Println("\n\n\n\n\n")
148+
fmt.Println("===================================")
149+
lines := newLines
150+
if len(lines) > 10 {
151+
for _, data := range lines[len(lines)-9:] {
152+
fmt.Println(data)
153+
}
154+
}
155+
fmt.Println("===================================")
156+
fmt.Println("\n\n\n\n\n")
157+
146158
oldLinesMap := make(map[string]bool)
147159

148160
// -1 indicates no header

0 commit comments

Comments
 (0)