File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -258,12 +258,16 @@ func formatCodexMessage(message string, userInput string) string {
258258func formatOpencodeMessage (message string , userInput string ) string {
259259 fmt .Println ("\n \n \n \n \n " )
260260 fmt .Println ("===================================" )
261- if len (message ) > 10 {
262- fmt .Println (message [len (message )- 7 :])
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 :])
263267 }
264268 fmt .Println ("===================================" )
265269 fmt .Println ("\n \n \n \n \n " )
266- // message = RemoveUserInput(message, userInput, AgentTypeOpencode)
270+ message = RemoveUserInput (message , userInput , AgentTypeOpencode )
267271 //message = removeOpencodeMessageBox(message)
268272 //message = trimEmptyLines(message)
269273 return message
You can’t perform that action at this time.
0 commit comments