@@ -199,6 +199,13 @@ func (p *permissionDialogCmp) renderButtons() string {
201 content := core.SelectableButtons(buttons, " ")
201 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).
203 return baseStyle.AlignHorizontal(lipgloss.Right).Width(p.width - 4).Render(content)
210 return baseStyle.AlignHorizontal(lipgloss.Right).Width(p.width - 4).Render(content)
@@ -452,8 +459,8 @@ func (p *permissionDialogCmp) render() string {
452 if p.supportsDiffView() {
459 if p.supportsDiffView() {
453 contentHelp = help.New().View(p.keyMap)
460 contentHelp = help.New().View(p.keyMap)
455− // Calculate content height dynamically based on window size
463+ // Calculate content height dynamically based on window size
457 strs := []string{
464 strs := []string{
@@ -491,7 +498,7 @@ func (p *permissionDialogCmp) SetSize() tea.Cmd {
492 switch p.permission.ToolName {
499 switch p.permission.ToolName {
493 case tools.BashToolName:
500 case tools.BashToolName:
494− p.width = int(float64(p.wWidth) * 0.4)
501+ p.width = int(float64(p.wWidth) * 0.8)
495 p.height = int(float64(p.wHeight) * 0.3)
502 p.height = int(float64(p.wHeight) * 0.3)
496 case tools.EditToolName:
503 case tools.EditToolName:
497 p.width = int(float64(p.wWidth) * 0.8)
504 p.width = int(float64(p.wWidth) * 0.8)
@@ -500,7 +507,7 @@ func (p *permissionDialogCmp) SetSize() tea.Cmd {
500 p.width = int(float64(p.wWidth) * 0.8)
507 p.width = int(float64(p.wWidth) * 0.8)
501 p.height = int(float64(p.wHeight) * 0.8)
508 p.height = int(float64(p.wHeight) * 0.8)
502 case tools.FetchToolName:
509 case tools.FetchToolName:
503− p.width = int(float64(p.wWidth) * 0.4)
510+ p.width = int(float64(p.wWidth) * 0.8)
504 p.height = int(float64(p.wHeight) * 0.3)
511 p.height = int(float64(p.wHeight) * 0.3)
506 p.width = int(float64(p.wWidth) * 0.7)
513 p.width = int(float64(p.wWidth) * 0.7)