ApprovalRequest is sent (via program.Send) when the agent needs y/n from the user. The program shows the prompt and writes the answer to Reply. Detail is optional long-form content. When non-empty, the TUI renders a full-screen modal with the detail (syntax-highlighted if it looks like a diff or JS
| 53 | // a diff or JSON) instead of the inline single-line y/n box — used by |
| 54 | // write_file so the user can review the unified diff before approving. |
| 55 | type ApprovalRequest struct { |
| 56 | Prompt string |
| 57 | Detail string |
| 58 | Reply chan bool |
| 59 | } |
| 60 | |
| 61 | // DebugRefreshMsg tells the TUI to re-read the debug ring and redraw the |
| 62 | // panel. Sent from debug.SetSink whenever a new event is recorded. |
nothing calls this directly
no outgoing calls
no test coverage detected