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

Method Init

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

Source from the content-addressed store, hash-verified

205}
206
207func (m harness) Init() tea.Cmd {
208 // Animate the banner only when the wide variant is in play; the narrow
209 // fallback is a single line and looks weird flickering. Width was
210 // captured in NewProgram before main redirected stdout to the pipe.
211 if m.bannerWidth >= bigBannerMinWidth {
212 return tea.Batch(textinput.Blink, shineTickCmd())
213 }
214 return textinput.Blink
215}
216
217// shineTotalTicks / shineFrameMs together set how long the startup shine
218// sweeps for: ~2.4 s with an ease-in-out curve. shineEdgePad is how far

Callers

nothing calls this directly

Calls 1

shineTickCmdFunction · 0.85

Tested by

no test coverage detected