Skip to content

SessionSearchResult

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:63

A search hit: the stored record plus its id and a highlighted snippet.

optional command?: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:43

Originating command (ask/chat/code/exec/…).

SessionRecord.command


optional conversationId?: number

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:37

GS2-19 — the parent conversation this turn belongs to. When omitted, HistoryStore.record opens a fresh single-turn conversation for the row (so a bare single-shot run = a 1-turn conversation). Interactive sessions open one conversation up-front and pass its id here on every turn, grouping the whole chat under one conversation.

SessionRecord.conversationId


optional costUsd?: number

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:55

Estimated cost in USD, when known.

SessionRecord.costUsd


optional durationMs?: number

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:59

Wall-clock duration of the run in milliseconds, when known.

SessionRecord.durationMs


id: number

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:64


optional model?: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:45

Human-readable model/provider label.

SessionRecord.model


optional project?: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:41

Project / working directory the run happened in.

SessionRecord.project


optional prompt?: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:47

The user prompt / source that started the run (full-text indexed).

SessionRecord.prompt


optional response?: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:49

The final assistant response text (full-text indexed).

SessionRecord.response


snippet: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:67

FTS5 snippet around the match (may be empty).


optional tokensInput?: number

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:51

Prompt/input token count, when known.

SessionRecord.tokensInput


optional tokensOutput?: number

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:53

Completion/output token count, when known.

SessionRecord.tokensOutput


optional tools?: string[]

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:57

Names of tools invoked during the run, when known.

SessionRecord.tools


ts: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:65

ISO-8601 timestamp; defaults to now when omitted.

SessionRecord.ts