@@ -199,6 +199,13 @@ func (p *permissionDialogCmp) renderButtons() string {
199199 }
200200
201201 content := core.SelectableButtons(buttons, " ")
202+ if lipgloss.Width(content) > p.width-4 {
203+ content = core.SelectableButtonsVertical(buttons, 1)
204+ return baseStyle.AlignVertical(lipgloss.Center).
205+ AlignHorizontal(lipgloss.Center).
206+ Width(p.width - 4).
207+ Render(content)
208+ }
202209
203210 return baseStyle.AlignHorizontal(lipgloss.Right).Width(p.width - 4).Render(content)
204211}
@@ -482,7 +489,7 @@ func (p *permissionDialogCmp) SetSize() tea.Cmd {
482489
483490 switch p.permission.ToolName {
484491 case tools.BashToolName:
485− p.width = int(float64(p.wWidth) * 0.4)
492+ p.width = int(float64(p.wWidth) * 0.8)
486493 p.height = int(float64(p.wHeight) * 0.3)
487494 case tools.EditToolName:
488495 p.width = int(float64(p.wWidth) * 0.8)
@@ -491,7 +498,7 @@ func (p *permissionDialogCmp) SetSize() tea.Cmd {
491498 p.width = int(float64(p.wWidth) * 0.8)
492499 p.height = int(float64(p.wHeight) * 0.8)
493500 case tools.FetchToolName:
494− p.width = int(float64(p.wWidth) * 0.4)
501+ p.width = int(float64(p.wWidth) * 0.8)
495502 p.height = int(float64(p.wHeight) * 0.3)
496503 default:
497504 p.width = int(float64(p.wWidth) * 0.7)