mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 22:10:23 +00:00
fix phantom tool call failed messages and empty text parts with some models
This commit is contained in:
parent
10d749a85e
commit
f2bdb8159f
2 changed files with 10 additions and 4 deletions
|
|
@ -281,6 +281,9 @@ func (m *messagesComponent) renderView() tea.Cmd {
|
|||
if part.Synthetic {
|
||||
continue
|
||||
}
|
||||
if part.Text == "" {
|
||||
continue
|
||||
}
|
||||
remainingParts := message.Parts[partIndex+1:]
|
||||
fileParts := make([]opencode.FilePart, 0)
|
||||
for _, part := range remainingParts {
|
||||
|
|
@ -365,6 +368,9 @@ func (m *messagesComponent) renderView() tea.Cmd {
|
|||
if reverted {
|
||||
continue
|
||||
}
|
||||
if part.Text == "" {
|
||||
continue
|
||||
}
|
||||
hasTextPart = true
|
||||
finished := part.Time.End > 0
|
||||
remainingParts := message.Parts[partIndex+1:]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue