pub enum Event {
Show 37 variants
Snapshot {
state: Box<State>,
},
SessionStarted {
session: Session,
},
SessionStatus {
session: SessionId,
status: SessionStatus,
},
SessionContext {
session: SessionId,
used: u64,
window: Option<u64>,
},
QuotaUpdated {
quota: Quota,
},
SessionLimited {
session: SessionId,
detail: String,
},
SessionRemoved {
session: SessionId,
},
ArchivePruned {
sessions: Vec<SessionId>,
},
SessionModel {
session: SessionId,
model: String,
},
SessionCommands {
session: SessionId,
commands: Vec<String>,
},
SessionEffort {
session: SessionId,
effort: String,
},
SessionNativeId {
session: SessionId,
native_id: String,
},
SessionCleared {
session: SessionId,
},
SessionLabel {
session: SessionId,
label: String,
},
SessionNote {
session: SessionId,
note: String,
},
SessionHandedOff {
from: SessionId,
to: SessionId,
},
UserPrompt {
session: SessionId,
text: String,
from: Option<String>,
},
Output {
session: SessionId,
text: String,
},
OutputAppend {
session: SessionId,
text: String,
},
InboxRead {
session: SessionId,
msg: String,
},
SessionBgProcs {
session: SessionId,
procs: Vec<BgProc>,
},
ToolCall {
session: SessionId,
name: String,
input: String,
ok: Option<bool>,
output: Option<String>,
},
PermissionRequested {
request: PermissionRequest,
},
PermissionResolved {
session: SessionId,
req: String,
decision: Decision,
},
QuestionRequested {
question: UserQuestion,
},
QuestionResolved {
session: SessionId,
id: String,
answers: Vec<String>,
},
BusMessage {
message: BusMessage,
},
TaskChanged {
task: Task,
},
TaskDeleted {
id: TaskId,
},
ArtifactShared {
artifact: Artifact,
},
ReviewCommented {
review: ReviewComment,
},
SessionExited {
session: SessionId,
code: Option<i32>,
},
Cost {
session: SessionId,
cost: Cost,
},
SessionOverBudget {
session: SessionId,
spent: f64,
limit: f64,
},
SessionBudget {
session: SessionId,
budget_usd: Option<f64>,
},
LogHealth {
ok: bool,
},
QueueChanged {
session: SessionId,
items: Vec<String>,
},
}Expand description
System events. Append-only, serializable, replayable.
Variants§
Snapshot
Complete state written to first line of new log file after rotation; replay begins from here. seq inherits value from rotation time.
SessionStarted
SessionStatus
SessionContext
Agent reports session context usage.
QuotaUpdated
Agent reports account quota (usage percentage and reset time).
SessionLimited
Agent reports quota exhausted / rate limited (can hand off to other agents).
SessionRemoved
Session removed from list (startup failure or user cleared terminated session).
ArchivePruned
Archived sessions dropped by retention (count or age limit).
SessionModel
Actual model reported by agent (or specified in settings).
SessionCommands
Native slash commands reported by agent.
SessionEffort
Reasoning effort switched at runtime (or configured at startup).
SessionNativeId
Native conversation ID reported by agent (for resumption).
SessionCleared
Context reset (Request::Clear): the agent restarts with a fresh native conversation
under the same ertangle session id. Drops native id, cost, context, transcript and live tool state.
SessionLabel
SessionNote
Short status note updated by agent via ertangle_status.
SessionHandedOff
Handoff complete: to takes over work from from (bus messages are routed to successor).
UserPrompt
Prompt sent to agent (displayed in transcript for conversational context).
Fields
from: Option<String>Sender: None = user; otherwise sender agent session ID, or PROMPT_FROM_ERTANGLE
(daemon-generated reminders, notifications, and handoff briefs).
Output
Text output from agent (streaming chunk or complete line).
OutputAppend
Continuation of an unterminated Event::Output line: the first segment of text
is appended to the last transcript line instead of starting a new one.
InboxRead
A session’s inbox read cursor advanced to msg (persisted so restarts do not redeliver).
SessionBgProcs
Session background child process list updated.
ToolCall
Fields
PermissionRequested
Fields
request: PermissionRequestPermissionResolved
QuestionRequested
Fields
question: UserQuestionQuestionResolved
BusMessage
Fields
message: BusMessageTaskChanged
TaskDeleted
ReviewCommented
Fields
review: ReviewCommentSessionExited
Cost
SessionOverBudget
Session reached cost limit (interrupted current turn and set over_budget to true).
SessionBudget
Manually adjusted session cost limit (also clears over_budget).
LogHealth
Event log write health status (ok == false indicates write failure, TUI displays log ✗).
QueueChanged
Session queued prompts changed (items contains raw input text list, excluding attachment content).