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

Function splashInfo

packages/opencode/src/cli/cmd/run/runtime.lifecycle.ts:109–122  ·  view source on GitHub ↗
(title: string | undefined, history: RunPrompt[])

Source from the content-addressed store, hash-verified

107}
108
109function splashInfo(title: string | undefined, history: RunPrompt[]) {
110 if (title && !SessionApi.isDefaultTitle(title)) {
111 return {
112 title,
113 showSession: true,
114 }
115 }
116
117 const next = history.find((item) => item.text.trim().length > 0)
118 return {
119 title: next?.text ?? title,
120 showSession: !!next,
121 }
122}
123
124function footerLabels(input: Pick<RunInput, "agent" | "model" | "variant">): FooterLabels {
125 const agentLabel = Locale.titlecase(input.agent ?? "build")

Callers 3

createRuntimeLifecycleFunction · 0.85
closeFunction · 0.85
resetForReplayFunction · 0.85

Calls 1

findMethod · 0.65

Tested by

no test coverage detected