Render-only live layer: fast-changing, ephemeral field values (streaming
text, cursors, partial tool arguments) held beside the graph.
Live values are NOT graph writes: they do not publish to graph subscribers,
are not persisted by persistGraphToStorage, and do not appear in devtools
snapshots or time travel. Subscribers of one entity are notified per write,
and read() returns the durable entity merged with its live fields (a stable
reference until either side changes). commit() makes the live values
durable with one graph write and clears them; discard() drops them.
Typical streaming use: append every token, render from read, and
commit at message boundaries or on a checkpoint cadence.
Render-only live layer: fast-changing, ephemeral field values (streaming text, cursors, partial tool arguments) held beside the graph.
Live values are NOT graph writes: they do not publish to graph subscribers, are not persisted by
persistGraphToStorage, and do not appear in devtools snapshots or time travel. Subscribers of one entity are notified per write, andread()returns the durable entity merged with its live fields (a stable reference until either side changes).commit()makes the live values durable with one graph write and clears them;discard()drops them.Typical streaming use:
appendevery token, render fromread, andcommitat message boundaries or on a checkpoint cadence.