Saltar al contenido principal
Versión: 0.18.0

Type Alias: SessionOpener

type SessionOpener = (run) => Promise<
| Options
| {
modeControl?: ModeControl;
options: Options;
}>;

Defined in: tui/runs.ts:13

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 | { modeControl?: ModeControl; options: Options; }>