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

Method View

internal/ui/program.go:942–959  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

940 Background(lipgloss.Color("237"))
941
942func (m harness) View() string {
943 if m.state == stateAwaitingApproval && m.approvalDetail != "" {
944 return m.viewApprovalModal()
945 }
946 if m.debugMode == debugDetail && debug.Enabled() {
947 return m.viewDebugModal()
948 }
949 parts := []string{m.viewport.View()}
950 if debug.Enabled() {
951 boxStyle := debugBoxStyle
952 if m.debugFocus {
953 boxStyle = debugBoxFocusedStyle
954 }
955 parts = append(parts, boxStyle.Width(max(m.width-2, 20)).Render(m.debugView.View()))
956 }
957 parts = append(parts, m.inputArea())
958 return lipgloss.JoinVertical(lipgloss.Left, parts...)
959}
960
961// viewApprovalModal renders the full-screen modal that takes over while
962// the user is reviewing a write_file proposal. Same shape as the debug

Callers 3

viewApprovalModalMethod · 0.45
viewDebugModalMethod · 0.45
inputAreaMethod · 0.45

Calls 4

viewApprovalModalMethod · 0.95
viewDebugModalMethod · 0.95
inputAreaMethod · 0.95
EnabledFunction · 0.92

Tested by

no test coverage detected