Open History to see the last commit
1/**
2 * Per-call provider options for the Codex adapter, passed via `modelOptions`
3 * on `chat()`.
4 */
5export interface CodexTextProviderOptions {
6 /**
7 * Resume an existing Codex thread. The adapter emits the thread id of
8 * every fresh run via a CUSTOM `codex.session-id` stream event; thread it
9 * back here to continue that session (only the latest user message is
10 * sent — the harness already holds the prior context).
11 */
12 sessionId?: string
13 /** Per-call override of the configured sandbox mode. */
14 sandboxMode?: 'read-only' | 'workspace-write' | 'danger-full-access'
15 /** Per-call override of the configured approval policy. */
16 approvalPolicy?: 'never' | 'on-failure' | 'on-request' | 'untrusted'
17 /** Per-call override of the harness working directory. */
18 workingDirectory?: string
19 /** Per-call override of the git-repo safety check (defaults to skipping). */
20 skipGitRepoCheck?: boolean
21 /**
22 * `'api-key'` (default) expects `CODEX_API_KEY`.
23 * `'host'` uses `codex login`.
24 * Not inferred from the sandbox.
25 */
26 authMode?: 'host' | 'api-key'
27}