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