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

Function hasSession

packages/opencode/src/cli/cmd/run/runtime.ts:139–141  ·  view source on GitHub ↗
(input: RunRuntimeInput, state: RuntimeState)

Source from the content-addressed store, hash-verified

137}
138
139function hasSession(input: RunRuntimeInput, state: RuntimeState) {
140 return !input.resolveSession || !!state.sessionID
141}
142
143function eagerStream(input: RunRuntimeInput, ctx: BootContext) {
144 return ctx.resume === true || !input.resolveSession || !!input.demo

Callers 2

resolveExitTitleFunction · 0.85
runInteractiveRuntimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected