Dashboard › opencode › Distillation
4e77d548-8802-48bf-9fbc-dbfdfc0c5141["lore_tm_v1_APfA22BJp86rkmV02VG0QREbeCNpmUFdTkaawh2x79s"]
Date: Sep 15, 2026
SessionEvent, imports Effect Schema, and defines shared event fields timestamp: DateTimeUtcFromMillis and sessionID: SessionID.Source with start: NonNegativeInt, end: NonNegativeInt, and text: Schema.String, annotated with identifier "session.next.event.source".aggregate: "sessionID" and version: 1 through options; step-settlement events use aggregate: "sessionID" and version: 2 through stepSettlementOptions.AgentSwitched ("session.next.agent.switched", with messageID and agent), Moved ("session.next.moved", with location and optional subdirectory), PromptAdmitted ("session.next.prompt.admitted", using PromptFields), and ContextUpdated ("session.next.context.updated", with messageID and text).Shell, Step, Text, Reasoning, Tool, and Compaction. Text.Delta, Reasoning.Delta, and Tool.Input.Delta are live-only stream fragments; comments identify Text.Ended, Reasoning.Ended, and Tool.Input.Ended as replayable full/raw-value boundaries.Tool.Called records tool, an input string-keyed record, and provider execution state with optional ProviderMetadata; Tool.Success records structured, content: Schema.Array(ToolContent), optional outputPaths, optional result, and the same provider execution metadata.Compaction.Started defines event type "session.next.compaction.started" with messageID and reason restricted to "auto" or "manual"; Compaction.Delta defines "session.next.compaction.delta" with messageID and streamed text.