Skip to main content
Version: 0.19.0

Type Alias: SessionOpener

type SessionOpener = (run) => Promise<
| Options
| {
apis?: Record<string, Record<string, unknown>>;
extensions?: ExtensionsStatus;
modeControl?: ModeControl;
options: Options;
toolLabels?: ToolLabels;
}>;

Defined in: chat/runs.ts:14

Builds the session's options for a run folder, e.g. (run) => buildSessionOptions(config, run.dir, spec, { run }): called for the first run and again for each one resumed with /resume (MCP servers, the step gate and the transcript are bound to the run's folder, so they're built anew).

Parameters​

ParameterType
runRunFolder

Returns​

Promise< | Options | { apis?: Record<string, Record<string, unknown>>; extensions?: ExtensionsStatus; modeControl?: ModeControl; options: Options; toolLabels?: ToolLabels; }>