opencode source

opencode.events

pass

The full OpenCode domain event log. This is OpenCode's largest and most granular table: every state change (session created, message appended, todo updated, ...) is recorded here with an aggregate id and per-aggregate sequence number. The `data` blob is typed by `type`.

Count events by type:

no filters captured 2026-09-01 12:04:32Zmedian 8795 ms
Verdict: TRUE

All variants returned rows on ≥2 of 3 trials, 0 errors.

rendering…

Summary

VariantTrialsMinMedianMaxRow countsErrors
minimal37072 ms8795 ms9222 ms[1, 1, 1]0
group-by321332 ms21342 ms22348 ms[5, 5, 5]0
by-aggregate320120 ms20200 ms21854 ms[25, 25, 25]0
json-extract370819 ms81830 ms103900 ms[5, 5, 5]0
aggregate324161 ms26551 ms31779 ms[1, 1, 1]0
edge310045 ms11394 ms15152 ms[200, 200, 200]0

Latency per trial

minimalmedian 8795ms
t18795mst29222mst37072ms
scale: 0–9222 ms
group-bymedian 21342ms
t121342mst222348mst321332ms
scale: 0–22348 ms
by-aggregatemedian 20200ms
t121854mst220120mst320200ms
scale: 0–21854 ms
json-extractmedian 81830ms
t170819mst281830mst3103900ms
scale: 0–103900 ms
aggregatemedian 26551ms
t124161mst231779mst326551ms
scale: 0–31779 ms
edgemedian 11394ms
t111394mst215152mst310045ms
scale: 0–15152 ms

Probe variants — every command + output

minimal3 trials
min 7072ms · median 8795ms · max 9222ms · rows 1,1,1

smallest query

Command
SELECT id, aggregate_id, seq, type FROM opencode.events LIMIT 1
Trials + output
trial 1·8795ms·rows 1isError=false
First row (click to expand JSON)
{
  "id": "evt_0284bb3e0001jQUn5dK8eJxnsV",
  "aggregate_id": "ses_fdb904842ffeap7VvTgnigLiFK",
  "seq": "4575",
  "type": "message.part.updated.1"
}
columns (4)
idaggregate_idseqtype
trial 2·9222ms·rows 1isError=false
First row (click to expand JSON)
{
  "id": "evt_0284bb3e0001jQUn5dK8eJxnsV",
  "aggregate_id": "ses_fdb904842ffeap7VvTgnigLiFK",
  "seq": "4575",
  "type": "message.part.updated.1"
}
columns (4)
idaggregate_idseqtype
trial 3·7072ms·rows 1isError=false
First row (click to expand JSON)
{
  "id": "evt_0284bb3e0001jQUn5dK8eJxnsV",
  "aggregate_id": "ses_fdb904842ffeap7VvTgnigLiFK",
  "seq": "4575",
  "type": "message.part.updated.1"
}
columns (4)
idaggregate_idseqtype
group-by3 trials
min 21332ms · median 21342ms · max 22348ms · rows 5,5,5

events by type

Command
SELECT type, COUNT(*) AS n FROM opencode.events GROUP BY type ORDER BY n DESC LIMIT 10
Trials + output
trial 1·21342ms·rows 5isError=false
First row (click to expand JSON)
{
  "type": "message.part.updated.1",
  "n": "637947"
}
columns (2)
typen
trial 2·22348ms·rows 5isError=false
First row (click to expand JSON)
{
  "type": "message.part.updated.1",
  "n": "637947"
}
columns (2)
typen
trial 3·21332ms·rows 5isError=false
First row (click to expand JSON)
{
  "type": "message.part.updated.1",
  "n": "637947"
}
columns (2)
typen
by-aggregate3 trials
min 20120ms · median 20200ms · max 21854ms · rows 25,25,25

event stream for one session

Command
SELECT seq, type FROM opencode.events WHERE aggregate_id = 'ses_faedde194ffe3SEEUk03dXfiu3' ORDER BY seq ASC LIMIT 25
Trials + output
trial 1·21854ms·rows 25isError=false
First row (click to expand JSON)
{
  "seq": "0",
  "type": "session.created.1"
}
columns (2)
seqtype
trial 2·20120ms·rows 25isError=false
First row (click to expand JSON)
{
  "seq": "0",
  "type": "session.created.1"
}
columns (2)
seqtype
trial 3·20200ms·rows 25isError=false
First row (click to expand JSON)
{
  "seq": "0",
  "type": "session.created.1"
}
columns (2)
seqtype
json-extract3 trials
min 70819ms · median 81830ms · max 103900ms · rows 5,5,5

typed JSON blob alongside event

Command
SELECT seq, type, json_as_text(data, 'tokens') AS tokens FROM opencode.events WHERE aggregate_id = 'ses_faedde194ffe3SEEUk03dXfiu3' ORDER BY seq ASC LIMIT 5
Trials + output
trial 1·70819ms·rows 5isError=false
First row (click to expand JSON)
{
  "seq": "0",
  "type": "session.created.1",
  "tokens": ""
}
columns (3)
seqtypetokens
trial 2·81830ms·rows 5isError=false
First row (click to expand JSON)
{
  "seq": "0",
  "type": "session.created.1",
  "tokens": ""
}
columns (3)
seqtypetokens
trial 3·103900ms·rows 5isError=false
First row (click to expand JSON)
{
  "seq": "0",
  "type": "session.created.1",
  "tokens": ""
}
columns (3)
seqtypetokens
aggregate3 trials
min 24161ms · median 26551ms · max 31779ms · rows 1,1,1

