fix: interface conversion panic (#2060)
This commit is contained in:
@@ -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{}
|
||||||
|
|||||||
Reference in New Issue
Block a user