fix: interface conversion panic (#2060)

This commit is contained in:
Aiden Cline
2025-08-19 05:25:46 -05:00
committed by GitHub
parent c0f90eb564
commit 8f230ad4b4

View File

@@ -746,9 +746,10 @@ func (m *messagesComponent) renderView() tea.Cmd {
} else {
for _, part := range response.Parts {
if part.CallID == m.app.CurrentPermission.CallID {
if toolPart, ok := part.AsUnion().(opencode.ToolPart); ok {
content := renderToolDetails(
m.app,
part.AsUnion().(opencode.ToolPart),
toolPart,
m.app.CurrentPermission,
width,
)
@@ -761,6 +762,7 @@ func (m *messagesComponent) renderView() tea.Cmd {
}
}
}
}
final := []string{}
clipboard := []string{}