Skip to content

Commit 21629b8

Browse files
committed
wip
1 parent b054d2e commit 21629b8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/msgfmt/msgfmt.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,6 @@ func RemoveUserInput(msgRaw string, userInputRaw string, agentType AgentType) st
196196
if idx, found := skipTrailingInputBoxLine(msgLines, lastUserInputLineIdx, "┘", "└"); found {
197197
lastUserInputLineIdx = idx
198198
}
199-
} else if agentType == AgentTypeOpencode {
200-
// skip +2 lines after the input
201-
// ┃ jkmr (08:46 PM) ┃
202-
// ┃ ┃
203-
if lastUserInputLineIdx+2 < len(msgLines) {
204-
lastUserInputLineIdx += 2
205-
}
206199
}
207200

208201
return strings.Join(msgLines[lastUserInputLineIdx+1:], "\n")
@@ -262,7 +255,7 @@ func formatCodexMessage(message string, userInput string) string {
262255
}
263256

264257
func formatOpencodeMessage(message string, userInput string) string {
265-
//message = RemoveUserInput(message, userInput, AgentTypeOpencode)
258+
message = RemoveUserInput(message, userInput, AgentTypeOpencode)
266259
//message = removeOpencodeMessageBox(message)
267260
message = trimEmptyLines(message)
268261
return message

0 commit comments

Comments
 (0)