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

Function resolveSessionInfo

packages/opencode/src/cli/cmd/run/runtime.boot.ts:187–193  ·  view source on GitHub ↗
(
  sdk: RunInput["sdk"],
  sessionID: string,
  model: RunInput["model"],
)

Source from the content-addressed store, hash-verified

185
186// Fetches session messages to determine if this is the first turn and build prompt history.
187export async function resolveSessionInfo(
188 sdk: RunInput["sdk"],
189 sessionID: string,
190 model: RunInput["model"],
191): Promise<SessionInfo> {
192 return runtime.runPromise((svc) => svc.resolveSessionInfo(sdk, sessionID, model)).catch(() => emptySessionInfo())
193}
194
195// Reads TUI config once for direct mode keymap setup and display preferences.
196export async function resolveRunTuiConfig(): Promise<RunTuiConfig> {

Callers 1

runInteractiveRuntimeFunction · 0.90

Calls 1

emptySessionInfoFunction · 0.85

Tested by

no test coverage detected