MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / ApprovalRequest

Struct ApprovalRequest

internal/ui/program.go:55–59  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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.
55type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected