MCPcopy Index your code
hub / github.com/anomalyco/opencode / queueSplash

Function queueSplash

packages/opencode/src/cli/cmd/run/runtime.lifecycle.ts:151–169  ·  view source on GitHub ↗
(
  renderer: Pick<CliRenderer, "writeToScrollback" | "requestRender">,
  state: SplashState,
  phase: keyof SplashState,
  write: ScrollbackWriter | undefined,
)

Source from the content-addressed store, hash-verified

149}
150
151function queueSplash(
152 renderer: Pick<CliRenderer, "writeToScrollback" | "requestRender">,
153 state: SplashState,
154 phase: keyof SplashState,
155 write: ScrollbackWriter | undefined,
156): boolean {
157 if (state[phase]) {
158 return false
159 }
160
161 if (!write) {
162 return false
163 }
164
165 state[phase] = true
166 renderer.writeToScrollback(write)
167 renderer.requestRender()
168 return true
169}
170
171// Boots the split-footer renderer and constructs the RunFooter.
172//

Callers 2

createRuntimeLifecycleFunction · 0.85
closeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected