(text string)
| 507 | } |
| 508 | |
| 509 | func (m harness) runOnce(text string) tea.Cmd { |
| 510 | return func() tea.Msg { |
| 511 | err := m.runner(context.Background(), text) |
| 512 | return agentDoneMsg{err: err} |
| 513 | } |
| 514 | } |
| 515 | |
| 516 | // layout recomputes viewport widths/heights from the current window size. |
| 517 | // In any modal state (debug detail OR approval-with-diff) the debug |