wip: refactor permissions

This commit is contained in:
Dax Raad
2025-07-31 12:26:34 -04:00
parent 872b1e068f
commit a5b20f973f
15 changed files with 294 additions and 98 deletions

View File

@@ -469,7 +469,7 @@ func (m *messagesComponent) renderView() tea.Cmd {
}
permission := opencode.Permission{}
if m.app.CurrentPermission.ToolCallID == part.CallID {
if m.app.CurrentPermission.CallID == part.CallID {
permission = m.app.CurrentPermission
}
@@ -640,7 +640,7 @@ func (m *messagesComponent) renderView() tea.Cmd {
slog.Error("Failed to get message from child session", "error", err)
} else {
for _, part := range response.Parts {
if part.CallID == m.app.CurrentPermission.ToolCallID {
if part.CallID == m.app.CurrentPermission.CallID {
content := renderToolDetails(
m.app,
part.AsUnion().(opencode.ToolPart),