total event volume

Command
SELECT COUNT(*) AS n, COUNT(DISTINCT aggregate_id) AS aggregates FROM opencode.events
Trials + output
trial 1·24161ms·rows 1isError=false
First row (click to expand JSON)
{
  "n": "947385",
  "aggregates": "417"
}
columns (2)
naggregates
trial 2·31779ms·rows 1isError=false
First row (click to expand JSON)
{
  "n": "947385",
  "aggregates": "417"
}
columns (2)
naggregates
trial 3·26551ms·rows 1isError=false
First row (click to expand JSON)
{
  "n": "947385",
  "aggregates": "417"
}
columns (2)
naggregates
edge3 trials
min 10045ms · median 11394ms · max 15152ms · rows 200,200,200

edge: larger limit

Command
SELECT id, aggregate_id, type FROM opencode.events LIMIT 200
Trials + output
trial 1·11394ms·rows 200isError=false
First row (click to expand JSON)
{
  "id": "evt_0284bb3e0001jQUn5dK8eJxnsV",
  "aggregate_id": "ses_fdb904842ffeap7VvTgnigLiFK",
  "type": "message.part.updated.1"
}
columns (3)
idaggregate_idtype
trial 2·15152ms·rows 200isError=false
First row (click to expand JSON)
{
  "id": "evt_fe4ce6503001D1ofu2QY0grt8R",
  "aggregate_id": "ses_01b4f408dffemFRhrBIJXD6O9b",
  "type": "message.part.updated.1"
}
columns (3)
idaggregate_idtype
trial 3·10045ms·rows 200isError=false
First row (click to expand JSON)
{
  "id": "evt_fe4ce6503001D1ofu2QY0grt8R",
  "aggregate_id": "ses_01b4f408dffemFRhrBIJXD6O9b",
  "type": "message.part.updated.1"
}
columns (3)
idaggregate_idtype

All returned rowsacross all non-errored trials · filterable · paginated

348 rows stored · 948 returned · 4 truncated · page 1/14
00evt_fe4ce6503001D1ofu2QY0grt8Rses_01b4f408dffemFRhrBIJXD6O9b3916message.part.updated.1
11evt_0284bb3e0001jQUn5dK8eJxnsVses_fdb904842ffeap7VvTgnigLiFK4575message.part.updated.1
22evt_0284bb3e0001jQUn5dK8eJxnsVses_fdb904842ffeap7VvTgnigLiFK4575message.part.updated.1
33evt_0284bb3e0001jQUn5dK8eJxnsVses_fdb904842ffeap7VvTgnigLiFK4575message.part.updated.1
04message.part.updated.1637947
05message.updated.1242895
06session.updated.166094
07session.created.1415
08session.next.model.switched.134
19message.part.updated.1637947
110message.updated.1242895
111session.updated.166094
112session.created.1415
113session.next.model.switched.134
214message.part.updated.1637947
215message.updated.1242895
216session.updated.166094
217session.created.1415
218session.next.model.switched.134
319message.part.updated.1637947
320message.updated.1242895
321session.updated.166094
322session.created.1415
323session.next.model.switched.134
0240session.created.1
Truncated. 4 trials returned more rows than we stored (safety cap = 200/trial). Increase theMAX_ROWS_RETURNED inscripts/probe_table.py and re-probe to capture more.

Column profile

4 columns actually returned by coral. Catalog claims no required filters. Click a column to drill in.

#ColumnInferred typeNon-nullNullsSample value(s)
1idstring816"evt_fe4ce6503001D1ofu2QY0grt8R""evt_0284bb3e0001jQUn5dK8eJxnsV""evt_fcf0919f3001wGE767DlcMZ29X"
2aggregate_idstring816"ses_01b4f408dffemFRhrBIJXD6O9b""ses_fdb904842ffeap7VvTgnigLiFK""ses_048e8fca1ffeEzXkR2H7LmiSMN"
3seqstring1212"3916""4575""0"
4typestring204"message.part.updated.1""session.created.1"

Trial comparison

Variant / comboTrial #LatencyRowsStatusFirst key returned
minimalt18795ms1okid, aggregate_id, seq
minimalt29222ms1okid, aggregate_id, seq
minimalt37072ms1okid, aggregate_id, seq
group-byt121342ms5oktype, n
group-byt222348ms5oktype, n
group-byt321332ms5oktype, n
by-aggregatet121854ms25okseq, type
by-aggregatet220120ms25okseq, type
by-aggregatet320200ms25okseq, type
json-extractt170819ms5okseq, type, tokens
json-extractt281830ms5okseq, type, tokens
json-extractt3103900ms5okseq, type, tokens
aggregatet124161ms1okn, aggregates
aggregatet231779ms1okn, aggregates
aggregatet326551ms1okn, aggregates
edget111394ms200okid, aggregate_id, type
edget215152ms200okid, aggregate_id, type
edget310045ms200okid, aggregate_id, type

Catalog vs. response schemaclaimed guide vs columns coral actually returned

Catalog guide (verbatim)
Count events by type:
Columns coral returned (4)
idaggregate_idseqtype
Probed by bld-dabqr1nqj5pc73dgn3h0-676t6 at 2026-09-01T12:04:32Z
JSON record: reports/opencode/tables/events.json
first_run_at: 2026-09-01T12:04:32Z
last_retried_at: 2026-09-01T12:04:32Z
retry_count: 1
View version history →